Slackbot
04/20/2022, 2:54 PMEduardo
env.yaml
file and then reference the parameter in the tasks:
#env.yaml
some_param: some_value
# pipeline.yaml
- source: some-task.py
params:
some_param: '{{some_param}}'
- source: another-task.py
params:
some_param: '{{some_param}}'
does this work?Eduardo
some_param='some-value'
MrFiat124Spider
04/20/2022, 3:05 PMMrFiat124Spider
04/20/2022, 3:07 PMEduardo
Eduardo
# env.yaml
path_to_csv: '{{here}}/path/to/data.csv'
{{here}}
will be replaced for the directory where the env.yaml is located, this is more robust since you'll get an absolute path that you can load anywhere regardless of the current working directoryMrFiat124Spider
04/20/2022, 3:43 PMMrFiat124Spider
04/20/2022, 3:44 PMEduardo
MrFiat124Spider
04/20/2022, 3:50 PMMrFiat124Spider
04/20/2022, 3:50 PMEduardo
Eduardo
# pipeline.yaml
- source: some-task.py
params:
some_param: '{{here}}/some/path.csv'
- source: another-task.py
params:
some_param: '{{here}}/some/path.csv'
MrFiat124Spider
04/20/2022, 3:53 PMMrFiat124Spider
04/20/2022, 3:53 PMMrFiat124Spider
04/20/2022, 3:54 PMMrFiat124Spider
04/20/2022, 3:54 PMEduardo
MrFiat124Spider
04/20/2022, 3:57 PM