mp911de / spinach

Scalable Java Disque client
Apache License 2.0
34 stars 4 forks source link

Implement NACK command #11

Closed mp911de closed 9 years ago

mp911de commented 9 years ago

NACK <job-id> ... <job-id>

The NACK command tells Disque to put back the job in the queue ASAP. It is very similar to ENQUEUE but it increments the job nacks counter instead of the additional-deliveries counter. The command should be used when the worker was not able to process a message and wants the message to be put back into the queue in order to be processed again.