Launch pipeline execution in Dagit programmatically #3048
-
Can I simulate click on Moreover, it would be great to execute pipelines using Python API: run pipeline and wait until it finish. Conclusion:
Thank you for advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is the
https://docs.dagster.io/_apidocs/execution#dagster.execute_pipeline To make sure it's reported to the instance you have set up, set it by doing |
Beta Was this translation helpful? Give feedback.
There is the
dagster pipeline launch
cli command. At this time there is not a convenient python API for launch.https://docs.dagster.io/_apidocs/execution#dagster.execute_pipeline
To make sure it's reported to the instance you have set up, set it by doing
execute_pipeline(my_pipeline, instance=DagsterInstance.get())
. By defaultexecute_pipeline
uses an ephemeral instance under the assumption that most of its uses are in tests that shouldn't be logged to the instance.