mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-18 04:09:29 +00:00
Fixed schedule, added show command
This commit is contained in:
@@ -28,5 +28,5 @@ CELERYBEAT_SCHEDULE = {
|
||||
}
|
||||
|
||||
CELERY_ROUTES = {
|
||||
"sso.tasks.update_service_groups": {'queue': 'bulk'}},
|
||||
"sso.tasks.update_service_groups": {'queue': 'bulk'},
|
||||
}
|
||||
|
||||
8
fabfile.py
vendored
8
fabfile.py
vendored
@@ -19,7 +19,7 @@ def production():
|
||||
env.uwsgiconfig = os.path.join(env.path, '..', 'etc', 'uwsgi', 'dreddit-auth.ini')
|
||||
env.password = sha1('%s-%s' % (env.user, env.vhost)).hexdigest()
|
||||
|
||||
env.celeryconf = '--settings=%(config)s --pidfile=logs/%%n.pid --logfile=logs/%%n.log -n auth.pleaseignore.com bulk default -c 5 -c:bulk 3 -E:default' % env
|
||||
env.celeryconf = '-l INFO --settings=%(config)s --pidfile=logs/%%n.pid --logfile=logs/%%n.log -n auth.pleaseignore.com bulk default -c 5 -c:bulk 3 -E:default' % env
|
||||
|
||||
def test():
|
||||
"Use the test enviroment on Web2"
|
||||
@@ -143,7 +143,7 @@ def start_celeryd():
|
||||
require('path')
|
||||
|
||||
with cd('%(path)s/dreddit-auth/' % env):
|
||||
run('. env/bin/activate; app/manage.py celeryd_multi start auth %(celeryconf)s' % env)
|
||||
run('. env/bin/activate; app/manage.py celeryd_multi start %(celeryconf)s' % env)
|
||||
|
||||
|
||||
def stop_celeryd():
|
||||
@@ -172,6 +172,10 @@ def restart_celeryd():
|
||||
with cd('%(path)s/dreddit-auth/' % env):
|
||||
run('. env/bin/activate; app/manage.py celeryd_multi restart %(celeryconf)s' % env)
|
||||
|
||||
def show_celeryd():
|
||||
with cd('%(path)s/dreddit-auth/' % env):
|
||||
run('. env/bin/activate; app/manage.py celeryd_multi show %(celeryconf)s' % env)
|
||||
|
||||
|
||||
def start_uwsgi():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user