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

DelayedKeyboardInterrupt._handler is not called #1

Open
mdhom opened this issue Apr 10, 2021 · 0 comments
Open

DelayedKeyboardInterrupt._handler is not called #1

mdhom opened this issue Apr 10, 2021 · 0 comments

Comments

@mdhom
Copy link

mdhom commented Apr 10, 2021

Hey,
i am using the simple example on a Raspberry Pi, running Python 3.7.3. When i terminate my application, i get the following errors:

!!! AsyncApplication.run: got KeyboardInterrupt during stop
main: end
Task was destroyed but it is pending!
task: <Task pending coro=<testService.run() done, defined at /home/pi/share/app.py/services/testService.py:28> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0xb5d7ff10>()]>>
Task was destroyed but it is pending!
task: <Task pending coro=<Event.wait() done, defined at /usr/lib/python3.7/asyncio/locks.py:280> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0xb5d7fcd0>()]> cb=[<TaskWakeupMethWrapper object at 0xb5d7f8b0>()]>
sys:1: RuntimeWarning: coroutine 'testService.stop' was never awaited

It seems like the DelayedKeyboardInterrupt does not work on my system. Or somehow the KeyboardInterrupt is sent twice, because my application starts stopping all services.
image
This is where the "second" KeyboardInterrupt is raised.

Would be really glad if you could help me!

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

No branches or pull requests

1 participant