MatthewStrickland commented on issue #37042:
URL: https://github.com/apache/airflow/issues/37042#issuecomment-1914203949

   > Could you use a [cluster DAG 
policy](https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/cluster-policies.html#)?
 You can add the desired DAGs into a list object, and do something like...
   > 
   > ```
   > def dag_policy(dag: DAG):
   >     """Configure max_active_runs for group of DAGs."""
   >     if dag.dag_id in ["dag_a", "dag_b"] :
   >         dag.max_active_runs = 1
   > ```
   
   It's the first time I've noticed this feature so thanks for pointing it out 
for me. My reading of it though is that it's just a way to define common config 
for all dags?
   My ask is to have a way that dag_a cannot run at the same time as dag_b, 
unless I'm misreading this feature and this can accomplish that.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to