Does the TCP connection created by requests persist when using Celery workers? -


i plan have celery workers sending notifications mobile devices (e.g. through gcm) , wish avoid opening needlessly many tcp connections

i have celery task defined this:

@task() def send_push_notification(     requests.post(...) ) 

suppose task executed worker on single machine. each subprocess open 1 tcp connection? or new connection created each time task executed?

if want reuse same tcp connection each subprocess, how go doing that?

thanks!


Comments

Popular posts from this blog

Need help in packaging app using TideSDK on Windows -

java - Why does my date parsing return a weird date? -

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -