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

db: only write task event timers when changed #3948

Merged
merged 2 commits into from
Dec 2, 2020

Conversation

oliver-sanders
Copy link
Member

@oliver-sanders oliver-sanders commented Nov 17, 2020

Follow-on from #3597
Close #3818

Only write task event timers to the database when they have changed.

Currently the entire DB table is rebuilt twice per main loop even when the scheduler is inactive or stalled.

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).
  • Already covered by existing tests.
  • Appropriate change log entry included.
  • No documentation update required.
  • No dependency changes.

@oliver-sanders oliver-sanders self-assigned this Nov 17, 2020
@oliver-sanders oliver-sanders added this to the cylc-7.8.x milestone Nov 17, 2020
@hjoliver
Copy link
Member

Failing one test on CI:

/tests/restart/20-event-retry.t (Wstat: 0 Tests: 7 Failed: 3)

  Failed tests:  3, 5, 7

@hjoliver
Copy link
Member

Does this affect master too?

@oliver-sanders
Copy link
Member Author

oliver-sanders commented Nov 19, 2020

Yep - https://github.com/cylc/cylc-flow/pull/3596/files

Will port once this is in, having trouble getting it through Travis ATM.

@oliver-sanders
Copy link
Member Author

That should do it.

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.

LGTM 👍

@hjoliver hjoliver merged commit ec0725b into cylc:7.8.x Dec 2, 2020
@oliver-sanders oliver-sanders deleted the task_event_timers.7.8.x branch December 3, 2020 09:33
oliver-sanders added a commit to oliver-sanders/cylc-flow that referenced this pull request Dec 8, 2020
oliver-sanders added a commit to oliver-sanders/cylc-flow that referenced this pull request Dec 8, 2020
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.

3 participants