-
Couldn't load subscription status.
- Fork 469
Added support to gracefully shutdown language worker #8385
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
Conversation
There was a problem hiding this 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
test/WebJobs.Script.Tests.Integration/WebHostEndToEnd/SamplesEndToEndTests_Java.cs
Outdated
Show resolved
Hide resolved
| }); | ||
|
|
||
| WorkerProcess.WaitForProcessExit(); | ||
| WorkerProcess.WaitForProcessExitInMilliSeconds(gracePeriod * 1000); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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
release_notes.mdAdditional information
Additional PR information