Skip to content

[馃毃鈿狅笍AI Slop鈿狅笍馃毃] If you are checking its profile, yes, this is a vibe coder, you should NOT trust its pull requests - #7372

Closed
kimjune01 wants to merge 1 commit into
louislam:masterfrom
kimjune01:fix/push-monitor-retry-reset
Closed

kimjune01 wants to merge 1 commit into
louislam:masterfrom
kimjune01:fix/push-monitor-retry-reset

Conversation

@kimjune01

Copy link
Copy Markdown

Summary

Push monitors with retry logic were not resetting their retry counter after receiving an UP heartbeat. When the monitor subsequently timed out, the retry counter continued from the previous value instead of starting fresh from 0.

  • Resets retries = 0 in the catch block when transitioning from UP to error state on push monitors
  • Accounts for upside-down mode
  • Follows existing retry logic patterns in the codebase

Test plan

  • Configure a push monitor with retries > 1
  • Send an UP heartbeat, then let it time out
  • Verify retry counter starts at 1 (not carried over from previous cycle)
  • CI passes

Fixes #6586

When a push monitor receives an UP heartbeat, retries are correctly
reset to 0. However, when the monitor subsequently times out (no
heartbeat received), the retry counter was not being reset for the
UP鈫扗OWN transition. Instead, it continued from the previous retry
count, causing the retry counter to increment incorrectly even after
successful heartbeats.

This fix checks if a push monitor is transitioning from UP to DOWN
and resets the retry counter before applying retry logic.

Fixes louislam#6586
@github-actions

github-actions Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

Hello and thanks for lending a paw to Uptime Kuma! 馃惢馃憢
As this is your first contribution, please be sure to check out our Pull Request guidelines.
In particular: - Mark your PR as Draft while you鈥檙e still making changes - Mark it as Ready for review once it鈥檚 fully ready
If you have any design or process questions, feel free to ask them right here in this pull request - unclear documentation is a bug too.

@github-actions

github-actions Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

Hello! This pull request does not follow the repository's PR template and is being closed automatically.

@github-actions github-actions Bot closed this May 9, 2026
@louislam louislam changed the title fix: reset push monitor retry counter after UP heartbeat [馃毃鈿狅笍AI Slop鈿狅笍馃毃] If you are checking its profile, yes, this is a vibe coder, you should NOT trust its pull requests May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Push monitor retries not reset after a heartbeat is received

2 participants