Open m-kuhn opened 1 year ago
CC @arturzx
See also how rq
recently implemented this: https://github.com/rq/rq/pull/1939
A draft PR welcome.😊
My plan is to move to redis streams which are by far the best solution for tasks like those performed by arq. Stay tuned for a big update.
See #437.
arq currently uses a polling mode (default 0.5 seconds) to fetch jobs on worker side and also to fetch results. I think it should be possible to use blocking requests (on worker side) and pubsub (possibly with keyspace notifications, but not necessarily) for fetching the result.
This should be quite reliable in most scenarios, however it can occur that a job gets lost (there is no guarantee for pubsub delivery after all), so one could still poll from time to time to be on the safe side.
Are there any opinions on development in this direction?
From https://github.com/samuelcolvin/arq/pull/374#issuecomment-1570580555