Replaying Blocks
It is possible to replay function calls for a given range of blocks. This entails calling the replay blocks endpoint with a list of functions to run and a range of blocks to replay.
When a function is invoked by replay, the isTriggeredByReplay
in its context object will be set to true
.
export function triggerHandler(context, data) {
if (context.isTriggeredByReplay) {
console.log("This function invocation was triggered by replay command!");
}
return { context: context, data: data };
}
Updated 29 days ago