zlacker

[return to "Launch HN: Hatchet (YC W24) – Open-source task queue, now with a cloud version"]
1. michae+i7[view] [source] 2024-06-27 15:13:24
>>abelan+(OP)
can you run the whole task as a postgres transaction? like if i want to make an idempotent job by only updating some status to "complete" once the job finishes.
◧◩
2. mind-b+NC[view] [source] 2024-06-27 18:16:05
>>michae+i7
Long running transactions can easily lock up your database. I'd definitely avoid those. You're better off writing status records to the DB and using those to determine whether something is running, failing, etc.
[go to top]