nesquena / backburner

Simple and reliable beanstalkd job queue for ruby
http://nesquena.github.com/backburner
MIT License
428 stars 68 forks source link

Is there any way to restart/reload the backburner process ? #113

Open MhdSyrwan opened 8 years ago

MhdSyrwan commented 8 years ago

Hi, I've checked the rake tasks and didn't find any helpful task for this purpose. So is there any signal we can send to the process to load code changes ?

Note: If you're wondering what i'm trying to do, i'm writing a capistrano deployment recipe for backburner in my application , and i find it a bit slow to kill and re-start the process on each deployment.

nesquena commented 8 years ago

Unfortunately, right now the process has to be killed and restarted. This would be a great addition to the processes though.

adamthedeveloper commented 6 years ago

I'm seeing something odd during my deployments. Using upstart to start/stop the rake task, stopping and then starting right after, the process is running, but it fails to pull anything from beanstalkd. I have to manually log into the machine, do a sudo service backburner stop and then do a sudo service backburner start to get it pulling jobs again. Do you know why remote ssh running the same commands would cause backburner to not see jobs in the queue? Am I stopping and starting too fast? I also tried a 10 second sleep between stopping and starting, but the same behavior happens. @MhdSyrwan How long does your kill and re-start take?

adamthedeveloper commented 6 years ago

Looks like if there are no jobs in the queue between stop and start, it won't process any future jobs. Is anyone else seeing this behavior? Should I open a new issue for this?