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

feat: add sigterm handler to gracefully shutdown worker and log #1579

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

YunchuWang
Copy link
Contributor

@YunchuWang YunchuWang commented Sep 23, 2024

Description

this adds the sigterm handler to gracefully shutdown the python worker and exit with successful code(0). Context can be traced in https://teams.microsoft.com/l/message/19:b0220a1e0c884a66a7f133247573434b@thread.tacv2/1726245777081?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=201c2bb2-812d-4986-ac92-9bfad0d6cc59&parentMessageId=1726245777081&teamName=Azure%20Functions%20Team&channelName=Servicing%20-%20Sev2s%2C%20CRIs%20and%20general%20guidance&createdTime=1726245777081


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made and CI is passing.

Quality of Code and Contribution Guidelines

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