remove result_expires

This commit is contained in:
Kenneth Kehl
2024-12-19 14:11:08 -08:00
3 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
import logging as real_logging
import os
import secrets
import string
@@ -36,6 +37,9 @@ class NotifyCelery(Celery):
# Configure Celery app with options from the main app config.
self.config_from_object(app.config["CELERY"])
self.conf.worker_hijack_root_logger = False
logger = real_logging.getLogger("celery")
logger.propagate = False
def send_task(self, name, args=None, kwargs=None, **other_kwargs):
other_kwargs["headers"] = other_kwargs.get("headers") or {}

View File

@@ -169,7 +169,6 @@ class Config(object):
CELERY = {
"worker_max_tasks_per_child": 500,
"task_ignore_result": True,
"result_expires": 0,
"result_persistent": False,
"broker_url": REDIS_URL,
"broker_transport_options": {