Reuse the same block multiple times within a single pipeline.
fire_pipeline
with the following 3 blocks:
transform_data
contains reusable code. Instead of creating a brand
new block in this pipeline that does the exact same thing as transform_data
, you can replicate
the transform_data
block.
Once you replicate the transform_data
block, you can configure it however you want. For example,
you can name the replica block transform_source_b
or
set the replica block’s upstream block to load_source_b
.
The fire_pipeline
will now look like this:
transform_source_b
block will get its code from the transform_data
block.
Term | Definition |
---|---|
Replicated block | An original block in a pipeline that has 1 or more replica blocks. |
Replica block | A block in a pipeline that uses the code from another block in the same pipeline. |
Replicate block
.
This will add a new block to your current pipeline. You can optionally name the new replica block.
When the pipeline runs, it’ll create a block run for each block in the pipeline. When a block run
is created for a replica block, the block run will reference that block using the following
block UUID convention: [replica_block_uuid]:[replicated_block_uuid]
.
For example:
transform_data
.transform_data
block is replicated.transform_source_b
.
It’s replicated from the block transform_data
.block_uuid
attribute for the replica block transform_source_b
will appear in
dashboards and logs as transform_source_b:transform_data
.