Skip to content
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

Fix stuck command termination #17

Merged
merged 3 commits into from
Feb 12, 2020
Merged

Fix stuck command termination #17

merged 3 commits into from
Feb 12, 2020

Conversation

Crevil
Copy link
Member

@Crevil Crevil commented Feb 12, 2020

If a signal stops the application it gets stuck when daemon go routines tried to
signal component ending.
This is not the intended behaviour and is fixed with this change.

Only signals and an error on the HTTP listeners are able to initiate a shutdown.
As the daemons have no reliable way of indicating that they've stopped, there is
no need for this mechanism.

Closes #15

If a signal stops the application it gets stuck when daemon go routines tried to
signal component ending.
This is not the intended behaviour and is fixed with this change.

Only signals and an error on the HTTP listners are able to initiate a shutdown.
As the daemons have no reliable way of indicating that they've stopped, there is
no need for this mechanism.
Copy link
Contributor

@emilingerslev emilingerslev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good 👍

@Crevil Crevil merged commit c2b8195 into master Feb 12, 2020
@Crevil Crevil deleted the fix/shutdown-handling branch February 12, 2020 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle signals for terminating
2 participants