I am using kue for delayed jobs in my node.js application.
I have some problems to figure out how I can restart a job using the API of kue without having to move the id of a job manually from the the list of failed jobs to the list of inactive jobs using redis commands.
Is this possible using kue?
I don't want to set a fixed number of retry attempts - I just want to retry specific jobs.
Suggestions for a well maintained alternative to kue are also welcome.
see Failure Attempts in the official docs
reference: failure attempts
This can also be done using queue level events.
Thus you don't need to do for every job that you wish to retry. Instead you can filter it in the queue level event.
i dont know if this is working but you could try to reset the state of the job to active, and save the job again:
Edit: setting state to inactive will correctly re-enqueue the task.