antirez / antirez/disque

[Request] NACK with a delay

Offen
#170 4 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C
Sterne
8.1k
Forks
532
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi, I'd like to implement [retry with an exponential backoff as used in Sidekiq,](https://github.com/mperham/sidekiq/wiki/Error-Handling#automatic-job-retry) that is if a job fails it is requeued with an ever longer pause.

Right now if I NACK a job, it returns to the queue immediately. My other option is to ACK the job and add it again, with a delay. This works OK, but from client's point of view it changes the job ID and that makes tracking failed jobs more difficult.

The NACK command with a delay support could look like this:

`NACK ... [DELAY ]`

What do you think?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.