Skip to content

Commit fc15d6b

Browse files
author
Andrei Neagu
committed
added logging for failing long_running_tasks execution
1 parent dbcbce6 commit fc15d6b

File tree

1 file changed

+2
-1
lines changed
  • packages/service-library/src/servicelib/long_running_tasks

1 file changed

+2
-1
lines changed

packages/service-library/src/servicelib/long_running_tasks/task.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535

3636

3737
async def _await_task(task: asyncio.Task) -> None:
38-
await task
38+
with log_catch(_logger):
39+
await task
3940

4041

4142
def _get_tasks_to_remove(

0 commit comments

Comments
 (0)