Cylc-flow: add is_held field into the network schema

Created on 7 Aug 2019  路  6Comments  路  Source: cylc/cylc-flow

Describe exactly what you would like to see in an upcoming release
Follow on to #3230

Make the new is_held task state attribute available in the workflow schemas:

  • GraphQL
  • Protobuff

Pull requests welcome!

Most helpful comment

This used to provide a quick way to query the number of held tasks? I guess it is easy enough to filter the number of tasks with the is_held flag?

All 6 comments

Will is_held remain in the state_totals?, i.e.:

message PbStateTotals {
    int32 runahead = 1;
    int32 waiting = 2;
    int32 held = 3;
    int32 queued = 4;
    int32 expired = 5;
    int32 ready = 6;
    int32 submit_failed = 7;
    int32 submit_retrying = 8;
    int32 submitted = 9;
    int32 retrying = 10;
    int32 running = 11;
    int32 failed = 12;
    int32 succeeded = 13;
}

I think it should have it's own total... (as a task will have a state and be held)

So the change will require:

  • ws_messages.proto - Remove held from state_totals, creation of held_total field in workflow and is_held boolean field in task_proxy and family_proxy.
  • ws_data_mgr.py - Field calculation and updates to these object fields.
  • network/schema.py - Respective fields created, and query argument addition for is_held (isHeld)
  • network/resolvers.py - Adjust for new filter arg.

This change should go in after #3202 , if #3230 breaks it then it should be included in #3202 (or before and I'll have to sort the conflicts...).
Both this respective PR and #3202 will require and accompanying PR to the UI Server (to fix the resolvers)..

(Agreed, presumably will not remain in the state totals).

Should be removed from state totals I think.

This used to provide a quick way to query the number of held tasks? I guess it is easy enough to filter the number of tasks with the is_held flag?

This used to provide a quick way to query the number of _held_ tasks? I guess it is easy enough to filter the number of tasks with the is_held flag?

I think we may still need an isHeldTotal in the workflow summary I suppose.. As it would be useful on the workflows gscan page, and that data/query may have a different privilege/authorisation level.

Yes I think we do need that. Maybe for the Dashboard page as well (the design currently only has number of held workflows, under Workflows. But we might want a Tasks column too, to give a collective summary of all the tasks being managed by the user.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oliver-sanders picture oliver-sanders  路  3Comments

hjoliver picture hjoliver  路  5Comments

oliver-sanders picture oliver-sanders  路  5Comments

kinow picture kinow  路  3Comments

hjoliver picture hjoliver  路  5Comments