From 16d8fbbbfd95c4fa819e18c4896abd5f44e14397 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Tue, 4 Apr 2023 17:12:57 +0100 Subject: [PATCH] feat(chalice): EE fixed user trail with multiple background tasks --- ee/api/chalicelib/core/traces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/api/chalicelib/core/traces.py b/ee/api/chalicelib/core/traces.py index 5b7db3e64..d20134435 100644 --- a/ee/api/chalicelib/core/traces.py +++ b/ee/api/chalicelib/core/traces.py @@ -144,7 +144,7 @@ def trace(action: str, path_format: str, request: Request, response: Response): if response.background is None: response.background = background_task else: - response.background.add_task(background_task.func, *background_task.args, *background_task.kwargs) + response.background.add_task(background_task) async def process_traces_queue():