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

Add "preparing" to list of filterable states. #4782

Closed
wxtim opened this issue Mar 29, 2022 · 4 comments
Closed

Add "preparing" to list of filterable states. #4782

wxtim opened this issue Mar 29, 2022 · 4 comments
Assignees
Labels
could be better Not exactly a bug, but not ideal.
Milestone

Comments

@wxtim
Copy link
Member

wxtim commented Mar 29, 2022

Describe exactly what you would like to see in an upcoming release

In the "Tasks" view use the detection of Cylc version to change the list of filterable task state tick boxes.

If the workflow is Cylc 8:

  • The user should be able to filter by state="preparing"
  • The user should not be able to filter by states not in this list

Additionally at Cylc 7 #2938 waiting was unticked by default. We should examine #2938, to see if we can enable the tickbox by default for Cylc 8 flows.

Additional context

Screen Shot 2022-03-29 at 11 12 34

The code change should be near the assignment of task_statuses at line 320 of review.py. You may also wish to add a clone of TASK_STATUSES_ORDERED in task_state to hold Cylc 8 task states.

Testing

This is a legacy back compatibility piece of functionality, and should be tested manually.

Pull requests welcome!

@wxtim wxtim added the could be better Not exactly a bug, but not ideal. label Mar 29, 2022
@wxtim wxtim added this to the cylc-7.8.x milestone Mar 29, 2022
@wxtim wxtim self-assigned this Mar 29, 2022
@wxtim wxtim changed the title Don't display tickboxes for filtering by task states which don't exist at Cylc8 Add "preparing" to list of filterable states. Mar 30, 2022
@wxtim wxtim removed their assignment Apr 7, 2022
@dpmatthews
Copy link
Contributor

Additionally at Cylc 7 #2938 waiting was unticked by default. We should examine #2938, to see if we can enable the tickbox by default for Cylc 8 flows.

With "waiting" enabled you end up with lots of tasks listed with no associated jobs which is pointless.
If we discard any waiting tasks with no jobs I think it should be fine to enable this by default.

@wxtim wxtim self-assigned this May 18, 2022
@wxtim
Copy link
Member Author

wxtim commented May 24, 2022

If we discard any waiting tasks with no jobs I think it should be fine to enable this by default.

I can't see how to do this. I don't think it's possible in a straightforward way because of the way the filtering is setup (separately for task and job states) - @dpmatthews & @hjoliver - Do we want "waiting" defaulting to on or off at Cylc 8?

Will we have as many waiting tasks at Cylc8?

@hjoliver
Copy link
Member

Presumably cylc review can only show waiting tasks that exist in the DB, which corresponds to waiting tasks in the scheduler task pool - not the scheduler datastore (and therefore, unaffected by n-window size).

Cylc 7 had loads of those, due to pre-spawning of waiting tasks.

Cylc 8 only has "active waiting" tasks: i.e., with partially satisfied task prerequisites, or fully satisfied but waiting on a clock trigger or other xtrigger.

So I would think it's OK not to discard those or filter them out by default in cylc review.

@wxtim
Copy link
Member Author

wxtim commented Jul 4, 2022

I think #4897 actually closes this issue.

@wxtim wxtim closed this as completed Jul 4, 2022
@hjoliver hjoliver modified the milestones: cylc-7.8.x, 7.8.12 Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
could be better Not exactly a bug, but not ideal.
Projects
None yet
Development

No branches or pull requests

3 participants