Skip to content

Promote expire triggers from experimental - #7545

Merged
oliver-sanders merged 22 commits into
cylc:masterfrom
Scott-Owen-James:7175
Nov 23, 2026
Merged

oliver-sanders merged 22 commits into
cylc:masterfrom
Scott-Owen-James:7175

Conversation

@Scott-Owen-James

@Scott-Owen-James Scott-Owen-James commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

closes #7175

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to both setup.cfg (and conda-environment.yml if present).
  • Tests are included (or explain why tests are not needed).
  • Changelog entry included if this is a change that can affect users
  • Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/1004.
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@Scott-Owen-James Scott-Owen-James self-assigned this Oct 20, 2026
@Scott-Owen-James

This comment was marked as outdated.

@Scott-Owen-James

This comment was marked as outdated.

@Scott-Owen-James
Scott-Owen-James marked this pull request as ready for review October 20, 2026 14:15
@oliver-sanders

This comment was marked as outdated.

@oliver-sanders

Copy link
Copy Markdown
Member

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

Comment thread cylc/flow/graph_parser.py Resolved
Comment thread tests/integration/test_task_pool.py Resolved
@oliver-sanders

oliver-sanders commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

That's the ticket 👍

We could do with:

  • A changelog entry.
  • Removal of uses of the old terminology from the codebase (don't want that lurking any longer than needed!).
  • A docs PR with:
    • Updates to the user guide to reflect the new function and terminology.
    • A major changes entry for 8.8.0 to let people know we've done it!

@oliver-sanders oliver-sanders added this to the 8.8.0 milestone Nov 3, 2026
Comment on lines +1401 to +1403
suicide = Boolean(
deprecation_reason='Unused field removed without replacement'
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 samuel-denton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

Comment thread cylc/flow/task_pool.py Resolved
Comment thread cylc/flow/data_messages_pb2.pyi Resolved
Comment thread cylc/flow/cfgspec/workflow.py Resolved
Comment thread cylc/flow/scripts/graph.py Resolved
Comment thread tests/integration/test_task_pool.py Resolved
Comment thread tests/integration/test_task_pool.py Resolved
Scott-Owen-James and others added 8 commits November 12, 2026 17:12
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>
Comment thread cylc/flow/scripts/graph.py Resolved
@oliver-sanders

Copy link
Copy Markdown
Member

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:

💯

Comment thread cylc/flow/config.py Resolved
Comment thread cylc/flow/task_pool.py Resolved
@oliver-sanders

Copy link
Copy Markdown
Member

Linked the coupled cylc-doc PR in the OP.

@samuel-denton samuel-denton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Approving with the caveat that the changelog needs some markdown adding for formatting. It's just a single paragraph atm:

image

Comment thread changes.d/7545.feat.md Resolved
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
@oliver-sanders

Copy link
Copy Markdown
Member

(Lint failure unrelated)

@oliver-sanders oliver-sanders left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@oliver-sanders
oliver-sanders merged commit 32bc4b1 into cylc:master Nov 23, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

expire triggers: promote from experimental feature

4 participants