The DAG doesn't necessarily change shape that much, probably 95% of the time it will be the same shape, i.e. processing a large file that is chunked into a set number of pieces, but I'd like to be able to once in a while process only some of the chunks by setting a parameter. Right now my set up is that I have a separate table that stores dag run configurations in a db table in json format. My runs are never scheduled but always triggered via the TriggerDagRunOperator. So if I want to dynamically change the shape of the DAG based on a parameter I guess I need to instantiate the DAG within my own module rather than just putting my dag definition in the DAGs folder as I've been doing so far. But what is the proper way to register this DAG with Airflow? Is just instantiating it enough to have it persist into the DB and register with all of the UIs, and get propagated to the workers?
Thanks for your response, btw.
Sergei.