From 5616d31888c0d56cf045b7ac0b0d45d1f6bcd14e Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Thu, 16 May 2024 17:31:12 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20CeleryTaskExecution=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E6=97=B6=E5=8E=BB=E6=8E=89=E6=97=A0=E7=94=A8=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/signal_handlers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/ops/signal_handlers.py b/apps/ops/signal_handlers.py index c070fd094..1d1920e05 100644 --- a/apps/ops/signal_handlers.py +++ b/apps/ops/signal_handlers.py @@ -140,6 +140,9 @@ def task_sent_handler(headers=None, body=None, **kwargs): args = [] kwargs = {} + # 不要保存__current_lang和__current_org_id参数,防止系统任务中点击再次执行报错 + kwargs.pop('__current_lang', None) + kwargs.pop('__current_org_id', None) data = { 'id': i, 'name': task,