Adding celery granularity to fabfile.

This commit is contained in:
Samuel Clay 2011-09-25 09:31:08 -07:00
parent 47556ec303
commit eaa1377fbd
4 changed files with 10 additions and 1 deletions

11
fabfile.py vendored
View file

@ -110,11 +110,20 @@ def staging_full():
@roles('task')
def celery():
run('git pull')
celery_stop()
celery_start()
@roles('task')
def celery_stop():
with cd(env.NEWSBLUR_PATH):
run('git pull')
run('sudo supervisorctl stop celery')
with settings(warn_only=True):
run('./utils/kill_celery.sh')
@roles('task')
def celery_start():
with cd(env.NEWSBLUR_PATH):
run('sudo supervisorctl start celery')
run('tail logs/newsblur.log')

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB