lucos-schedule-tracker-pythonclient 1.0.27__tar.gz → 1.0.29__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lucos_schedule_tracker_pythonclient
3
- Version: 1.0.27
3
+ Version: 1.0.29
4
4
  Summary: Python library for sending updates to lucos_schedule_tracker
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Python: >=3.8
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lucos_schedule_tracker_pythonclient
3
- Version: 1.0.27
3
+ Version: 1.0.29
4
4
  Summary: Python library for sending updates to lucos_schedule_tracker
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Python: >=3.8
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "lucos_schedule_tracker_pythonclient"
7
- version = "1.0.27"
7
+ version = "1.0.29"
8
8
  description = "Python library for sending updates to lucos_schedule_tracker"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -17,6 +17,20 @@ session.headers.update({
17
17
  })
18
18
 
19
19
  def updateScheduleTracker(success: bool, system: str = SYSTEM, message: str = None, frequency: int = (24 * 60 * 60)):
20
+ """Report the outcome of a scheduled run to lucos_schedule_tracker.
21
+
22
+ Args:
23
+ success: Whether the job completed successfully.
24
+ system: Identifier of the calling system. Defaults to the SYSTEM env var.
25
+ message: Optional human-readable detail, typically used to describe a
26
+ failure.
27
+ frequency: How often this job is genuinely scheduled to run, in seconds.
28
+ Defaults to 86400 (24 hours). Pass your cron's actual interval —
29
+ schedule-tracker uses this to derive its alert threshold. Do not
30
+ adjust this value to manipulate the threshold; if the resulting
31
+ alert window is wrong for your job, raise it as a schedule-tracker
32
+ issue rather than passing a misleading value here.
33
+ """
20
34
  payload = {
21
35
  "system": system,
22
36
  "frequency": frequency,