mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 06:55:53 +03:00
[GH-ISSUE #644] Execution time of script not shown in log page #466
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#466
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jsddsfoh on GitHub (Apr 29, 2022).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/644
Hello,
I use /start and /stop for time measurement. It all works fine, but in the log the duration is not displayed for an entry, which execution time was about 2.5 days.
All other entries range from a few minutes to 8hrs and are displayed fine.
@cuu508 commented on GitHub (Apr 29, 2022):
If the "start" and "complete" events are more than 24 hours apart, Healthchecks assumes they are not related.
The 24 hour threshold is defined here in the code:
github.com/healthchecks/healthchecks@98f2536825/hc/api/models.py (L36)This has been brought up a couple times before, perhaps it makes sense to increase the threshold to 48 or 72 hours.
@jsddsfoh commented on GitHub (Apr 29, 2022):
I see, thanks for the response!
It's possible to set grace time and period up to 365days. I was wondering which script needs to run this long, but I'm sure there is somebody out there :D
So is there no way to make it possible to show the runtime? Maybe an alive-ping after a certain time? Or just remove the limit, but I assume it's there for a reason?
@cuu508 commented on GitHub (May 2, 2022):
Period: yes, there are jobs that run only once a month, once every 3 months, or less frequently. For grace time, I'm not sure there's an use case for months-long grace time. But I wanted the Period and Grace Time sliders to look symmetric.
Two reasons:
/startsignal and then crashes. Five days later, somebody gets around to investigating what happened to the job. During investigation, they manually send a "success" ping. The UI now shows the last duration as "5 days".@jsddsfoh commented on GitHub (May 2, 2022):
Thanks for setting it to 72h! This should fit at least my needs most of the time.
Maybe it's possible to have MAX_DELTA editable in config file in the future?