-
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
Hide waiting tasks from n=0. #3823
Conversation
0a03ae1
to
90348fa
Compare
90348fa
to
4da8f1a
Compare
cylc/flow/scheduler.py
Outdated
@@ -1672,6 +1671,7 @@ async def shutdown(self, reason): | |||
self.proc_pool.process() | |||
|
|||
if self.pool is not None: | |||
self.pool.report_unmet_deps() |
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.
Log any partially satisfied tasks at shutdown as well as stall.
@@ -1525,7 +1524,7 @@ async def update_data_structure(self): | |||
updated_nodes = set(updated_tasks).union( | |||
self.pool.get_pool_change_tasks()) | |||
if ( | |||
has_updated or | |||
updated_nodes 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.
The datastore wasn't updating on some changes (noticed via tests that use cylc dump
, which now goes via GraphQL to the datastore).
0d105f7
to
00b9f93
Compare
228dc55
to
281ec4f
Compare
@@ -176,7 +176,6 @@ def __init__(self, config, suite_db_mgr, task_events_mgr, job_pool): | |||
|
|||
self.is_held = False | |||
self.hold_point = None | |||
self.stuck_future_tasks = [] |
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.
Stuck future tasks are another artifact of the old SoS algorithm: a waiting task gets spawned even though it depends on another task that is beyond the stop point. Under SoD they don't get spawned (or if they have other non-future prereqs as well, they will only be spawned as hidden partially-satisfied tasks).
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.
LGTM 👍
It does make the current data-store jump around a bit, but that will be dealt with soon (#3811), although (after testing with this branch), it will also need a little work.
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.
Non-blocking log format improvements:
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
744cf7d
to
131ec15
Compare
Log message changes applied @oliver-sanders (although they required some tweaking). |
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.
Works as expected for my examples.
Leaving un-merged incase you want to add a changelog, however, since SoD hasn't made release yet I don't think it's required.
(I will update the SoD proposal to reflect this change) |
(The above two issues are closely related through how we handle partially-satisfied waiting tasks here and/or on master)
Also removes several checkpoint tests rather than adapt them to this branch, because they're about to be deleted anyway.
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.