tobymao / saq

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

Key error when calling `queue.apply` with `ttl=-1` #54

Closed jnordberg closed 1 year ago

jnordberg commented 1 year ago

When calling queue.apply with ttl=-1 it raises a key error trying to access a non-existent result index.

If this edge case can't be handled, it would be great if the API checked for jobs with immediate expiry and raised a value error with an explanation.

tobymao commented 1 year ago

fixed with 3983fec