opentracing-contrib / python-flask

OpenTracing instrumentation for the Flask microframework
BSD 3-Clause "New" or "Revised" License
136 stars 47 forks source link

Running via flask run hangs forever #15

Open ror6ax opened 6 years ago

ror6ax commented 6 years ago

As a workaround, one could run python3 server.py. I suppose it's a side effect of https://github.com/jaegertracing/jaeger-client-python/issues/50.

ror6ax commented 6 years ago

@carlosalberto - any ideas why this may be a thing?

carlosalberto commented 6 years ago

@ror6ax I don't have much experience with Jaeger myself, but will take a look later today ;)

dbernardoj commented 5 years ago

I had the same issue. Pywren's map function appears to use Threadpool. It doesn't appear that Flask is designed for this. One workaround is to put your pywren code into a script and run with subprocess. E.g.: pw_output = subprocess.check_output(["python", "run_pw.py", args])

Celery seems like it may work but I haven't got around to trying it.