mardi 24 mai 2016

Gunicorn do not reload worker

Can I tell the Gunicorn to fail when one of the workers failed to boot? I don't want gunicorn to automatically handle and reload the worker for me, but I want it to fail not trying to launch worker again and again. Should I raise any specific exception to master process or some signal? Or I can provide a command line argument when launching master process? I want to implement smth like this logic in worker:

if cond():
    sys.exit(1)

and then all the gunicorn to stop without relaunching this one worker

Aucun commentaire:

Enregistrer un commentaire