cylc-flow icon indicating copy to clipboard operation
cylc-flow copied to clipboard

play: --no-detach should infer --host=localhost

Open oliver-sanders opened this issue 2 years ago • 3 comments

In both Cylc 7 & Cylc 8 --host=foo --no-detach is perfectly valid and does what it says on the tin. You will get cylc play running in --no-detach mode over an ssh connection.

However, does this make sense? Should we make --no-detach infer --host=localhost?

Pull requests welcome!

oliver-sanders avatar May 19 '22 14:05 oliver-sanders

I guess it's not much more convenient than actually logging in to the remote host and running cylc play --no-detach there locally, but in what way does it not make sense?

hjoliver avatar May 20 '22 00:05 hjoliver

If you specify a remote host via --host then it makes sense to me to use that host. However, what if you don't specify a host but have [scheduler][run hosts] configured? It might make sense to infer --host=localhost in this case rather than run on a remote host.

dpmatthews avatar Jun 13 '22 12:06 dpmatthews

(this would be changing the default for this combo rather than necessarily removing the option?)

oliver-sanders avatar Jun 13 '22 13:06 oliver-sanders