Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resize | 44eb3769-c446-45d1-b29b-7365bf60f2a2 | ["0a2bddb1-1c97-4582-8624-532e42d21408", "7eb4737d-6aa3-4ece-80eb-75adbbe6e7ce"]
- migrate | 0a2bddb1-1c97-4582-8624-532e42d21408 | ["2e1cc462-b3fa-4543-9d6e-036fc093c121"]
- sleep | 2e1cc462-b3fa-4543-9d6e-036fc093c121 | ["c42acfd6-2a98-4f41-8489-1fc8c1e8d62c", "c0cdd22b-8ef2-42dc-8aec-9e7e99e87794"]
- nop | c0cdd22b-8ef2-42dc-8aec-9e7e99e87794 | []
- nop | c42acfd6-2a98-4f41-8489-1fc8c1e8d62c | []
- migrate | 7eb4737d-6aa3-4ece-80eb-75adbbe6e7ce | ["2e1cc462-b3fa-4543-9d6e-036fc093c121"]
- for chunk_idx, actions_chunk in enumerate(action_chunks):
- for action in actions_chunk:
- action_graph.add_node(action)
- # all other actions
- parent_nodes = []
- if not idx and not chunk_idx:
- parent_nodes = []
- elif leaf_groups:
- parent_nodes = leaf_groups[0]
- for parent_node in parent_nodes:
- action_graph.add_edge(parent_node, action)
- action.parents.append(parent_node.uuid)
- if leaf_groups:
- leaf_groups.pop(0)
- leaf_groups.extend([[action] for action in actions_chunk])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement