chrisboulton / php-resque

PHP port of resque (Workers and Queueing)
MIT License
3.43k stars 759 forks source link

Dont store failed jobs in 'failed' queue #345

Open shotap opened 7 years ago

shotap commented 7 years ago

Hi,
I use the onFailure hook to implement retry with ResqueScheduler, how I can prevent the job to append to the failed queue? because if I retry the job I dont want it to appear in the failed list

danhunsaker commented 7 years ago

It looks as though there isn't currently a way to do so. The code would have to be modified to check and handle a return value from the onFailure hook. At the moment, it's just a detailed log of each failure. (It's not really a "queue" in the first place, really.)