Do any of the example projects show how to make a ...
# ask-community
c
Do any of the example projects show how to make a graph out of ops and then a job out of the graph?
j
c
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
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
Thank you!