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

Add hooks for Graceful shutdown #1108

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Conversation

terencefan
Copy link
Member

@terencefan terencefan commented Nov 13, 2020

Add a new step for graceful shutdown feature.

Now the graceful shutdown works in the following order.

  1. Set the server offline from ASRS.
  2. (New) Trigger OnShutdown hooks.
  3. Wait until all client connections have finished, depends on the mode (Wait/Migrate) you choose.
  4. Stop server connections.

As well as fixed a bug that will cause OperationCancelledException when the given endpoint is not accessible.

@terencefan terencefan force-pushed the graceful-shutdown branch 8 times, most recently from dc9c668 to 50d6e50 Compare November 16, 2020 05:22
@terencefan terencefan force-pushed the graceful-shutdown branch 3 times, most recently from 07910e0 to d345d3d Compare November 18, 2020 04:02
@terencefan terencefan force-pushed the graceful-shutdown branch 3 times, most recently from b0c3645 to a713973 Compare November 18, 2020 07:40
@terencefan terencefan force-pushed the graceful-shutdown branch 2 times, most recently from d4eee47 to 00be224 Compare November 19, 2020 04:38
@terencefan terencefan merged commit 7d162b9 into Azure:dev Nov 19, 2020
@terencefan terencefan deleted the graceful-shutdown branch November 19, 2020 06:47
@vicancy vicancy mentioned this pull request Nov 19, 2020
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