You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import aiomisc
import asyncio
class TestService(aiomisc.Service):
async def start(self):
# Service is ready
self.start_event.set()
while True:
await asyncio.sleep(1)
with aiomisc.entrypoint(
TestService(),
log_level="info",
log_format="color"
) as loop:
loop.run_forever()
Stoping service in Pycharm leads to:
2023-07-13 16:29:13 [T:MainThread] ERROR:asyncio.unhandled: Exception in callback <built-in method set_result of _asyncio.Future object at 0x7fa78859e860>
Traceback (most recent call last):
File "uvloop/cbhandles.pyx", line 63, in uvloop.loop.Handle._run
asyncio.exceptions.InvalidStateError: invalid state
2023-07-13 16:29:13 [T:MainThread] WARNING:aiomisc.entrypoint: Interrupt signal received, shutting down...
Seems like it's not leading to some breaking behaviour, but just curious, can I fix it somehow.
The text was updated successfully, but these errors were encountered:
Stoping service in Pycharm leads to:
Seems like it's not leading to some breaking behaviour, but just curious, can I fix it somehow.
The text was updated successfully, but these errors were encountered: