e-note-ion 2.0.0__tar.gz → 2.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {e_note_ion-2.0.0/e_note_ion.egg-info → e_note_ion-2.0.1}/PKG-INFO +1 -1
- {e_note_ion-2.0.0 → e_note_ion-2.0.1/e_note_ion.egg-info}/PKG-INFO +1 -1
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/health.py +12 -3
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/pyproject.toml +1 -1
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/LICENSE.txt +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/MANIFEST.in +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/README.md +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/config.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/e_note_ion.egg-info/SOURCES.txt +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/e_note_ion.egg-info/dependency_links.txt +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/e_note_ion.egg-info/entry_points.txt +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/e_note_ion.egg-info/requires.txt +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/e_note_ion.egg-info/top_level.txt +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/exceptions.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/healthalert.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/homebridge.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/__init__.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/bart.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/calendar.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/calendar_schedule.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/color.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/discogs.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/diving.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/google.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/http.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/media.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/message.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/moon.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/morning.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/notion.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/parcel.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/plex.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/qbittorrent.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/scheduler.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/tmdb.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/trakt.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/unraid.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/uptimerobot.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/vestaboard.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/weather.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/ynab.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/youtube.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/public.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/quiet.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/scheduler.py +0 -0
- {e_note_ion-2.0.0 → e_note_ion-2.0.1}/setup.cfg +0 -0
|
@@ -288,10 +288,19 @@ def _is_overdue(state: _TargetState, now: float) -> bool:
|
|
|
288
288
|
"""Return True if *state* has gone too long without firing. Caller holds _lock."""
|
|
289
289
|
if state.expected_interval is None:
|
|
290
290
|
return False
|
|
291
|
-
#
|
|
292
|
-
#
|
|
291
|
+
# An integration cannot be overdue for a window in which the scheduler was
|
|
292
|
+
# not running, so process start floors the reference. Without it, any outage
|
|
293
|
+
# longer than 2x an interval makes every short-cadence integration report
|
|
294
|
+
# overdue the moment we come back — /health returned 503 on startup after a
|
|
295
|
+
# 50-minute stop until uptimerobot (5 min cadence) next fired.
|
|
296
|
+
#
|
|
297
|
+
# registered_at cannot serve as that floor: _load_log() rebuilds targets from
|
|
298
|
+
# health.jsonl before register() runs, stamping them with the *event's*
|
|
299
|
+
# timestamp, and register() leaves an existing target alone. So a restored
|
|
300
|
+
# target carries an old registered_at too.
|
|
293
301
|
last = state.events[-1].timestamp if state.events else state.registered_at
|
|
294
|
-
|
|
302
|
+
reference = max(last, _started_at)
|
|
303
|
+
return (now - reference) > state.expected_interval * _OVERDUE_INTERVAL_MULTIPLIER
|
|
295
304
|
|
|
296
305
|
|
|
297
306
|
def record_success(name: str) -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|