mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-25 10:39:36 -04:00
Add graceful shutdown to ServiceAsTool's start_consuming_callable task.
#51
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nerdai on GitHub (Jul 20, 2024).
When
acallis invoked forServiceAsTool'sit may register to the message queue and send the returnedstart_consuming_callabletask in the "background" viaasyncio.create_task.When shutting down a system with such a service, we don't currently cancel this task.
@masci commented on GitHub (Feb 19, 2025):
Closing as
ServiceAsToolwas deprecated