Created
December 3, 2024 20:05
-
-
Save cnolanminich/bf3fefe0635dc3c2af070ca3b6acd946 to your computer and use it in GitHub Desktop.
ops_no_data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dagster as dg | |
@dg.op | |
def first_op(context: dg.OpExecutionContext) -> None: | |
context.log.info("Creating op one") | |
@dg.op(ins={"start": dg.In(dg.Nothing)}) | |
def second_op(context: dg.OpExecutionContext) -> None: | |
context.log.info("Creating op two") | |
@dg.graph | |
def my_graph(): | |
second_op(start=first_op()) | |
job_with_dependency = my_graph.to_job() | |
defs = dg.Definitions( | |
jobs=[job_with_dependency] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment