gevent.killall take a lot of time
Everywhere in the code we could find:
try:
gevent.joinall(tasks,raise_error=True)
finally:
gevent.killall(tasks)
This should be avoid, killall
take a lot of time
Should be replace by:
try:
gevent.joinall(tasks,raise_error=True)
except:
gevent.killall(tasks)
raise