diff --git a/app/modules/task_base.py b/app/modules/task_base.py index 7e5e12fe..c5af50d1 100644 --- a/app/modules/task_base.py +++ b/app/modules/task_base.py @@ -113,8 +113,11 @@ class ModuleTask(Task): extra={ "task_name": self.name, "task_id": task_id, - "args": args, - "kwargs": kwargs, + # NOT "args"/"kwargs" — both clash with reserved LogRecord + # attribute names and cause logging.makeRecord to raise + # KeyError, which then masks the real task failure. + "task_args": args, + "task_kwargs": kwargs, "exception": str(exc), "traceback": str(einfo), },