Commit a0a810af by Guba Sándor

django: change settings to outsorce celery to mancelery

parent ed351d66
...@@ -229,6 +229,7 @@ THIRD_PARTY_APPS = ( ...@@ -229,6 +229,7 @@ THIRD_PARTY_APPS = (
# Apps specific for this project go here. # Apps specific for this project go here.
LOCAL_APPS = ( LOCAL_APPS = (
'common',
'vm', 'vm',
'storage', 'storage',
'firewall', 'firewall',
...@@ -305,11 +306,5 @@ VM_ACCESS_PROTOCOLS = loads(get_env_variable('DJANGO_VM_ACCESS_PROTOCOLS', ...@@ -305,11 +306,5 @@ VM_ACCESS_PROTOCOLS = loads(get_env_variable('DJANGO_VM_ACCESS_PROTOCOLS',
"ssh": ["SSH", 22, "tcp"]}''')) "ssh": ["SSH", 22, "tcp"]}'''))
VM_SCHEDULER = 'manager.scheduler' VM_SCHEDULER = 'manager.scheduler'
from datetime import timedelta
CELERYBEAT_SCHEDULE = { BROKER_URL=get_env_variable('AMQP_URI')
'blabla': {
'task': 'firewall.tasks.local_tasks.periodic_task',
'schedule': timedelta(seconds=5),
},
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment