Skip to content

Commit

Permalink
data store: don't update outputs incrementally
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed Oct 11, 2024
1 parent b2accfb commit 591632f
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions cylc/flow/data_store_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2428,11 +2428,25 @@ def delta_task_output(
tp_delta = self.updated[TASK_PROXIES].setdefault(
tp_id, PbTaskProxy(id=tp_id))
tp_delta.stamp = f'{tp_id}@{update_time}'
output = tp_delta.outputs[label]
output.label = label
output.message = message
output.satisfied = outputs.is_message_complete(message)
output.time = update_time

for _label in tproxy.outputs:
output = tp_delta.outputs[_label]

# set the new output
if _label == label:
output.label = label
output.message = message
output.satisfied = outputs.is_message_complete(message)

# ensure all outputs are included in the delta
else:
_output = tproxy.outputs[_label]
output.label = _output.label
output.message = _output.message
output.satisfied = _output.satisfied

output.time = update_time

self.updates_pending = True

def delta_task_outputs(self, itask: TaskProxy) -> None:
Expand Down

0 comments on commit 591632f

Please sign in to comment.