-
Notifications
You must be signed in to change notification settings - Fork 94
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
cylc play #4040
cylc play #4040
Conversation
a4e9d7f
to
999769d
Compare
9b79233
to
838edcb
Compare
4a8517c
to
bcaf267
Compare
https://github.com/cylc/cylc-flow/pull/4040/files#annotation_899603301
This is executed as part of |
Add function for deleting DB for cold start
Removed: --ict (icp) --initial-point (icp) --until (fcp) --final-point (fcp) --start-point (startcp) --stop-point (stopcp)
Brilliant to have this ready to go. Should it be un-Drafted now @MetRonnie ? |
Still some tests that I should run/add to this |
@hjoliver Should be ready now |
Also remove the part on --icp=ignore, --fcp=ignore etc. Will need to revisit this later
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.
Looks good to me, should save the remaining initial/final/start/stop questions for #4062 to avoid blocking this PR.
A few small comments...
cylc/flow/scheduler_cli.py
Outdated
# Install $PWD/flow.cylc as $(basename $PWD) and start it. | ||
$ cylc play |
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 think this example should bite the dust now:
# Install $PWD/flow.cylc as $(basename $PWD) and start it. | |
$ cylc play |
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.
So I should make the [REG]
arg non-optional?
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.
Yes please, it no longer makes sense since the change from registration to installation.
This feature will now only work if you are in the run directory for a suite which has either been written there or cylc installed
and will fail in unhelpful ways otherwise.
Tests re-run timed out. but I ran them locally and they all pass |
The same test batch has suddenly started timing out on #4035, after rebase. There might be a test broken by some recent change on master (if this branch is up to date too?) |
I think it's just going to need a longer timeout on GH Actions, that's all. It's running the whole test battery in that job, including the flakyfunctional, and possibly the poll tests take longer than tcp. Having said that, I've looked through the timed out test runs, and it seems there's more often than not a strange delay at the last couple of tests. Not sure why
|
Yeah that's not a good sign, if a such a simple test takes so long then something is likely going badly wrong. Sadly there isn't enough evidence to tell what. I've been stabilising a few tests and added a default workflow timeout in a branch I'm working on at the moment which might potentially help but I'm not sure. I've seen to outrageously long test runs on polling systems though not as bad as that! |
cylc/flow/scheduler_cli.py
Outdated
A "restart" continues the workflow from the earliest cycle point that was | ||
incomplete when shutdown occurred. Tasks recorded as submitted or running are |
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.
A "restart" continues the workflow from the earliest cycle point that was | |
incomplete when shutdown occurred. Tasks recorded as submitted or running are | |
A "restart" continues on from the most recent recorded state of the workflow. | |
Tasks recorded as submitted or running are |
I know what you mean, but "continues from the [blah] cycle point ..." could be confusing. We've traditionally described warm starts that way. A restart often involves tasks at multiple cycle points.
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.
Looks good, tests as working 🎉
Still one @oliver-sanders comment to respond to? (on the SuiteServiceFileError
exception)
Both should be sorted now |
@@ -172,7 +172,6 @@ class Scheduler: | |||
contact_data: Optional[dict] = None | |||
|
|||
# run options | |||
is_restart: bool = False |
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.
The idea of specifying everything up here is so that we can see all of the Scheduler attributes in one place. Can always default to None
until set later.
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.
Another Cylc8 brick in the wall, thanks @MetRonnie!
(Small comments above about an unused code block and removed dataclass attr definition).
Ooh, just spotted, a reference to cylc run
has snuck in probs with rebase in cylc.flow.scripts.install#24
.
And fix references to cylc run added by other PRs
Have amended last commit to address those |
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.
Thanks @MetRonnie, good job 🎉
These changes partially address #3897
Replace
cylc run
andcylc restart
withcylc play
.Remove the
START_POINT
optional positional argument.Tidy up the aliases for cycle points options, so only these are used:
Note: Running
cylc play
on a workflow that has previously been run now has the effect ofcylc restart
. In order to do a cold start, you will have to either runcylc clean
or remove the private & public databases before runningcylc play
(a function for the latter has been added totest_header
for the functional tests)Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.cylc pause
is implemented