clockwork icon indicating copy to clipboard operation
clockwork copied to clipboard

Stop clockwork

Open ya-jeks opened this issue 13 years ago • 3 comments

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

ya-jeks avatar Dec 10 '12 07:12 ya-jeks

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.

HenleyChiu avatar Apr 06 '13 20:04 HenleyChiu

you can use clockworkd start stop

On Apr 6, 2013, at 5:43 PM, Henley Chiu [email protected] 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.

fddayan avatar Apr 06 '13 20:04 fddayan

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?

hassanrehman avatar Mar 21 '14 05:03 hassanrehman