Title: fix: handle sigterm by fernandezcuesta · Pull Request #130 · crossplane/function-sdk-python · GitHub
Open Graph Title: fix: handle sigterm by fernandezcuesta · Pull Request #130 · crossplane/function-sdk-python
X Title: fix: handle sigterm by fernandezcuesta · Pull Request #130 · crossplane/function-sdk-python
Description: Description of your changes Python based functions are not properly handling SIGTERM and as a consequence, are slow to shut down as raised in #109. This PR adds a handler for SIGTERM which essentially calls server.stop() to gracefully terminate connections with a given grace period (5 seconds). Fixes #109 I have: Read and followed Crossplane's contribution process. Added or updated unit tests for my change.
Open Graph Description: Description of your changes Python based functions are not properly handling SIGTERM and as a consequence, are slow to shut down as raised in #109. This PR adds a handler for SIGTERM which essentia...
X Description: Description of your changes Python based functions are not properly handling SIGTERM and as a consequence, are slow to shut down as raised in #109. This PR adds a handler for SIGTERM which essentia...
Opengraph URL: https://github.com/crossplane/function-sdk-python/pull/130
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6495a43e-76db-9ee2-da7a-9bdc83f24b2d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 91FC:3AEFAE:271DD9:34A29A:6A61A321 |
| html-safe-nonce | 1449330729b815f3caee42d51321c50904274ed072303db4a4ceaf1d3ed9415d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUZDOjNBRUZBRToyNzFERDk6MzRBMjlBOjZBNjFBMzIxIiwidmlzaXRvcl9pZCI6IjIzOTM1NDI4OTMxMDgzMDY3MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8a60917a1346721836776895cd20f9f1fca2cd944fe25fc443460a0fa9f937a9 |
| hovercard-subject-tag | pull_request:2338492450 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/crossplane/function-sdk-python/pull/130/files |
| twitter:image | https://avatars.githubusercontent.com/u/7312236?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/7312236?s=400&v=4 |
| og:image:alt | Description of your changes Python based functions are not properly handling SIGTERM and as a consequence, are slow to shut down as raised in #109. This PR adds a handler for SIGTERM which essentia... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/crossplane/function-sdk-python git https://github.com/crossplane/function-sdk-python.git |
| octolytics-dimension-user_id | 45158470 |
| octolytics-dimension-user_login | crossplane |
| octolytics-dimension-repository_id | 721365259 |
| octolytics-dimension-repository_nwo | crossplane/function-sdk-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 721365259 |
| octolytics-dimension-repository_network_root_nwo | crossplane/function-sdk-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width