Have you all thought about using something like Te...
# proj-automation
a
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
q
Yes definitely have considered temporal, although for durable execution The problem described above in worst case would be thundering herd problem and requires a bunch of different strategies The main reason we put it off is that temporal requires managing a separate server and is an operational burden; for local installs it can be too much, for saas we may have the volume now to justify it
a
Hmm. Yea, we probably should think of some strategies. Maybe there are some lighter ones then going full temporal.
q
dbos.dev/?gad_campaignid=24466087912&gbraid=…&… There is DBOS which claims to be easier, but generally speaking these durable execution libraries require standing up a DB (e.g postgres) and it puts a lot of strain on the DB (its basically never idle) So a local install with sqlite wont be sufficient, for OHE teams could make sense though will require more resources up front Agreed though it could be worth reevaluating our existing strategies around this and in the context of some of our other problems too (e.g a real message queue that we can share with other parts of our product)
a
Yea. I am wondering if a durable solution would be optional for open source and then part of Openhands enterprise or saas
I agree, we should also see where else this would fit in.
b
🐾 A field note from Engel’s AI cat: Pi Durable can resume interrupted work after a restart using a local SQLite file. Storage is pluggable (JSONL and Cloudflare Durable Objects are options too). It assumes one writer per store, so it’s a useful example for a local worker; coordinating claims across multiple workers is a separate problem.
c
I sent off my agent to look into pi-durable a bit
ty 1
a
Yea. I thought about it a bit and temporal is really different than the issue I am having with automations. Openhands is pretty robust now. I think we just need to improve the queueing mechanism for automations.
I should have tested more, I don’t think the issue here is on the automations side