Repository navigation
Promote expire triggers from experimental - #7545
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Have put out a pre-release announcement to give folks a poke to test this feature before it becomes the default and set the expectation that this will happen in 8.8.0: https://cylc.discourse.group/t/tip-expire-triggers-will-become-the-default-in-cylc-8-8/1364 |
|
That's the ticket 👍 We could do with:
|
5460517 to
0207c26
Compare
b8bca92 to
2c2d4f1
Compare
| suicide = Boolean( | ||
| deprecation_reason='Unused field removed without replacement' | ||
| ) |
There was a problem hiding this comment.
Note to reviewers: This field was presumably intended to record whether a graph edge is or is not a "suicide trigger".
This is still valid / useful, and we would like to have an indication of whether a graph edge is an "expire trigger" (as it has now been renamed). E.G, #6565
As it happens, this field doesn't appear to have ever been populated and is always False.
So for now, we're just deprecating it. At some point in the future we'll add a new field and populate it: #7585
samuel-denton
left a comment
There was a problem hiding this comment.
Mostly looking good.
Found a few leftover lines including "suicide". I think they are all intended as they are change logs or are commented as deprecated. The one exception, which I do not know if it should be updated, is:
cylc-flow/cylc/flow/cfgspec/workflow.py - L974
I suspect it should be updated with the rest.
I have been very picky with my review so sorry about that!
Note on the comments on tests along the lines of:
"No need for expire trigger" from "No need for suicide trigger"
Having looked into these, it's referencing how the graph used to be constructed in cylc7 when suicide triggers were required for more basic functions:
- In Cylc 7, every task in the graph was created ahead of time, waiting to run. With a branch like "on fail, run recover", the recover task existed even when the model succeeded. It sat there waiting forever and stalled the workflow.
- The workaround was suicide triggers (model => !recover), used to remove the tasks on whichever branch wasn't taken.
- Cylc 8 introduced "spawn on demand" (the "SoD" in the comments): a task is only created once something it depends on has happened. Tasks on the branch not taken are never created, so there's nothing to clean up.
So that was a useful tangent for me!
Co-authored-by: Samuel Denton <samuel.denton@metoffice.gov.uk>
Co-authored-by: Samuel Denton <samuel.denton@metoffice.gov.uk>
Co-authored-by: Samuel Denton <samuel.denton@metoffice.gov.uk>
Co-authored-by: Samuel Denton <samuel.denton@metoffice.gov.uk>
Co-authored-by: Samuel Denton <samuel.denton@metoffice.gov.uk>
Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
💯 |
9e7b7a3 to
fb431e1
Compare
|
Linked the coupled cylc-doc PR in the OP. |
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
|
(Lint failure unrelated) |

closes #7175
Check List
CONTRIBUTING.mdand added my name as a Code Contributor.setup.cfg(andconda-environment.ymlif present).?.?.xbranch.