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
Post a Comment