You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to group tasks that logically go together to build reusable workflows. The challenge is what to return in the case you may want to return something or pass it to a "callback" (see #3). What I propose is to have a MultiResult class that does something like:
class MultiResult(object):
def __init__(self, *results):
self.results = results
self.changed = any([r.changed for r in result])
You'd basically rewrite the grouping above like this:
Brigade supports grouping tasks. For instance, you can do something like:
The idea is to group tasks that logically go together to build reusable workflows. The challenge is what to return in the case you may want to return something or pass it to a "callback" (see #3). What I propose is to have a
MultiResult
class that does something like:You'd basically rewrite the grouping above like this:
The text was updated successfully, but these errors were encountered: