kaxil commented on a change in pull request #6342: [AIRFLOW-5662] fix incorrect
naming and batch db call for scheduler metrics
URL: https://github.com/apache/airflow/pull/6342#discussion_r391743167
##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -1097,8 +1098,8 @@ def __get_concurrency_maps(self, states, session=None):
.filter(TI.state.in_(states))
.group_by(TI.task_id, TI.dag_id)
).all()
- dag_map = defaultdict(int)
- task_map = defaultdict(int)
+ dag_map = defaultdict(int) # type: Dict[str, int]
+ task_map = defaultdict(int) # type: Dict[Tuple[str, str], int]
Review comment:
```suggestion
dag_map: Dict[str, int] = defaultdict(int)
task_map: Dict[Tuple[str, str], int] = defaultdict(int)
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services