cylc / cylc-uiserver

A Jupyter Server extension that serves the cylc-ui web application for monitoring and controlling Cylc workflows.
https://cylc.org
GNU General Public License v3.0
15 stars 18 forks source link

mutation to restart workflows with newer Cylc versions #423

Open oliver-sanders opened 1 year ago

oliver-sanders commented 1 year ago

Add wrapper-script aware mutation for auto-restarting workflows using newer versions of Cylc.

This is intended to make the management of long-running workflows easier by reducing the effort of upgrading to newer versions.

Note that cylc-flow already has the faculty for auto-restarting workflows so it would probably be better/safer to implement this there.

At the UIS end we would need functionality for listing Cylc versions, and some way of flagging to the UI workflows which are running using older versions of Cylc.

Pull requests welcome!

oliver-sanders commented 10 months ago

Note, because local background jobs are submitted to the "localhost" platform, communication will be broken if the workflow restarts on a different server to the one these jobs were originally submitted to.

To avoid this, we must wait for local background jobs to complete before restarting. This is the same behaviour at the existing auto-restart plugin in cylc-flow.