Binh Pham
08/19/2022, 5:05 PMgraph
level?
I have ops
that have a shared config. I'm using make_value_resources
to define this config.
My ultimate goal is to have one reusable graph template, produce different graphs base on my resource configs, and calling all those graphs in a job
.
Is this possible or is there a better way to approach?chris
08/19/2022, 5:45 PMdef graph_template(graph_name: str):
@op(required_resource_keys={f"{graph_name}_config"})
def the_op(context):
...
@graph
def the_graph():
the_op()
return the_graph
chris
08/19/2022, 5:47 PM