It would be great to have a command line arg to set the name of the process
granian webapp:app --name yoursite
And have the workers named granian-yoursite-worker and the main process just granian-yoursite-supervisor or something like that. All it needs is a call to setproctitle.setproctitle("yoursite") in the start up.
I can do this myself with setproctitle:
But two drawbacks. I can't number the workers (like worker 1 worker 2, etc) easily and I can't change the name of the supervisor process at all.
It would be great to have a command line arg to set the name of the process
And have the workers named
granian-yoursite-worker
and the main process justgranian-yoursite-supervisor
or something like that. All it needs is a call tosetproctitle.setproctitle("yoursite")
in the start up.I can do this myself with
setproctitle
:But two drawbacks. I can't number the workers (like worker 1 worker 2, etc) easily and I can't change the name of the supervisor process at all.