FanOut#

class scikitplot.agent.FanOut(name, branches, mode='ordered', max_workers=None, into=None, update=None, max_visits=None, on_exhausted=None)[source]#

A node that calls several tools, then joins their results.

Parameters:
namestr

Node name, unique in the graph; also the tool name of a concurrent fan-out, so it must not be the name of any tool in the graph.

branchessequence of Branch

At least two, with unique names.

mode{“ordered”, “concurrent”}, default=”ordered”

One audited step per branch in declared order, or one step running every branch at the same time.

max_workersint or None, default=None

Threads for a concurrent fan-out; None is one per branch.

into, update, max_visits, on_exhausted

As for Task; the result is {branch: result} of the branches that executed, in declared order.

Raises:
WorkflowError

If a field is malformed.

Parameters:
branches: tuple[Branch, ...][source]#
into: str | None = None#
max_visits: int | None = None#
max_workers: int | None = None#
mode: str = 'ordered'#
name: str[source]#
on_exhausted: str | None = None#
update: Callable[[...], Mapping[str, Any]] | None = None#