Skip to content
Discussion options

You must be logged in to vote

Yeah we made an intentional choice to have a 1:1 mapping between a token and a workflow run. It enables things like respondWith in the webhook abstraction. We went through multiple iterations on the design before arriving at this constraint.

If you try to register the same token twice, it should throw a conflict error in your workflow (if it's not failing, that's a bug 😬)

To resume multiple runs from one event, we kinda leave it upto you rn to either store or calculate all the possible tokens you want to resume and then resume them all at once using Promise.all (btw you can also just attempt to resumeHook for tokens that don't exist, and then eat up and silently ignore the error. So if th…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pranaygp
Comment options

@sashkode
Comment options

Answer selected by pranaygp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants