Runs are resumable by returning Task stored data
cacheKey
which is a string and is the first parameter. This should be stable and unique inside that run
function.run
function, for example when you call io.slack.postMessage
:
"⭐️ New Star"
. This means that if the Job is interrupted and then resumed, the slack.postMessage
Task will be skipped because it has already been executed.
If you make multiple calls to slack.postMessage
, you should use different cache keys for each call. For example:
slack.postMessage
with the key "⭐️ New Star"
twice, it will only be executed once.
See our Task concept guide for more information about tasks and how they are crucial to the resumability of your Jobs.
Promise.all
will not work correctly.
This is something on our roadmap that we hope to support soon.