I'd like to issue an asynchronous HTTP POST request using gevent
-- I don't care about the response, I simply want to execute the request as soon as possible. However, whenever I attempt to do so using gevent.spawn
, the request never executes. I know this because calling the .ready()
or .successful()
methods on the Greenlet
that is returned from gevent.spawn
always returns False
.
However, the Greenlet has started, because if I call glet = gevent.spawn(...)
, then glet.start()
, I get an error saying AssertionError: Greenlet already started
.
The only time I get a glet.ready() == True
is when I call glet.join()
, but this is a blocking operation. How can I have the Greenlet execute without waiting for it to complete?