##// END OF EJS Templates
chore(config): optimized celery configuration
super-admin -
r5299:2823fa9f default
parent child Browse files
Show More
@@ -68,12 +68,14 b' base_celery_config = {'
68 'result_expires': 60 * 60 * 24,
68 'result_expires': 60 * 60 * 24,
69 'result_persistent': True,
69 'result_persistent': True,
70 'imports': imports,
70 'imports': imports,
71 'worker_max_tasks_per_child': 20,
71 'worker_max_tasks_per_child': 100,
72 'worker_hijack_root_logger': False,
73 'worker_prefetch_multiplier': 1,
72 'task_serializer': 'msgpack',
74 'task_serializer': 'msgpack',
73 'accept_content': ['json', 'msgpack'],
75 'accept_content': ['json', 'msgpack'],
74 'result_serializer': 'msgpack',
76 'result_serializer': 'msgpack',
75 'result_accept_content': ['json', 'msgpack'],
77 'result_accept_content': ['json', 'msgpack'],
76 'worker_hijack_root_logger': False,
78
77 'broker_connection_retry_on_startup': True,
79 'broker_connection_retry_on_startup': True,
78 'database_table_names': {
80 'database_table_names': {
79 'task': 'beat_taskmeta',
81 'task': 'beat_taskmeta',
General Comments 0
You need to be logged in to leave comments. Login now