Update celery commands

This commit is contained in:
dvanaken
2020-02-06 15:48:31 -05:00
committed by Dana Van Aken
parent 9a5dea806f
commit 42fc5ebe3e
5 changed files with 6 additions and 8 deletions

View File

@@ -57,4 +57,6 @@ class Command(BaseCommand):
"Successfully stopped '{}'.".format(name)))
with quiet():
local("ps auxww | grep '[c]elery worker' | awk '{print $2}' | xargs kill -9")
local("ps auxww | grep '[c]elerybeat' | awk '{print $2}' | xargs kill -9")
local('rm -f {} {}'.format(options['celery_pidfile'], options['celerybeat_pidfile']))