Skip to content

How to write a step launcher #3201

Answered by sryza
sryza asked this question in Q&A
Nov 6, 2020 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

Step launchers allow users to control how specific steps within a run are launched. For example, the emr_pyspark_step_launcher has the op run inside an EMR cluster, instead of the process that the executor would normally execute it inside.

Writing a step launcher is not the only way to run code remotely. You can also have the body of an op invoke a remote execution. https://docs.dagster.io/_apidocs/libraries/dagster-databricks#dagster_databricks.create_databricks_job_op is an example of this approach. The advantage of using a step launcher is that it allows your op to express pure business logic, which makes it much easier to test.

Writing a step launcher isn't simple, because running cod…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@sharangSharma54
Comment options

@sryza
Comment options

Answer selected by sryza
Comment options

You must be logged in to vote
2 replies
@sryza
Comment options

@a-meledin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants