Taragolis commented on code in PR #39090:
URL: https://github.com/apache/airflow/pull/39090#discussion_r1584789125


##########
tests/conftest.py:
##########
@@ -905,6 +906,12 @@ def __call__(
                 else:
                     DEFAULT_DATE = timezone.datetime(2016, 1, 1)
                     self.start_date = DEFAULT_DATE
+
+            # Handle deprecated argument `concurrency` for DAG class
+            # If "concurrency" is defined, replace it with "max_active_tasks"
+            if concurrency:
+                self.kwargs["max_active_tasks"] = concurrency
+                self.kwargs.pop("concurrency")

Review Comment:
   I would rather replace it in place rather than hide it.
   
   We could raise an error in case if provide deprecated parameters into this 
factory (this could be done by the separate PR)



-- 
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