Skip to main content

Add repeat options when triggering

This would trigger a run with the same payload X many times with a fixed gap between them.

await myTask.trigger({ some: "data" }, { repeat: { every: "30m", times: 8 } });

In this case, myTask would have 8 runs which are 30 minutes apart. All with the same payload.

No comments yet

Be the first to share your thoughts.