https://dagster.io/ logo
n

Noah K

12/12/2020, 11:19 AM
Copy code
@resource(config_schema={...})
def asset(ctx):
    return ctx.resource_config
a

Ayrton Bourn

12/12/2020, 11:24 AM
Thank you that's really helpful 🙂 Is there a way to programmatically repeat pipelines over slightly different resources?
n

Noah K

12/12/2020, 11:26 AM
Sure, it's all just python code
You can get as meta as you want
👍 1
a

Ayrton Bourn

12/12/2020, 11:29 AM
Thanks, I wanted to double check as previous bits I thought could just be Python code couldn't
n

Noah K

12/12/2020, 11:37 AM
The function you pass to
@pipeline
is a DSL for creating a pipeline def, but the way you build that function is as meta as you want, just remember that the DSL code has to result in something static.
👍 1