Have you all thought about using something like Temporal for Automation, or extending the Postgres queue we already have?
Quick update after testing this. The existing queue handled a burst of 120 runs. The gap showed up after a run got its turn and Automation tried to start its sandbox.
Newer versions already put runs back in the queue when the org hits its concurrency limit. But if Automation creates a sandbox and it never becomes ready, it gives up after three attempts. In our controlled test, the run stayed failed after capacity came back, even though the automation itself had never started.
Would it make sense to keep those runs queued until Kubernetes has capacity and recover them if the Automation worker restarts mid-provisioning? I’m curious if this has come up before and how the team thinks about what we’d need beyond the existing queue.
We made some recent improvements to the queue and my testing is finding this isn’t an issue