-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graceful shutdown of signal handlers #2369
Comments
Yes, exactly. But I still want to name all of our signal tasks. I think that is a good idea. |
Thanks. So, named background tasks clean shutdown was done. Here we would need to clean named signal tasks (asyncio tasks, not background tasks) as well. Is my understanding correct? Do we also need to clean unnamed background tasks in the clean shutdown? |
How are you distinguishing these?
I am hesitant to do this because it may or may not be desirable. If anything it should be controllable by config. |
Hi @ahopkins 👋 , I'm interested in taking this as my first issue! I have some ideas and questions which I will discuss below. If I followed the flow correctly, I believe the task for signal handlers gets created in the
For the For the running of signal tasks on shutdown, I was thinking that a new method could be added to |
When signals are added, we should run some sort of a cleanup like this on shutdown to make sure any custom signals are run. This also includes a suggestion that we identify them with a name:
signal-XXXXX
.The text was updated successfully, but these errors were encountered: