Taragolis commented on code in PR #39090:
URL: https://github.com/apache/airflow/pull/39090#discussion_r1589968745
##########
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 just analyse [latest warnings
summary](https://github.com/apache/airflow/files/15209519/test-summarized-warnings.9.zip)
and found that there are only two tests at all where concurrency uses in
`dag_maker`
```console
tests/jobs/test_scheduler_job.py::TestSchedulerJob::test_infinite_pool
tests/jobs/test_scheduler_job.py::TestSchedulerJob::test_not_enough_pool_slots
```
--
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]