Hi there. We can re-trigger a task after a mistake is fixed in an external script being run by that task. But is there a way to re-run a task when there are changes in the flow.cylc file without starting a new run?
Also, I’ve noticed that if I fix a problem in an external script and trigger the task that previously failed, the change is picked up on the first cycle, and the task completes. However, the second cycle does not seem to pick up the fix. Triggering it results in the same failure as before the fix was implemented
Hi,
Yes, there are two ways to change the configuration of a workflow, whilst it is running:
- You can edit the
flow.cylc
file and “reload” the workflow using thecylc vr
command. (example). - You can edit the configuration of a particular task or family. (example).
In both cases you will need to manually trigger any tasks that you want to re-run with the new configuration.
1 Like
When I was fixing the external script, I was fixing it on the remote host, not on the scheduler’s host. Seems to make a difference…
Cylc installs selected files in your workflow repository onto remote platforms automatically when the first task is submitted to them.
When you “reload” a workflow, Cylc will repeat this remote installation to pick up any local changes.
So, you should be able to edit your scripts in the cylc-src
directory, then run cylc vr
and re-trigger the task(s) you want to re-run with the new script.