print(status)
if status['total'] == status['completed']:
    return
gevent.sleep(5)

def crawl(url):
    r = random.randint(0, 10)
gevent.sleep(r)
err = random.randint(0, 4)
if err == 0:
    raise Exception
greenlets = [gevent.spawn(crawl, each) for each in range(100)]
get_greenlet_status(greenlets)
Get total number of running greenlets in Gevent?