django-orchestra/orchestra/contrib/tasks/settings.py

24 lines
476 B
Python
Raw Normal View History

2015-05-04 19:52:53 +00:00
from orchestra.contrib.settings import Setting
2015-05-03 17:44:46 +00:00
TASKS_BACKEND = Setting('TASKS_BACKEND',
'thread',
choices=(
('thread', "threading.Thread (no queue)"),
('process', "multiprocess.Process (no queue)"),
('celery', "Celery (with queue)"),
)
)
2015-05-04 19:52:53 +00:00
TASKS_ENABLE_UWSGI_CRON_BEAT = Setting('TASKS_ENABLE_UWSGI_CRON_BEAT',
False,
help_text="Not implemented.",
)
2015-07-21 12:23:40 +00:00
TASKS_BACKEND_CLEANUP_DAYS = Setting('TASKS_BACKEND_CLEANUP_DAYS',
10,
)