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

workflow-state: query latest task instance #5144

Closed
wants to merge 1 commit into from

Conversation

hjoliver
Copy link
Member

@hjoliver hjoliver commented Sep 19, 2022

When a task gets updated in the task states table, update the flow numbers too.

Close #5143

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.
  • Tests are included (or explain why tests are not needed).
  • CHANGES.md 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, PRs raised to both master and the relevant maintenance branch.

@hjoliver hjoliver added the bug Something is wrong :( label Sep 19, 2022
@hjoliver hjoliver added this to the cylc-8.0.3 milestone Sep 19, 2022
@hjoliver hjoliver self-assigned this Sep 19, 2022
@hjoliver hjoliver force-pushed the task-states-flow-nums branch from 5a1dfbd to e37bc89 Compare September 19, 2022 04:51
@hjoliver hjoliver changed the title Update flow numbers in task_states table. workflow-state: query latest task instance Sep 19, 2022
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.

LGTM. One TODO to resolve / punt.

Needs rebasing onto 8.0.x. 8.1.x 8.2.x

Comment on lines +158 to +159
# TODO - NEED TO ADD submit_num TO THE task_outputs TABLE SO WE CAN
# TELL WHICH IS THE LATEST FLOW-INSTANCE (like state_met above).
Copy link
Member

Choose a reason for hiding this comment

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

TODO: here or later?

Comment on lines +127 to +130
if self.args['status']:
return self.checker.task_state_met(
self.args['task'], self.args['cycle'], self.args['status'])
elif self.args['message']:
Copy link
Member

Choose a reason for hiding this comment

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

We should consider erroring if both status and message are defined, otherwise it may look as though this is supported. Or alternatively do both, kinda valid to poll for succeeded plus a custom output e.g. "succeeded with this outcome"?

@oliver-sanders oliver-sanders modified the milestones: cylc-8.0.3, cylc-8.0.4 Oct 12, 2022
@hjoliver hjoliver force-pushed the task-states-flow-nums branch from e37bc89 to 63a7fa6 Compare October 13, 2022 03:41
@hjoliver hjoliver changed the base branch from master to 8.0.x October 13, 2022 03:41
@hjoliver
Copy link
Member Author

Rebased to 8.0.x

@hjoliver hjoliver marked this pull request as draft October 13, 2022 03:43
@oliver-sanders oliver-sanders modified the milestones: cylc-8.0.4, cylc-8.1.x Dec 6, 2022
@hjoliver hjoliver modified the milestones: cylc-8.1.x, cylc-8.2.0 Jun 13, 2023
@oliver-sanders oliver-sanders modified the milestones: cylc-8.2.0, cylc-8.3.0 Jul 11, 2023
@oliver-sanders oliver-sanders modified the milestones: cylc-8.3.0, cylc-8.2.1 Jul 24, 2023
@oliver-sanders
Copy link
Member

Rebased to 8.0.x

@hjoliver, can you poke this onto 8.2.x (I think 8.2.x is currently master)

@MetRonnie MetRonnie changed the base branch from 8.0.x to 8.2.x July 25, 2023 16:03
@oliver-sanders oliver-sanders modified the milestones: cylc-8.2.1, cylc-8.2.2 Aug 14, 2023
@oliver-sanders oliver-sanders modified the milestones: cylc-8.2.2, cylc-8.2.3 Oct 4, 2023
@oliver-sanders oliver-sanders modified the milestones: cylc-8.2.3, cylc-8.2.4 Nov 1, 2023
@oliver-sanders oliver-sanders removed this from the cylc-8.2.4 milestone Jan 8, 2024
@oliver-sanders oliver-sanders added this to the 8.2.5 milestone Jan 8, 2024
@oliver-sanders oliver-sanders modified the milestones: cylc-8.2.5, some-day Mar 25, 2024
@hjoliver
Copy link
Member Author

Closing this as superseded by #5809

@hjoliver hjoliver closed this Apr 19, 2024
@oliver-sanders oliver-sanders removed this from the some-day milestone May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :( superseded
Projects
None yet
Development

Successfully merging this pull request may close these issues.

workflow-state: check latest instance for status
2 participants