Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. # Trees are made of Serial, Parallel, and Exec nodes, nested arbitrarily.
  2. import conducto as do
  3.  
  4. def simple() -> do.Serial:
  5. output = do.Serial()
  6. output["First"] = do.Parallel()
  7. output["First/RunsInParallel1"] = do.Exec("echo 'I run first'")
  8. output["First/RunsInParallel2"] = do.Exec("echo 'I also run first'")
  9. output["Next"] = do.Exec("echo 'I run last.'")
  10. return output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement