A Script brick tells the Control Interpreter how to execute the other bricks in the control script.
A Script brick consists of a list of other bricks to run. Script bricks may list other Script bricks, allowing you to build more complex Script bricks from simpler ones.
Most control scripts contain more than one Script brick. For example, a control script could have one Script brick that runs an entire data update sequence, and another that simply stops and restarts the Dgraph.
Setting |
Description |
---|---|
stdout |
Where to redirect stdout for the brick. By default, stdout is sent to the screen. Specifying a value for stdout overrides the stdout_base setting. |
stderr |
Where to redirect stderr for the brick. By default, stderr is sent to the screen. Specifying a value for stderr overrides the stderr_base setting. |
run : Script archive01 archive02 fetch01 fetch02 dgidx01 dgidx02 collect02 #copies dgidx output to a single machine agidx dgraph01.start dgraph02.start agraph.start