Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def dynamic_job_tree() -> do.Parallel:
- """
- Call a function and assign the returned node into your tree and it will be there at startup.
- Call do.asnode() to call the function at runtime and import the returned node into the running tree.
- Great for complex tasks where even generating the job tree is expensive.
- """
- output = do.Parallel()
- output["Populated at start" ] = simple()
- output["Populated during execution"] = do.asnode(simple)
- return output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement