Skip to content

Suicide trigger prevents later cycles starting #6602

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

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

wxtim
Copy link
Member

@wxtim wxtim commented Feb 10, 2025

Closes #6594

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/XXXX.
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@wxtim wxtim marked this pull request as draft February 10, 2025 09:31
@wxtim wxtim changed the title ICP Bug Suicide trigger prevents later cycles starting Feb 10, 2025
@wxtim wxtim marked this pull request as ready for review February 11, 2025 10:40
@wxtim wxtim changed the base branch from master to 8.4.x February 11, 2025 10:44
@wxtim wxtim force-pushed the fix.icp-fail branch 2 times, most recently from 23bc488 to 0700c90 Compare February 11, 2025 10:45
@oliver-sanders oliver-sanders added this to the 8.4.x milestone Feb 13, 2025
@wxtim wxtim marked this pull request as draft March 7, 2025 09:59
@wxtim wxtim marked this pull request as ready for review March 10, 2025 13:32
@wxtim wxtim requested a review from oliver-sanders April 8, 2025 08:07
Copy link
Member

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

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

Tested as working 👍.

I don't get why we would want to exclude self-edges in this function so I think this change makes sense.

@hjoliver
Copy link
Member

hjoliver commented Apr 10, 2025

I don't get why we would want to exclude self-edges in this function

Looking back at my original change (from 2022), the explanation at the time was something to do with the way suicide triggers work under SOD.

foo:fail => !bar

In Cylc 7, bar would be pre-spawned as waiting, and if foo fails the suicide trigger removes bar.

In Cylc 8, the suicide trigger is no longer necessary, but it still works because: if foo fails it spawns bar (on demand) and then the suicide trigger immediately removes it again.

Self-suicide (foo:fail => !foo) works the same way in Cylc 7, but there is a difference (from non-self suicide) in Cylc 8 because the trigger does not need to spawn foo (it was already spawned).

Anyhow, that change fixed a bug at the time, and this one, which partially reverts the change, fixes another without restoring the original bug (confirmed above), so I'm not going to blow any more time on this now.

Copy link
Member

@hjoliver hjoliver left a comment

Choose a reason for hiding this comment

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

Good, thanks @wxtim

@hjoliver hjoliver merged commit 1c5bcd7 into cylc:8.4.x Apr 10, 2025
27 checks passed
@oliver-sanders oliver-sanders modified the milestones: 8.4.x, 8.4.3 Apr 11, 2025
@wxtim wxtim deleted the fix.icp-fail branch April 11, 2025 10:22
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.

Suicide trigger prevents cycles starting
3 participants