Skip to content

Commit

Permalink
fix reversed data-store edge source-target (#5156)
Browse files Browse the repository at this point in the history
Co-authored-by: David Sutherland <davidwollow@gmail.com>
  • Loading branch information
oliver-sanders and dwsutherland authored Sep 26, 2022
1 parent c4809c5 commit b1d45ea
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions cylc/flow/data_store_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,11 +733,18 @@ def _expand_graph_window(
and e_id not in self.added[EDGES]
and edge_distance <= self.n_edge_distance
):
self.added[EDGES][e_id] = PbEdge(
id=e_id,
source=s_tokens.id,
target=t_tokens.id
)
if is_parent:
self.added[EDGES][e_id] = PbEdge(
id=e_id,
source=t_tokens.id,
target=s_tokens.id
)
else:
self.added[EDGES][e_id] = PbEdge(
id=e_id,
source=s_tokens.id,
target=t_tokens.id
)
# Add edge id to node field for resolver reference
self.updated[TASK_PROXIES].setdefault(
t_tokens.id,
Expand Down

0 comments on commit b1d45ea

Please sign in to comment.