circus-tent / circus

A Process & Socket Manager built with zmq
http://circus.readthedocs.org/
Other
1.55k stars 258 forks source link

warn when numprocesses is set to 0 #1174

Closed tinylambda closed 2 years ago

tinylambda commented 2 years ago

In some cases we want to generate circus configuration file based on the running environment, set numprocesses = f'{os.CPU_COUNT - 1}', If we generate this configuration file on a one-core server, numprocesses will be set to 0, and there will be no watcher process started, but no information supplied.

add a warn message will supply the user more useful information to resolve this type of issue.