An API call or operation is “idempotent” if it has the same result when called more than once.
idempotencyKey
twice, the second request will not create a new task run.
idempotencyKey
optionidempotencyKey
to ensure that a task is only triggered once with the same key. This is useful if you are triggering a task within another task that might be retried:
idempotencyKeys.create
SDK function to create an idempotency key before passing it to the options
object.
We automatically inject the run ID when generating the idempotency key when running inside a task by default. You can turn it off by passing the scope
option to idempotencyKeys.create
:
idempotencyKeys.create
SDK function to create an idempotency key.
idempotencyKey
option, without first creating it with idempotencyKeys.create
.
idempotencyKey
when calling batchTrigger
as well: