-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
shutdown doesn't complete #295
Comments
Thank you, tracked |
From some testing I have figured out that the context given to courier.Work doesn't work, because it is a simple Background worker, which is never canceled. From what I can tell, the background context would need to be extended with WithCancel and extended with a signal handler. I will see if I can adapt the code for the latter option, maybe I can get it working. |
Courier would not stop with the provided Background handler. This changes the methods of Courier so that the graceful package can be used in the same way as the http endpoints can be used. Closes #295
Describe the bug
When stopping serving kratos it doesn't shutdown completely and just hangs around. I have to kill -9 the process to make it stop.
Reproducing the bug
Steps to reproduce the behavior:
./kratos serve --config kratos.yaml
with minimal settingsServer logs
Server configuration
Expected behavior
I should be able to stop the daemon either with ctrl-c or using a normal kill.
Environment
The text was updated successfully, but these errors were encountered: