Skip to content

Commit

Permalink
[dist] fix stopping of delayed jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Jul 7, 2015
1 parent 156b767 commit 40bb741
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dist/obsapidelayed
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ case "$1" in
;;
stop)
echo -n "Shutting down OBS api delayed job handler "
run_in_api script/delayed_job.api.rb stop
run_in_api script/delayed_job.api.rb --queue=quick stop
run_in_api script/delayed_job.api.rb --queue=releasetracking stop -i 1000
run_in_api script/delayed_job.api.rb --queue=issuetracking stop -i 1010
run_in_api script/delayed_job.api.rb --queue=mailers stop -i 1020
# to be removed later. This is just for processing old jobs without default queue
run_in_api script/delayed_job.api.rb stop -i 1030
rc_status -v
echo -n "Shutting down OBS api clock daemon "
run_in_api $CLOCKWORKD -l -c config/clock.rb stop
Expand Down

0 comments on commit 40bb741

Please sign in to comment.