Does Dagster have the functionality of writing a g...
# ask-community
j
Does Dagster have the functionality of writing a generic DAG so multiple get created in runtime upon a configuration file? Something like Airflow’s Dynamic DAG generation.
dagster bot answered by content 1
dagster bot responded by community 1
g
May not be super helpful as I've just started using Dagster myself, but I've written a few dynamic jobs that do different things depending on the inputs. The concept is bit different than Dynamic DAGs in Airflow though. Rather than a scheduler heartbeat generating the run definition they're actually built-out at runtime. Been a while since I've used Airflow so correct me if it doesn't still do that. https://docs.dagster.io/concepts/ops-jobs-graphs/dynamic-graphs
🌈 1
q
z
Yeah op factory is a good way to go for this. You can use the same pattern for dynamic graph generation or asset generation - it's just a function with a templated op / graph / asset which gets parameterized and returned
❤️ 1