Title: AsyncioIntegration signal handling · Issue #4234 · getsentry/sentry-python · GitHub
Open Graph Title: AsyncioIntegration signal handling · Issue #4234 · getsentry/sentry-python
X Title: AsyncioIntegration signal handling · Issue #4234 · getsentry/sentry-python
Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.24.0 Steps to Reproduce A user reported the following via discord: When i try to send SIGINT by ctrl+c nothing happens and program is waiting for 10 seconds, but in normal situatio...
Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.24.0 Steps to Reproduce A user reported the following via discord: When i try to send SIGINT by ctrl+c nothing happens and program is waitin...
X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.24.0 Steps to Reproduce A user reported the following via discord: When i try to send SIGINT by ctrl+c nothing happens and program is waitin...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/4234
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AsyncioIntegration signal handling","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n2.24.0\n\n### Steps to Reproduce\n\nA user reported the following [via discord](https://discord.com/channels/621778831602221064/1356716864650215504):\n\nWhen i try to send SIGINT by ctrl+c nothing happens and program is waiting for 10 seconds, but in normal situation it should be stopped with KeyboardInterrupt. This code works as expected after reverting code before this https://github.com/getsentry/sentry-python/pull/4129 (version 2.22.0).\n```\nfrom asyncio import sleep\nimport sentry_sdk\nfrom sentry_sdk.integrations.asyncio import AsyncioIntegration\ndef init_sentry() -> None:\n sentry_sdk.init(\n dsn=\"dsn\",\n integrations=[\n AsyncioIntegration(),\n ],\n )\n\nasync def main():\n init_sentry()\n await sleep(10)\nasyncio.run(main())\n```\n\n### Expected Result\n\nPressing ctrl+c during the await sleep() should immediately raise a KeyboardInterrupt \n\n### Actual Result\n\nPressing ctrl+c during the await sleep() doesn't immediately raise a KeyboardInterrupt\n","author":{"url":"https://github.com/kerenkhatiwada","@type":"Person","name":"kerenkhatiwada"},"datePublished":"2025-04-02T17:45:31Z","url":"https://github.com/getsentry/sentry-python/issues/4234"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d12b3f39-94dd-3403-0640-84fa2981550f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8364:134361:440C43:5B855A:6B00C9AA |
| html-safe-nonce | f140eec3bd90e6eedcdf9a68a9156203f6b030683afdbcff42465736c837d4e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzY0OjEzNDM2MTo0NDBDNDM6NUI4NTVBOjZCMDBDOUFBIiwidmlzaXRvcl9pZCI6IjM1ODI2OTQwNTMxODUxMTI0OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b13a5b2039b1ba79b9c3c4e84467c275e8cd1098e5d515f81ca1c76a505b0dd4 |
| hovercard-subject-tag | issue:2967119277 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/getsentry/sentry-python/4234/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f43a07bc17f4df3f94f61f8e27621215dead77683ac655ffc9e7dc949663b45/getsentry/sentry-python/issues/4234 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f43a07bc17f4df3f94f61f8e27621215dead77683ac655ffc9e7dc949663b45/getsentry/sentry-python/issues/4234 |
| og:image:alt | How do you use Sentry? Sentry Saas (sentry.io) Version 2.24.0 Steps to Reproduce A user reported the following via discord: When i try to send SIGINT by ctrl+c nothing happens and program is waitin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kerenkhatiwada |
| hostname | github.com |
| expected-hostname | github.com |
| None | 98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ef013399cf0a3c324bea644a685d7c1e0f06b5b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width