Skip to content

Commit

Permalink
Merge pull request teamhephy#58 from jianxiaoguo/main
Browse files Browse the repository at this point in the history
chore(controller): upgrade celery config
  • Loading branch information
duanhongyi committed Sep 3, 2021
2 parents b57de3d + cd6c5d5 commit fd83d06
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions rootfs/api/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,22 +470,22 @@
}

# Celery Configuration Options
CELERY_TIMEZONE = "Asia/Shanghai"
CELERY_ENABLE_UTC = True
CELERY_TASK_SERIALIZER = 'pickle'
CELERY_ACCEPT_CONTENT = frozenset([
timezone = "Asia/Shanghai"
enable_utc = True
task_serializer = 'pickle'
accept_content = frozenset([
'application/data',
'application/text',
'application/json',
'application/x-python-serialize',
])
CELERY_TASK_TRACK_STARTED = True
CELERY_TASK_TIME_LIMIT = 30 * 60
CELERYD_MAX_TASKS_PER_CHILD = 200
CELERY_TASK_RESULT_EXPIRES = 24 * 60 * 60
CELERY_BROKER_URL = os.environ.get('DRYCC_RABBITMQ_URL', 'amqp://guest:guest@127.0.0.1:5672/') # noqa
CELERY_CACHE_BACKEND = 'django-cache'
CELERY_DEFAULT_QUEUE = 'priority.middle'
task_track_started = True
task_time_limit = 30 * 60
worker_max_tasks_per_child = 200
result_expires = 24 * 60 * 60
broker_url = os.environ.get('DRYCC_RABBITMQ_URL', 'amqp://guest:guest@127.0.0.1:5672/') # noqa
cache_backend = 'django-cache'
task_default_queue = 'priority.middle'

# Influxdb Configuration Options
DRYCC_INFLUXDB_URL = os.environ.get('DRYCC_INFLUXDB_URL', 'http://localhost:8086')
Expand Down

0 comments on commit fd83d06

Please sign in to comment.