golemfactory / ray-on-golem

GNU General Public License v3.0
6 stars 4 forks source link

`ray-on-golem stop` does not wait for the webserver to stop while it is run externally #239

Open approxit opened 6 months ago

approxit commented 6 months ago

When webserver is run externally, calling ray-on-golem stop, requests its shutdown, but because of pid file does not exist, does not wait for its shutdown, exiting too quickly and wrongly reporting that shutdown was completed.

$ ray-on-golem stop
Requesting webserver shutdown...
Cannot stop the webserver, as the cluster is not empty.
Force the shutdown? [y/N]: y
Forcing webserver shutdown...
Force-shutdown requested, will stop soon.
Shutdown completed.