File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { fixedLengthTask } from "./batches.js";
55
66export const helloWorldTask = task ( {
77 id : "hello-world" ,
8+ ttl : "10m" ,
89 retry : {
910 maxAttempts : 3 ,
1011 minTimeoutInMs : 500 ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { schedules } from "@trigger.dev/sdk/v3";
33export const simpleSchedule = schedules . task ( {
44 id : "simple-schedule" ,
55 cron : "0 0 * * *" ,
6+ ttl : "30m" ,
67 run : async ( payload , { ctx } ) => {
78 return {
89 message : "Hello, world!" ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export default defineConfig({
1111 } ,
1212 logLevel : "debug" ,
1313 maxDuration : 3600 ,
14+ ttl : "1h" ,
1415 retries : {
1516 enabledInDev : true ,
1617 default : {
You can’t perform that action at this time.
0 commit comments