Skip to content

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