feat(chalice): EE fixed user trail with multiple background tasks

(cherry picked from commit 16d8fbbbfd)
This commit is contained in:
Taha Yassine Kraiem 2023-04-04 17:12:57 +01:00
parent 71f00ffabb
commit 7bce53bc1e

View file

@ -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():