Skip to content

Commit

Permalink
added run_mode as a field to be used in the gui
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed May 17, 2024
1 parent d7ee653 commit 8de3073
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 43 deletions.
1 change: 1 addition & 0 deletions cylc/flow/data_messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ message PbTaskProxy {
optional bool flow_wait = 27;
optional PbRuntime runtime = 28;
optional int32 graph_depth = 29;
optional string run_mode = 30;
}

message PbFamily {
Expand Down
86 changes: 43 additions & 43 deletions cylc/flow/data_messages_pb2.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions cylc/flow/data_store_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,9 @@ def generate_ghost_task(
depth=task_def.depth,
graph_depth=n_depth,
name=name,
run_mode=itask.tdef.run_mode,
)

self.all_n_window_nodes.add(tp_id)
self.n_window_depths.setdefault(n_depth, set()).add(tp_id)

Expand Down
3 changes: 3 additions & 0 deletions cylc/flow/network/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,9 @@ class Meta:
is_runahead = Boolean(
description='True if this task is held back by the "runahead limit".',
)
run_mode = String(
description='Task run mode.'
)
flow_nums = String(
description='The flows this task instance belongs to.',
)
Expand Down

0 comments on commit 8de3073

Please sign in to comment.