i have ruby application.
application consist of scheduled jobs, take places @ every 2 or 3 hrs or more continuously.
regularly make changes application, therefore have kill application , re-run again.
follow these 3 steps
ps -ef|grep rackup kill -9 pid rake run
so therefore scheduled jobs effected, if under execution...
way stop kill -9 command till jobs finished (may locks or script)
you need rescue systemexit
exceptions, or use trap
or at_exit
signal handlers. more info here.
Comments
Post a Comment