-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Use retryInterval
when a monitor is DOWN
#4476
Fix: Use retryInterval
when a monitor is DOWN
#4476
Conversation
264e381
to
33ec4a3
Compare
…sername so i can remove later
33ec4a3
to
a5d0f7a
Compare
Overall update
PS: As this is my first contribution here, I might appear overly excited (and I am). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for discussion
The rationale behind this point is mostly to discourage “dumping” PRs1 and making sure that they do not immediately gets conflicted with other changes we plan to merge soon2.
I think the relevant part of the discussion in this case took place in #4025. No PR does actively conflict with this.
Given that I think this is partially breaking, I think including this in the v2.0
release could make sense. (if other maintainers disagree, we can push this to a different release)
I have added this to said release given that this is 1 line and simple to test.
I have tested the PR and it works.
There are
console.logs
I have removed the debug statements.
Also, my commits might not be as per the guidelines.
I don't see how they might not be… 🤷🏻♂️
I'm willing to remove the console.logs and do commits as per guidelines and force push on this branch.
If you want to do so, you can, but you don't need to.
Commits are squashed in cases like #4240 but are not in cases like the translation PRs.
I've tested on json-query monitor. Should I test all other monitors as well?
No, that is fine.
Is there is any automated way to test all the monitors?
We don't currently have good infrastructure to test this part of the codebase.
As mentoned in #4025 (comment)
#4451 will likely get us closer to testing this, but for this PR this is out of scope.
What actions are needed to fulfill the PR Checklist?
The PR checklist is there to ensure that you have a guideline what steps are nessesary to produce less work on the side of the maintainers.
In your case, all points are either checked or irrelevant.
Footnotes
-
Submitting a PR which is partially/mostly broken and
PR 4419 (not a link on purpose) is a good example of such behaviour. ↩ -
https://github.com/louislam/uptime-kuma/pull/3571 us a good example of this behaviour. ↩
Though I'm no maintainer, please allow me to still chime in. From what I see, it is only a breaking-change because it changes the default behaviour from how it worked before (and admin's therefore are used to expect). I think one could mitigate this by introducing a new setting: Settings > General > [x] Use Retry interval instead of Hearbeat Interval while monitor is down. During the migration to v2.0, this setting may then just be removed as it becomes the new default. My reasoning for this suggestion: The cahnge is "breaking" only very softly and does not come with a great risk. But in turn, you get a massively useful feature that would allow others (and me 😇) to modify some timings in the monitoring for better accuracy and up-to-date information on the state of your machines. The very use case and goal of this amazing piece of software. TL;DR: it is really a great change with only small implications. I would greatly appreciate it, if it arrived before v2.0. 😊 |
DOWN
DOWN
retryInterval
when a monitor is DOWN
Thanks for the change to the monitoring behaviour! (idk why I did not merge it in february) 🎉 Note This PR is part of the All changes in this PR are small and uncontroversial ⇒ merging with junior maintainer approval |
Please note that this pull request causes some issues to my old montiors (should be created in Uptime Kuma 1.5.0), so I reverted it. The monitors' Feel free to investigate and create a new pull request. |
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:
Description
Fixes #4025
Type of change
Please delete any options that are not relevant.
Checklist
Screenshots (if any)
Please do not use any external image service. Instead, just paste in or drag and drop the image here, and it will be uploaded automatically.
@louislam @CommanderStorm
Tagging you both as per Contibution Guidelines
DOWN
? #4025