Skip to content

Commit

Permalink
minor: 补充注释
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshuaikang committed Jan 28, 2024
1 parent a35ccdf commit 819c854
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/bamboo-pipeline/pipeline/contrib/rollback/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ class AnyRollbackHandler(BaseRollbackHandler):

def find_paths_including_target(self, node_map, start, end, path=[]):
"""
在node_map 中找到包含目标节点的路径
在node_map 中找到包含目标节点的路径,
回滚路径是:
开始节点-1-2-3-4-5-6, 集合可能有多个
该函数的作用是找到所有能从开始节点触达6的路径集合,return [[1,2,3,4,5,6]]
"""
path = path + [start]
if start == end:
Expand Down

0 comments on commit 819c854

Please sign in to comment.