Skip to content

Launch pipeline execution in Dagit programmatically #3048

Answered by alangenfeld
ankxyz asked this question in Q&A
Discussion options

You must be logged in to vote

Can I simulate click on Launch Execution in Dagit UI programmatically?

There is the dagster pipeline launch cli command. At this time there is not a convenient python API for launch.

Moreover, it would be great to execute pipelines using Python API: run pipeline and wait until it finish.

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 default execute_pipeline uses an ephemeral instance under the assumption that most of its uses are in tests that shouldn't be logged to the instance.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ankxyz
Comment options

Answer selected by ankxyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3048 on October 07, 2020 17:03.