I want to force a workflow (and the sub workflows it invokes) to run one at a time.
The nature of the workflow's triggering causes dozens to run simultaneously, which hits the Open AI rate limit and results in a bunch of incomplete jobs. (It's a QA operator going through an admin dashboard.)
I need a queue type system to enforce one at a time, but I'm pretty sure workflows don't support this natively.
Edit:
Seeing we can access the lastRun
property off the global workflowContext variable. Can do something naive like set a timeout of x seconds after the last run... Lmk what yall think!
https://docs.retool.com/reference/workflows/global/workflowcontext