hussein-awala commented on code in PR #29094:
URL: https://github.com/apache/airflow/pull/29094#discussion_r1166552298
##########
airflow/jobs/scheduler_job_runner.py:
##########
@@ -304,26 +323,24 @@ def _executable_task_instances_to_queued(self, max_tis:
int, session: Session) -
starved_pools = {pool_name for pool_name, stats in pools.items() if
stats["open"] <= 0}
# dag_id to # of running tasks and (dag_id, task_id) to # of running
tasks.
- dag_active_tasks_map: DefaultDict[str, int]
- task_concurrency_map: DefaultDict[tuple[str, str], int]
- dag_active_tasks_map, task_concurrency_map =
self.__get_concurrency_maps(
- states=list(EXECUTION_STATES), session=session
- )
+ concurrency_map =
self.__get_concurrency_maps(states=list(EXECUTION_STATES), session=session)
Review Comment:
I changed the argument type from `list[TaskInstanceState]` to
`Iterable[TaskInstanceState]` and removed the conversion
--
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]