Skip to content

Commit fccc0ac

Browse files
committed
Test for checkpoints
1 parent a640649 commit fccc0ac

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { tasks, task, logger } from "@trigger.dev/sdk/v3";
2+
3+
/** Test that checkpoints and resuming works if the checkpoint isn't created before the resume */
4+
export const checkpointBatchResumer = task({
5+
id: "checkpoint-batch-resume",
6+
run: async () => {
7+
await noop.batchTriggerAndWait([{}]);
8+
logger.info("Successfully resumed");
9+
},
10+
});
11+
12+
export const noop = task({
13+
id: "noop",
14+
run: async () => {},
15+
});

0 commit comments

Comments
 (0)