chore(config): optimized celery configuration
This commit is contained in:
parent
86bc980004
commit
135a6105d4
1 changed files with 4 additions and 2 deletions
|
|
@ -68,12 +68,14 @@ base_celery_config = {
|
|||
'result_expires': 60 * 60 * 24,
|
||||
'result_persistent': True,
|
||||
'imports': imports,
|
||||
'worker_max_tasks_per_child': 20,
|
||||
'worker_max_tasks_per_child': 100,
|
||||
'worker_hijack_root_logger': False,
|
||||
'worker_prefetch_multiplier': 1,
|
||||
'task_serializer': 'msgpack',
|
||||
'accept_content': ['json', 'msgpack'],
|
||||
'result_serializer': 'msgpack',
|
||||
'result_accept_content': ['json', 'msgpack'],
|
||||
'worker_hijack_root_logger': False,
|
||||
|
||||
'broker_connection_retry_on_startup': True,
|
||||
'database_table_names': {
|
||||
'task': 'beat_taskmeta',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue