feat(workflows-*): Allow to re run non idempotent but stored workflow with the same transaction id if considered done (#12362)
This commit is contained in:
committed by
GitHub
parent
97dd520c64
commit
80007f3afd
@@ -105,6 +105,8 @@ function createContextualWorkflowRunner<
|
||||
preventReleaseEvents,
|
||||
}
|
||||
|
||||
context.isCancelling = isCancel
|
||||
|
||||
const args = [
|
||||
transactionOrIdOrIdempotencyKey,
|
||||
input,
|
||||
@@ -188,7 +190,7 @@ function createContextualWorkflowRunner<
|
||||
__type: MedusaContextType as Context["__type"],
|
||||
}
|
||||
|
||||
context.transactionId ??= ulid()
|
||||
context.transactionId ??= "auto-" + ulid()
|
||||
context.eventGroupId ??= ulid()
|
||||
|
||||
return await originalExecution(
|
||||
|
||||
Reference in New Issue
Block a user