How does weweb queue multiple workflow request?

I have a on-click triggered workflow in my site right now that runs a multi-stage workflow and as soon as I click the button to trigger the workflow again - instead of queuing the workflow request the latest on click trigger overtakes the previous workflow run and leaves it incomplete.

how does weweb queue multiple workflow request?

thank you!

I see from a seperate thread that " executeWorkflow is an async function, so if you call it without awaiting it you can run multiple workflows concurrently."

does that mean I must trigger my workflow using JS in order to have them run async?

Anyone have a suggested solution? Are global workflows the proper way to build out a queue for quick workflow requests?

If you want sequential workflows, then yeah, building them as globals and then triggering them sequentially with Execute workflow might be your best bet.

1 Like