seomoz / qless-core

Core Lua Scripts for qless
MIT License
85 stars 33 forks source link

Jobs that exhaust retries don't publish to `failed` channel #86

Closed stephenreay closed 3 years ago

stephenreay commented 4 years ago

If a worker calls retry on a job that has exhausted it's retries, the job is marked as failed but never emits a message on the failed pubsub channel.

This means that workers cannot simply attempt to retry and rely on the system to do the right thing - they have to check if the job has any retries remaining and fail it if not.