Owen-CH-Leung commented on code in PR #39090:
URL: https://github.com/apache/airflow/pull/39090#discussion_r1589923397
##########
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:
Thanks @Taragolis . I think directly replacing it in place will result in
failures from other tests so I've raised a warning instead. I believe
completely deprecating the `concurrency` param requires a larger PR to look at
all the tests
--
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]