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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -