Skip to content

Commit

Permalink
chore: update region tags (#8510)
Browse files Browse the repository at this point in the history
## Description

Fixes #<ISSUE-NUMBER>

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

## Checklist
- [ ] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md)
- [ ] README is updated to include [all relevant information](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#readme-file)
- [ ] **Tests** pass:   `nox -s py-3.9` (see [Test Environment Setup](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#test-environment-setup))
- [ ] **Lint** pass:   `nox -s lint` (see [Test Environment Setup](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#test-environment-setup))
- [ ] These samples need a new **API enabled** in testing projects to pass (let us know which ones)
- [ ] These samples need a new/updated **env vars** in testing projects set to pass (let us know which ones)
- [ ] Please **merge** this PR for me once it is approved.
- [ ] This sample adds a new sample directory, and I updated the [CODEOWNERS file](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/.github/CODEOWNERS) with the codeowners for this sample
  • Loading branch information
averikitsch authored Nov 14, 2022
1 parent 0a52d22 commit 6518241
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions run/idp-sql/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,12 @@ def shutdown_handler(signal: int, frame: FrameType) -> None:
sys.exit(0)


# [END cloudrun_sigterm_handler]

if __name__ == "__main__":
# handles Ctrl-C locally
signal.signal(signal.SIGINT, shutdown_handler)

app.run(host="127.0.0.1", port=8080, debug=True)
else:
# handles Cloud Run container termination
# [START cloudrun_sigterm_handler]
signal.signal(signal.SIGTERM, shutdown_handler)
# [END cloudrun_sigterm_handler]
# [END cloudrun_sigterm_handler]

0 comments on commit 6518241

Please sign in to comment.