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

Propagate service error during graceful shutdown #153

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

FranzBusch
Copy link
Contributor

Motivation

When a service threw during graceful shutdown but had its behaviour set to gracefulShutdown itself then we were not rethrowing the error.

Modification

This PR makes sure that the first service that throws an error which doesn't have its failureTerminationBehavior to .ignore gets rethrown by the ServiceGroup.

@FranzBusch FranzBusch force-pushed the fb-error-graceful-shutdown branch from d0f5bdb to 05a8520 Compare August 23, 2023 09:39
# Motivation

When a service threw during graceful shutdown but had its behaviour set to `gracefulShutdown` itself then we were not rethrowing the error.

# Modification
This PR makes sure that the first service that throws an error which doesn't have its `failureTerminationBehavior` to `.ignore` gets rethrown by the `ServiceGroup`.
@FranzBusch FranzBusch force-pushed the fb-error-graceful-shutdown branch from 05a8520 to edd0d15 Compare August 23, 2023 09:56
@FranzBusch
Copy link
Contributor Author

@swift-server-bot test this please

@FranzBusch FranzBusch merged commit 06ec110 into main Aug 23, 2023
@FranzBusch FranzBusch deleted the fb-error-graceful-shutdown branch August 23, 2023 10:19
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.

2 participants