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

ssh client: patch over the differences with the zmq client

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

The SSH client does not inherit from the ZMQ client so their functionality has drifted a little e.g. the SSH client does not support the timeout_handler which can detect when workflows have stopped or restarted.

Suggest refactoring out a common base class with two concrete implementations.

Should be suitable for a later release candidate (no interface changes).

Pull requests welcome!

oliver-sanders avatar Jan 26 '22 11:01 oliver-sanders

Was thinking the same, happy to take this on in the near future

MetRonnie avatar Jan 31 '22 11:01 MetRonnie

Is this https://github.com/cylc/cylc-flow/blob/4ca97df6b05e3670dae42ca4d5e680912d0cfdbc/cylc/flow/network/client.py#L199-L201

specific to the ZMQ WorkflowRuntimeClient or should it be moved into the shared timeout_handler method?

MetRonnie avatar Mar 15 '22 17:03 MetRonnie

That should be shared logic.

oliver-sanders avatar Mar 15 '22 17:03 oliver-sanders

Eventually this may be share with HTTP also (if we can ever get the CLI via hub/server working)

dwsutherland avatar May 19 '22 05:05 dwsutherland