0

I have a simple code for ruby- resque.

But due to some code issues, some jobs fail.

The problem is that they do not appear in failed jobs, they just disappear (once job is taken from the queue, it's poped, so it's removed).

How can I make resque to put the job in failed position?

meso_2600
  • 1,940
  • 5
  • 25
  • 50
  • That weird what does you see in resque UI – Viren Dec 05 '12 at 07:38
  • I see the problem. Once the job is taken form the queue, it is removed from redis. Once it fails it's back in the redis in failed jobs. But the moment you stop the worker (ctrl+c) it doesn't have time to put it back in the failed jobs – meso_2600 Dec 05 '12 at 11:02

1 Answers1

0

I see the problem. Once the job is taken form the queue, it is removed from redis. Once it fails it's back in the redis in failed jobs. But the moment you stop the worker (ctrl+c) it doesn't have time to put it back in the failed jobs

meso_2600
  • 1,940
  • 5
  • 25
  • 50