SamWheating commented on code in PR #29909:
URL: https://github.com/apache/airflow/pull/29909#discussion_r1133154264
##########
airflow/models/dag.py:
##########
@@ -545,7 +552,10 @@ def __init__(
self.template_undefined = template_undefined
self.last_loaded = timezone.utcnow()
self.safe_dag_id = dag_id.replace(".", "__dot__")
- self.max_active_runs = max_active_runs
+ if isinstance(self.timetable, ContinuousTimetable):
Review Comment:
It feels kind of messy to have this sort of conditional override in the
`__intit__`, but I'm not sure where to put this important logic 🤔
Thoughts?
--
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]