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.
Files changed (46) hide show
  1. {e_note_ion-2.0.0/e_note_ion.egg-info → e_note_ion-2.0.1}/PKG-INFO +1 -1
  2. {e_note_ion-2.0.0 → e_note_ion-2.0.1/e_note_ion.egg-info}/PKG-INFO +1 -1
  3. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/health.py +12 -3
  4. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/pyproject.toml +1 -1
  5. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/LICENSE.txt +0 -0
  6. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/MANIFEST.in +0 -0
  7. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/README.md +0 -0
  8. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/config.py +0 -0
  9. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/e_note_ion.egg-info/SOURCES.txt +0 -0
  10. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/e_note_ion.egg-info/dependency_links.txt +0 -0
  11. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/e_note_ion.egg-info/entry_points.txt +0 -0
  12. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/e_note_ion.egg-info/requires.txt +0 -0
  13. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/e_note_ion.egg-info/top_level.txt +0 -0
  14. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/exceptions.py +0 -0
  15. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/healthalert.py +0 -0
  16. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/homebridge.py +0 -0
  17. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/__init__.py +0 -0
  18. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/bart.py +0 -0
  19. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/calendar.py +0 -0
  20. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/calendar_schedule.py +0 -0
  21. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/color.py +0 -0
  22. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/discogs.py +0 -0
  23. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/diving.py +0 -0
  24. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/google.py +0 -0
  25. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/http.py +0 -0
  26. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/media.py +0 -0
  27. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/message.py +0 -0
  28. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/moon.py +0 -0
  29. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/morning.py +0 -0
  30. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/notion.py +0 -0
  31. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/parcel.py +0 -0
  32. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/plex.py +0 -0
  33. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/qbittorrent.py +0 -0
  34. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/scheduler.py +0 -0
  35. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/tmdb.py +0 -0
  36. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/trakt.py +0 -0
  37. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/unraid.py +0 -0
  38. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/uptimerobot.py +0 -0
  39. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/vestaboard.py +0 -0
  40. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/weather.py +0 -0
  41. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/ynab.py +0 -0
  42. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/integrations/youtube.py +0 -0
  43. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/public.py +0 -0
  44. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/quiet.py +0 -0
  45. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/scheduler.py +0 -0
  46. {e_note_ion-2.0.0 → e_note_ion-2.0.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: e-note-ion
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Automation for Vestaboard displays — with emotion
5
5
  Author-email: Jason Puglisi <jason@pugli.si>
6
6
  Maintainer-email: Jason Puglisi <jason@pugli.si>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: e-note-ion
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Automation for Vestaboard displays — with emotion
5
5
  Author-email: Jason Puglisi <jason@pugli.si>
6
6
  Maintainer-email: Jason Puglisi <jason@pugli.si>
@@ -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
- # Registration time is the reference until something actually fires, so a
292
- # freshly started process is not instantly overdue.
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
- return (now - last) > state.expected_interval * _OVERDUE_INTERVAL_MULTIPLIER
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:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "e-note-ion"
3
- version = "2.0.0"
3
+ version = "2.0.1"
4
4
  description = "Automation for Vestaboard displays — with emotion"
5
5
  keywords = ["vestaboard", "note", "flagship", "automation", "schedule", "scheduling"]
6
6
  authors = [
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