Skip to content

Commit cdb691a

Browse files
author
lijianguo
committed
chore(helmbroker): upgrade celery config
1 parent f88f465 commit cdb691a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

rootfs/helmbroker/config.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
class Config:
1414
DEBUG = bool(os.environ.get('DRYCC_DEBUG', True))
1515
# Celery Configuration Options
16-
CELERY_TIMEZONE = "Asia/Shanghai"
17-
CELERY_ENABLE_UTC = True
18-
CELERY_TASK_SERIALIZER = 'pickle'
19-
CELERY_ACCEPT_CONTENT = frozenset([
16+
timezone = "Asia/Shanghai"
17+
enable_utc = True
18+
task_serializer = 'pickle'
19+
accept_content = frozenset([
2020
'application/data',
2121
'application/text',
2222
'application/json',
2323
'application/x-python-serialize',
2424
])
25-
CELERY_TASK_TRACK_STARTED = True
26-
CELERY_TASK_TIME_LIMIT = 30 * 60
27-
CELERYD_MAX_TASKS_PER_CHILD = 200
28-
CELERY_TASK_RESULT_EXPIRES = 24 * 60 * 60
25+
task_track_started = True
26+
task_time_limit = 30 * 60
27+
worker_max_tasks_per_child = 200
28+
result_expires = 24 * 60 * 60

0 commit comments

Comments
 (0)