tobymao / saq

Simple Async Queues
https://saq-py.readthedocs.io/en/latest/
MIT License
580 stars 39 forks source link

Queue timeout #35

Closed sondrelg closed 2 years ago

sondrelg commented 2 years ago

Hi!

I've just sat down to take a stab at rewriting one of our services from arq to saq, and it's been going well! Thanks for creating this :clap: Was also happy to see that it's compatible with the new redis v4.2+ stuff!

I just have one question I wasn't easily able to answer: is there a way to set a queue-specific timeout? I have two queues, where one is reserved for long running jobs. I'd rather not pass timeout to every enqueue call if possible :slightly_smiling_face: Can I specify a timeout either in the settings, or on the queue-instance?

tobymao commented 2 years ago

check out the discussion here

https://github.com/tobymao/saq/issues/30 https://github.com/tobymao/saq/issues/30#issuecomment-1140364930

i don't have a queue level setting to keep things simple, but it's easy enough to build your own abstraction. happy to chat more!

sondrelg commented 2 years ago

Thanks, this looks good!