Skip to content
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

reload: preserve retry xtriggers on reload #5040

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

oliver-sanders
Copy link
Member

@oliver-sanders oliver-sanders commented Aug 3, 2022

  • Closes reload: xtriggers should be preserved by reloads #4866
  • Reload causes new instances of each task to be created.
  • The attributes of the old instances are copied onto the new ones.
  • Retry xtriggers were not copied so were lost.
  • This means that all retry pending tasks would run immediately on reload.

Requirements 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.
  • Appropriate tests are included (unit and/or functional).
  • Appropriate change log entry included.
  • No documentation update required.

@oliver-sanders oliver-sanders added the bug Something is wrong :( label Aug 3, 2022
@oliver-sanders oliver-sanders added this to the cylc-8.0.1 milestone Aug 3, 2022
@oliver-sanders oliver-sanders self-assigned this Aug 3, 2022
@oliver-sanders oliver-sanders changed the title reload: preserve xtriggers on reload reload: preserve retrty xtriggers on reload Aug 3, 2022
* Closes cylc#4866
* Reload causes new instances of each task to be created.
* The attributes of the old instances are copied onto the new ones.
* Xtriggers were not copied so were lost.
* This means that all xtriggers were effectively deleted on reload.
@MetRonnie MetRonnie changed the title reload: preserve retrty xtriggers on reload reload: preserve retry xtriggers on reload Aug 3, 2022
Copy link
Member

@MetRonnie MetRonnie left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +37 to +39
# should be long enough for the reload to complete
# (annoyingly we can't make this event driven)
execution retry delays = PT1M
Copy link
Member

Choose a reason for hiding this comment

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

Would it be worth moving this test into tests/flakyfunctional and possibly cutting down this delay, in order that it doesn't hog time in the tests/functional runs on GH Actions?

Copy link
Member Author

Choose a reason for hiding this comment

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

No evidence that it's flaky, yet, so no need to bump it in there.

(FYI: flakyfunction is kinda pointless, not all flakyfunctional tests are flaky and not all functional tests aren't, would like to get rid of this one day...).

Copy link
Member

Choose a reason for hiding this comment

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

I know, just conscious of the fact we are approaching the timeout limit on GH Actions. May have to either increase the limit or add an extra chunk soon

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 catch 👍

@oliver-sanders oliver-sanders merged commit 6fa43c9 into cylc:master Aug 4, 2022
@oliver-sanders oliver-sanders modified the milestones: cylc-8.0.1, cylc-8.1.0 Aug 4, 2022
MetRonnie pushed a commit that referenced this pull request Aug 8, 2022
* 8.0.x version of #5040
* Closes #4866
* Reload causes new instances of each task to be created.
* The attributes of the old instances are copied onto the new ones.
* Xtriggers were not copied so were lost.
* This means that all xtriggers were effectively deleted on reload.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reload: xtriggers should be preserved by reloads
3 participants