72580f65a0e0c986d45c3afe0c2d61281df75734,server/website/website/management/commands/stopcelery.py,Command,handle,#Command#,30
Before Change
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"]))
After Change
"Removing it manually.").format(
pidfile, name)))
with quiet():
local("rm -f {}".format(pidfile))
else:
self.stdout.write(self.style.SUCCESS(
"Successfully stopped "{}".".format(name)))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: cmu-db/ottertune
Commit Name: 72580f65a0e0c986d45c3afe0c2d61281df75734
Time: 2020-04-03
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/management/commands/stopcelery.py
Class Name: Command
Method Name: handle
Project Name: explosion/thinc
Commit Name: e16f4803e438bda3b5bedc8236d4bdd33f1e7ed5
Time: 2017-01-14
Author: ines@ines.io
File Name: fabfile/__init__.py
Class Name:
Method Name: env
Project Name: explosion/spaCy
Commit Name: d322c0ae8ba74db91dbc35781f50641c77c7af6f
Time: 2018-02-27
Author: honnibal+gh@gmail.com
File Name: fabfile.py
Class Name:
Method Name: env