Skip to content

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Sep 2, 2021

motivation: more reliable shutdown in edge cases where lifecycle never gets started

changes: when shutting down an idle lifecycle, try to shutdown any tasks that have shutdownIfNotStarted set to true

…tting down a never-started-lifecycle

motivation: more reliable shutdown in edge cases where lifecycle never gets started

changes: when shutting down an idle lifecycle, try to shutdown any tasks that have shutdownIfNotStarted set to true
@tomerd tomerd added this to the 1.0.0-alpha8 milestone Sep 2, 2021
@tomerd tomerd requested review from fabianfett and yim-lee September 2, 2021 05:43
@tomerd tomerd linked an issue Sep 2, 2021 that may be closed by this pull request
@tomerd
Copy link
Contributor Author

tomerd commented Sep 2, 2021

jazzy issues failing CI, need #108 first

Copy link
Member

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

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

LGTM. Maybe we should explicitly call out this behavior in the docs. IMHO it is quite important, if you use MultiThreadedEventLoopGroup, AsyncHTTPClient or Soto.

@tomerd
Copy link
Contributor Author

tomerd commented Sep 2, 2021

Maybe we should explicitly call out this behavior in the docs. IMHO it is quite important, if you use MultiThreadedEventLoopGroup, AsyncHTTPClient or Soto.

thats a good idea. was planning to rework docs in a following PR anyways, so will do then

@tomerd tomerd merged commit c825a58 into swift-server:main Sep 2, 2021
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.

Shutdown must ALWAYS be called for shutdownIfNotStarted=true

3 participants