https://dagster.io/ logo
#dagster-support
Title
# dagster-support
c

clay

02/03/2023, 10:34 PM
Do any of the example projects show how to make a graph out of ops and then a job out of the graph?
j

jamie

02/03/2023, 10:47 PM
c

clay

02/03/2023, 10:51 PM
I've read through them. I was struggling to figure out where graph-based jobs should be defined when using the module structure. Can you reference these inside of variables/lists created with
load_assets_from_package_module()
?
j

jamie

02/06/2023, 4:30 PM
load_assets_from_package_module
will only find the
@assets
defined in a module. You can define your ops/jobs wherever you want as long as it’s importable to wherever you define your definitions, you could have a single
jobs.py
file or a
jobs
folder with subfiles/folders if you’ll have a lot of jobs. This example defines them all alongside the defintions object because there’s only one job https://github.com/dagster-io/dagster/blob/master/examples/with_pyspark/with_pyspark/definitions.py
c

clay

02/06/2023, 4:30 PM
Thank you!
2 Views