jason810496 opened a new pull request, #59161:
URL: https://github.com/apache/airflow/pull/59161
## Why
- We reference `is_watcher` field in `Triggerer.triggers` attribute for
logging `watchers`
- `watchers = len([trigger for trigger in self.triggers.values() if
trigger["is_watcher"]])`
-
https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/jobs/triggerer_job_runner.py#L880
- The `Triggerer.triggers` is annotated as `dict[int, TriggerDetails]`
-
https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/jobs/triggerer_job_runner.py#L811
- However, the `is_watcher` field is missing in `TriggerDetails` TypeDict
-
https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/jobs/triggerer_job_runner.py#L743
## What
We should add missing `is_watcher` field back to `TriggerDetails` TypedDict
--
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]