Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Mar 8, 2024

Since #30255 scheduler heartrate has not been properly calculated. We missed the check for SchedulerJob type and setting heartrate value from scheduler_health_check_threshold.

This PR fixes it.

Fix: #37971


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk potiuk force-pushed the fix-heartrate-for-scheduler branch from 39ecd33 to 4ef00bd Compare March 8, 2024 11:51
@potiuk
Copy link
Member Author

potiuk commented Mar 8, 2024

I actually tracked it down wrongly - it's there since 2.6.0 and #30255

Sinc apache#30255 scheduler heartrate has not been properly calculated.
We missed the check for SchedulerJob type and setting heartrate
value from `scheduler_health_check_threshold`.

This PR fixes it.

Fix: apache#37971
@potiuk potiuk force-pushed the fix-heartrate-for-scheduler branch from 4ef00bd to 4af9e20 Compare March 8, 2024 12:19
@potiuk potiuk merged commit 01e40ab into apache:main Mar 8, 2024
@potiuk potiuk deleted the fix-heartrate-for-scheduler branch March 8, 2024 13:31
@eladkal eladkal added this to the Airflow 2.9.0 milestone Mar 8, 2024
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Mar 8, 2024
@potiuk potiuk modified the milestones: Airflow 2.9.0, Airflow 2.8.4 Mar 18, 2024
jedcunningham pushed a commit that referenced this pull request Mar 18, 2024
Sinc #30255 scheduler heartrate has not been properly calculated.
We missed the check for SchedulerJob type and setting heartrate
value from `scheduler_health_check_threshold`.

This PR fixes it.

Fix: #37971
(cherry picked from commit 01e40ab)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Scheduler including HA (high availability) scheduler type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

4 participants