tobymao/saq

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

jnordberg opened this issue · 1 comments

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.

fixed with 3983fec