cylc-flow
cylc-flow copied to clipboard
`cylc vr` bug with `initial cycle point = now`
[scheduling]
initial cycle point = now
[[graph]]
PT1M = "foo"
[runtime]
[[foo]]
cylc vip bugcylc stop bug- (add a comment to
flow.cylc) cylc vr bug
Result:
ERROR - Workflow shutting down - InputError: option --icp is not valid for restart
This only happens for initial cycle point = now 🤔
Duplicated, and assured myself that this is a VR bug - doing this serially as cylc install and then cylc play is fine.
The problem is that the validate step alters the options object passed to it by storing the value of now as options.icp.
I can fix this problem (and any others like it) by copying the options passed to validate, but I wonder if I should stop validate changing options and check that it's not doing this elsewhere?