Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. def dynamic_job_tree() -> do.Parallel:
  2. """
  3. Call a function and assign the returned node into your tree and it will be there at startup.
  4. Call do.asnode() to call the function at runtime and import the returned node into the running tree.
  5.  
  6. Great for complex tasks where even generating the job tree is expensive.
  7. """
  8. output = do.Parallel()
  9. output["Populated at start" ] = simple()
  10. output["Populated during execution"] = do.asnode(simple)
  11. return output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement