The pi fan-out notebook runs the workflow shape behind most many-job studies. Three Monte-Carlo jobs estimate pi from different seeds at the same time, and an aggregator combines their counts, self-checking against pi itself.
What the notebook shows¶
Fan-out. Three shard jobs share one script and differ only in a
SEEDparameter. No edges connect them, so DesignSafe’s workflow service submits all three at once.The run root. Apps like
python-s3accept one input directory, yet the fan-in needs every shard’s output. Every task of a run archives under one run root, so the aggregator’s single input directory is the run root itself, and the service submits it only after every shard has archived.Archive filters. Every job archives only its result file. On this workflow the filters cut the aggregator’s archiving from minutes to seconds.
The estimate. Six million samples land within about a thousandth of pi, so a wrong wiring cannot produce a right answer.
The Workflows guide documents the API, and the OpenSees ML workflow runs the sequential counterpart, a sweep feeding a training job.