Andrew Svetlov added the comment:
You spawn too many subprocesses that finish virtually at the same time.
It leads to wakeup_fd overrun.
Python 3.6 is in security mode, sorry (and the fix is impossible).
Python 3.7 has warn_on_full_buffer=False flag for
New submission from Manoj C :
I have been using asyncio to run subprocess calls in a separate thread. For
this purpose I start an event loop in my main thread as per the recommendation
-
https://docs.python.org/3/library/asyncio-subprocess.html#subprocess-and-threads
.
Now when I use a