This is an automated email from the ASF dual-hosted git repository. kaxilnaik pushed a commit to branch v3-1-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 6a51f595d94f57fcdca1fb18df2e8a953c5f4034 Author: Niko Oliveira <[email protected]> AuthorDate: Sat Sep 13 20:17:37 2025 -0700 Removed unused config: dag_stale_not_seen_duration (#55601) This config was used by the scheduler for the stale dag removal process. That process was removed from the scheduler in #47304 but these traces of the config were left behind. (cherry picked from commit f3b4dc6cf1970c98e0318879711df1cb0bbeb8cf) --- airflow-core/docs/faq.rst | 1 - airflow-core/src/airflow/config_templates/config.yml | 7 ------- airflow-core/src/airflow/jobs/scheduler_job_runner.py | 1 - 3 files changed, 9 deletions(-) diff --git a/airflow-core/docs/faq.rst b/airflow-core/docs/faq.rst index 00673a8e5f7..f57f2ddebf2 100644 --- a/airflow-core/docs/faq.rst +++ b/airflow-core/docs/faq.rst @@ -227,7 +227,6 @@ There are several reasons why Dags might disappear from the UI. Common causes in * :ref:`config:dag_processor__file_parsing_sort_mode` - Ensure sorting method matches your sync strategy * :ref:`config:dag_processor__parsing_processes` - Number of parallel parsers * :ref:`config:scheduler__parsing_cleanup_interval` - Controls stale Dag cleanup frequency - * :ref:`config:scheduler__dag_stale_not_seen_duration` - Time threshold for marking Dags as stale * **File synchronization problems** - Common with git-sync setups: diff --git a/airflow-core/src/airflow/config_templates/config.yml b/airflow-core/src/airflow/config_templates/config.yml index 5da744041a2..b3bc911e1d8 100644 --- a/airflow-core/src/airflow/config_templates/config.yml +++ b/airflow-core/src/airflow/config_templates/config.yml @@ -2158,13 +2158,6 @@ scheduler: type: integer default: "20" see_also: ":ref:`scheduler:ha:tunables`" - dag_stale_not_seen_duration: - description: | - Time in seconds after which dags, which were not updated by Dag Processor are deactivated. - version_added: 2.4.0 - type: integer - example: ~ - default: "600" use_job_schedule: description: | Turn off scheduler use of cron intervals by setting this to ``False``. diff --git a/airflow-core/src/airflow/jobs/scheduler_job_runner.py b/airflow-core/src/airflow/jobs/scheduler_job_runner.py index 5d918704736..7dd38519648 100644 --- a/airflow-core/src/airflow/jobs/scheduler_job_runner.py +++ b/airflow-core/src/airflow/jobs/scheduler_job_runner.py @@ -198,7 +198,6 @@ class SchedulerJobRunner(BaseJobRunner, LoggingMixin): self._task_instance_heartbeat_timeout_secs = conf.getint( "scheduler", "task_instance_heartbeat_timeout" ) - self._dag_stale_not_seen_duration = conf.getint("scheduler", "dag_stale_not_seen_duration") self._task_queued_timeout = conf.getfloat("scheduler", "task_queued_timeout") self._enable_tracemalloc = conf.getboolean("scheduler", "enable_tracemalloc")
