Skip to content

Scheduler uses [scheduler]job_heartbeat_sec property for heartbeats instead of [scheduler]scheduler_heartbeat_sec #37971

@kosteev

Description

@kosteev

Apache Airflow version

Other Airflow 2 version (please specify below)

If "Other Airflow 2 version" selected, which one?

2.6.3

What happened?

Scheduler uses [scheduler]job_heartbeat_sec property for heartbeats instead of [scheduler]scheduler_heartbeat_sec.
In Airflow 2.5.3 [scheduler]scheduler_heartbeat_sec is used correctly.

The bug was introduced after refactoring of scheduler_job -> scheduler_job_runner.
This field is never used in the code:

heartrate: int = conf.getint("scheduler", "SCHEDULER_HEARTBEAT_SEC")

What you think should happen instead?

No response

How to reproduce

  • run Airflow
  • set [scheduler]job_heartbeat_sec with the value greater than [scheduler]scheduler_health_check_threshold
  • see warning message in Airflow UI that scheduler is not alive

Operating System

Ubuntu

Versions of Apache Airflow Providers

No response

Deployment

Google Cloud Composer

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions