ferruzzi commented on code in PR #63491:
URL: https://github.com/apache/airflow/pull/63491#discussion_r3344782759
##########
airflow-core/src/airflow/executors/base_executor.py:
##########
@@ -216,8 +245,9 @@ def __init__(self, parallelism: int = PARALLELISM,
team_name: str | None = None)
self.parallelism: int = parallelism
self.team_name: str | None = team_name
- self.queued_tasks: dict[TaskInstanceKey, workloads.ExecuteTask] = {}
- self.queued_callbacks: dict[CallbackKey, workloads.ExecuteCallback] =
{}
+ # TODO(airflow 4.0): flatten to dict[WorkloadKey, QueueableWorkload]
once the deprecated
+ # queued_tasks / queued_callbacks compat properties are removed.
+ self.executor_queues: dict[str, dict[WorkloadKey, QueueableWorkload]]
= defaultdict(dict)
Review Comment:
Nitpick: Pretty sure this dict can now be `dict[WorkloadType,
dict[WorkloadKey, QueueableWorkload]] = defaultdict(dict)`
--
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]