-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vr: restart the workflow with no changes according to user prompt #6354
base: 8.3.x
Are you sure you want to change the base?
Conversation
(Looks good, but I haven't done a proper review yet). |
8021ce9
to
c3230e9
Compare
(rebased) |
* Closes cylc#6261 * If there are no changes to reinstall AND the workflow is stopped, prompt the user to see whether they want to restart it anyway. * This makes `cylc vr` more useful as the "I want to restart my workflow" command. * But it also ensures that they are aware if no changes are present as they might have forgotten to press save or run the command on the wrong workflow or whatever.
(rebased) |
Co-authored-by: Tim Pillinger <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alles Gut!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure the logic is quite right here.
# the are no changes to install and the workflow is running | ||
# => there is nothing for us to do here | ||
LOG.warning( | ||
f'{NO_CHANGES_STR}: No reinstall or' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f'{NO_CHANGES_STR}: No reinstall or' | |
f'{NO_CHANGES_STR}: no' |
The STR already says that no reinstall is needed.
no changes, workflow running
no changes, workflow stopped
|
I think that behaviour is as intended (and mostly as before), the I'm guessing you would rather have two separate options for these? Either way, bumping. |
Not unless you have a good argument for 3. above - is there any need for forced reinstall of no changes? If there is a need, then yes we should have a separate BTW, |
cylc vr
- restart with no changes? #6261cylc vr
command will now prompt the user to give them the option of restarting the workflow.An odd feature to introduce at a bugfix release, however, it's kinda a UX type issue so it might make sense.
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.