Skip to content

Commit

Permalink
Adds stopasgroup to the supervisor scripts (celery#4200)
Browse files Browse the repository at this point in the history
* Adds stopasgroup to the supervisor scripts

* Add details on the stopasgroup parameter in supervisor configs
  • Loading branch information
martialp authored and georgepsarakis committed Aug 16, 2017
1 parent 2394e73 commit f9a9337
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,4 @@ Samuel Dion-Girardeau, 2017/05/29
Aydin Sen, 2017/06/14
Preston Moore, 2017/06/18
Nicolas Mota, 2017/08/10
Martial Pageau, 2017/08/16
3 changes: 3 additions & 0 deletions extra/supervisord/celerybeat.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ autostart=true
autorestart=true
startsecs=10

; Causes supervisor to send the termination signal (SIGTERM) to the whole process group.
stopasgroup=true

; if rabbitmq is supervised, set its priority higher
; so it starts first
priority=999
6 changes: 2 additions & 4 deletions extra/supervisord/celeryd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ startsecs=10
; Increase this if you have very long running tasks.
stopwaitsecs = 600

; When resorting to send SIGKILL to the program to terminate it
; send SIGKILL to its whole process group instead,
; taking care of its children as well.
killasgroup=true
; Causes supervisor to send the termination signal (SIGTERM) to the whole process group.
stopasgroup=true

; Set Celery priority higher than default (999)
; so, if rabbitmq is supervised, it will start first.
Expand Down

0 comments on commit f9a9337

Please sign in to comment.