llama-stack-mirror/llama_stack/providers/utils
Ihar Hrachyshka 1ceebdc813 fix: cancel scheduler tasks on shutdown
Otherwise the currently running tasks will never exit (before they
actually complete), which means the process can't be properly shut down
(only with SIGKILL).

Ideally, we let tasks know that they are about to shutdown and give them
some time to do so; but in the lack of the mechanism, it's better to
cancel than linger forever.

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-05-09 13:53:00 -04:00
..
bedrock chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
common chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
datasetio chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
inference chore: more mypy fixes (#2029) 2025-05-06 09:52:31 -07:00
kvstore feat: implementation for agent/session list and describe (#1606) 2025-05-07 14:49:23 +02:00
memory fix: add check for interleavedContent (#1973) 2025-05-06 09:55:07 -07:00
scoring chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
telemetry chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
scheduler.py fix: cancel scheduler tasks on shutdown 2025-05-09 13:53:00 -04:00