Pipeline configs
A pipeline configuration is necessary to instantiate a Pipeline. To create a
PipelineConfig
you can use the Config.configure_pipeline()
method with the following parameters:
- id: The id of this new pipeline configuration. This id is mandatory and must be a unique and valid Python variable name.
- tasks: The list of tasks configurations.
- properties: A dictionary of additional properties.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
In the previous code example, in line 14, we create a pipeline configuration with the id "my_pipeline" and made of a
single task configuration task_config
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
In this second code example, in lines 19-20, we create a pipeline configuration with the id "another_pipeline" and made
of the two task configuration created in lines 9 and 10 first_task_config
and second_task_config
.
Note
Note that the order of the task_config in the list does not matter. The two following lines are equivalent.
pipeline_cfg = Config.configure_pipeline("pipeline",
[first_task_config, second_task_config])
pipeline_cfg = Config.configure_pipeline("pipeline",
[second_task_config, first_task_config])