-
Notifications
You must be signed in to change notification settings - Fork 571
Closed
Labels
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 situation it should be stopped with KeyboardInterrupt. This code works as expected after reverting code before this #4129 (version 2.22.0).
from asyncio import sleep
import sentry_sdk
from sentry_sdk.integrations.asyncio import AsyncioIntegration
def init_sentry() -> None:
sentry_sdk.init(
dsn="dsn",
integrations=[
AsyncioIntegration(),
],
)
async def main():
init_sentry()
await sleep(10)
asyncio.run(main())
Expected Result
Pressing ctrl+c during the await sleep() should immediately raise a KeyboardInterrupt
Actual Result
Pressing ctrl+c during the await sleep() doesn't immediately raise a KeyboardInterrupt
Metadata
Metadata
Assignees
Labels
Projects
Status
No status