adamwiggins / clockwork

A scheduler process to replace cron
661 stars 186 forks source link

Stop clockwork #18

Open ya-jeks opened 11 years ago

ya-jeks commented 11 years ago

How can I stop clockwork, which started by RAILS_ENV=production bundle exec clockwork config/schedule.rb &. We are using it without God, Monit or anything else

HenleyChiu commented 11 years ago

I am also interested in knowing how to stop clockwork. I try to use it with God and ran into many problems. I also don't want to manually kill the PID although that's a last resort.

fddayan commented 11 years ago

you can use clockworkd start stop

On Apr 6, 2013, at 5:43 PM, Henley Chiu notifications@github.com wrote:

I am also interested in knowing how to stop clockwork. I try to use it with God and ran into many problems. I also don't want to manually kill the PID although that's a last resort.

— Reply to this email directly or view it on GitHub.

hassanrehman commented 10 years ago

Resurrecting an old thread: i'm basically looking to gracefully shut it down .. like we should be able to do Clockwork.shutdown which would break the loop in Clockwork::Manager which goes:

loop do tick sleep end

I want to be able to exit this loop. I've tried overriding it, but its protected inside the module. My last resort would be to fork and include it but i dont want to do that unless there is a solution. Anything?