ephraimbuddy commented on code in PR #74793:
URL: https://github.com/apache/airflow/pull/74793#discussion_r4423363159
##########
airflow-core/src/airflow/dag_processing/manager.py:
##########
@@ -448,6 +574,8 @@ def load_dag_bundles(self) -> None:
def _scan_stale_dags(self):
"""Scan and deactivate DAGs which are no longer present in files."""
+ if self.api_client is not None:
Review Comment:
Done. Timeouts and no-result exits now publish an import error through
`_queue_failed_parse_result.`
One difference: the server's cutoff only covers archive members, so for a
plain file the import error would deactivate its Dags at once. The manager
holds the report back until the file's last publication is older than
`stale_dag_threshold`, which keeps DB mode's grace period. A parse during which
an Execution API request failed is handled the same way.
--
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]