Replies: 2 comments
-
I have not implemented a graceful stop. To avoid the The |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the fast answer and for the tips. I guess I will continue with my manual cancelling then, this seems to work pretty well. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am using python-socketio together with aiohttp in a constellation of micro-services.
Lately I was checking some pytests that we have that are basically:
I see in pytest outputs these lines:
The one with
_service_task
is systematic.The one with
schedule_ping
is not but often there.It is not making my test fail, but it does not look good.
while browsing into
python-socketio
andpython-engineio
I saw that these background tasks are actually never cancelled, or somehow I could not find anywhere how to properly close/delete/cleanup the AsyncServer. Is there such a possibility? Sorry if I missed it... but I could not manage to find anything regarding this.The only way that I have found now, is to look though the current asyncio running tasks and find these to manually cancel them. but that is not very elegant. Is there any other option?
Thanks a lot for the very nice library!
Beta Was this translation helpful? Give feedback.
All reactions