Adding an idempotency key to task context #1103
Unanswered
geomagilles
asked this question in
Ideas
Replies: 1 comment 1 reply
-
Do I understand correctly that this would be a per task idempotency token? Or per workflow? I can see value in a per task idempotency token. For example when using a Stripe API in a task one could use the task idempotency token to make sure that retries don't end up charging a customer twice. A per execution idempotency token (for making sure no duplicate executions are started) should probably be a runtime implementation concern, e.g. in the API. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, while it may be possible for the user to build their own idempotency key (actually I'm not even sure it could be done reliably), I think it would be convenient to provide one out of the box.
It could be provided by runtime and accessible through e.g. $task.idempotencyKey
Beta Was this translation helpful? Give feedback.
All reactions