Use pipeline-specific variables scoped to an individual block.
0.9.23
or greater.kwargs
parameter in your block function.
The variables are stored in a block’s configuration, which is accessible through
kwargs['configuration']
.
data_loader
transformer
data_exporter
custom
sensor
+ New
button, enter
the variable’s name and value in the input fields and then press Enter
or Return
on
your keyboard while still focused on one of the input fields (this step can be repeated
multiple times).
This will add the variable(s), but not save it. You need to also click the blue
Update block settings
button below the “Block variables” section in order to save
and persist these new variables. You can also edit/delete existing block variables by
hovering over a variable and clicking the edit/trash icons. You can press the Escape
key to exit a variable’s edit mode.
metadata.yaml
file
(located in the pipelines/[pipeline_uuid]
directory) and adding them to a block’s
configuration
property.