golemfactory / dapp-runner

GNU Lesser General Public License v3.0
5 stars 6 forks source link

errors on shutdown #51

Closed shadeofblue closed 1 year ago

shadeofblue commented 2 years ago

when dapp-runner is stopped before the the app is started, visible errors are displayed on the output caused by unclosed asyncio tasks:

task: <Task pending name='Task-20' coro=<RunnerStreamer._feed_queue() running at /home/blue/PycharmProjects/dapp-runner/dapp_runner/runner/streams.py:64> wait_for=<Future pending cb=[Task.task_wakeup()]>>
[2022-09-28T12:30:57.821+0200 ERROR asyncio] Task was destroyed but it is pending!
task: <Task pending name='Task-21' coro=<RunnerStream.update() running at /home/blue/PycharmProjects/dapp-runner/dapp_runner/runner/streams.py:24> wait_for=<Future pending cb=[Task.task_wakeup()]>>
[2022-09-28T12:30:57.821+0200 ERROR asyncio] Task was destroyed but it is pending!
task: <Task pending name='Task-22' coro=<RunnerStreamer._feed_queue() running at /home/blue/PycharmProjects/dapp-runner/dapp_runner/runner/streams.py:64> wait_for=<Future pending cb=[Task.task_wakeup()]>>
[2022-09-28T12:30:57.821+0200 ERROR asyncio] Task was destroyed but it is pending!
task: <Task pending name='Task-23' coro=<RunnerStream.update() running at /home/blue/PycharmProjects/dapp-runner/dapp_runner/runner/streams.py:24> wait_for=<Future pending cb=[Task.task_wakeup()]>>
[2022-09-28T12:30:57.821+0200 ERROR asyncio] Task was destroyed but it is pending!
task: <Task pending name='Task-24' coro=<RunnerStream.update() running at /home/blue/PycharmProjects/dapp-runner/dapp_runner/runner/streams.py:24> wait_for=<Future pending cb=[Task.task_wakeup()]>>
[2022-09-28T12:30:57.821+0200 ERROR asyncio] Task was destroyed but it is pending!
task: <Task pending name='Task-25' coro=<RunnerStream.update() running at /home/blue/PycharmProjects/dapp-runner/dapp_runner/runner/streams.py:24> wait_for=<Future pending cb=[Task.task_wakeup()]>>

these tasks should be cancelled as appropriate