Josh Taylor
04/07/2021, 1:30 PM@schedule(
pipeline_name=yaml_file["name"],
name=yaml_file["name"] + "_schedule",
cron_schedule="* * * * *",
mode="prod",
execution_timezone="UTC",
)
def _foobar_schedule(date):
name = eval(yaml_file["name"])
name.get_preset("prod").run_config
but I get an error that NameError: name 'mypipelinename' is not defined
Is it possible to call a dynamic pipeline to execute?daniel
04/07/2021, 1:37 PMJosh Taylor
04/07/2021, 1:39 PM@pipeline(
name=yaml_file["name"],
so they all show up correctly in dagit and can be executed manually using the UI/CLI, just unsure how to call the dynamic pipeline by name in the schedule to be executeddaniel
04/07/2021, 1:44 PMdef _foobar_schedule(date):
from your_module import your_repository
pipeline_definition = your_repository.get_pipeline(yaml_file["name"])
return pipeline_definition.get_preset("prod").run_config
Bit strange, but I can't think of a reason it wouldn't workJosh Taylor
04/08/2021, 12:49 AM