Skip to content

Conversation

@surgupta-msft
Copy link
Contributor

@surgupta-msft surgupta-msft commented May 13, 2022

Issue describing the changes in this PR

resolves #2308
Design doc

Sending a WorkerTerminate message from host to worker to allow the worker to terminate itself gracefully instead of immediately killing it. Refer #3296 for more details.

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Additional information

Additional PR information

@surgupta-msft surgupta-msft marked this pull request as ready for review May 17, 2022 23:15
Copy link
Member

@liliankasem liliankasem left a comment

Choose a reason for hiding this comment

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

looking good so far, just a few comments and questions

@liliankasem liliankasem self-requested a review July 15, 2022 22:10
});

WorkerProcess.WaitForProcessExit();
WorkerProcess.WaitForProcessExitInMilliSeconds(gracePeriod * 1000);
Copy link
Member

Choose a reason for hiding this comment

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

super nit here, but I don't feel we need to change the name, the method definition/summary should be enough to indicate if the parameter it takes is milliseconds or second

Copy link
Member

@satvu satvu left a comment

Choose a reason for hiding this comment

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

LGTM!

@surgupta-msft surgupta-msft merged commit b3d90c4 into dev Jul 26, 2022
@surgupta-msft surgupta-msft deleted the surgupta/graceful-shutdown-worker branch July 26, 2022 21:38
@surgupta-msft surgupta-msft restored the surgupta/graceful-shutdown-worker branch July 26, 2022 21:39
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.

Add support to gracefully shutdown language worker

6 participants