lucos-schedule-tracker-pythonclient 1.0.28__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.
- {lucos_schedule_tracker_pythonclient-1.0.28 → lucos_schedule_tracker_pythonclient-1.0.29}/PKG-INFO +1 -1
- {lucos_schedule_tracker_pythonclient-1.0.28 → lucos_schedule_tracker_pythonclient-1.0.29}/lucos_schedule_tracker_pythonclient.egg-info/PKG-INFO +1 -1
- {lucos_schedule_tracker_pythonclient-1.0.28 → lucos_schedule_tracker_pythonclient-1.0.29}/pyproject.toml +1 -1
- {lucos_schedule_tracker_pythonclient-1.0.28 → lucos_schedule_tracker_pythonclient-1.0.29}/schedule_tracker.py +14 -0
- {lucos_schedule_tracker_pythonclient-1.0.28 → lucos_schedule_tracker_pythonclient-1.0.29}/README.md +0 -0
- {lucos_schedule_tracker_pythonclient-1.0.28 → lucos_schedule_tracker_pythonclient-1.0.29}/lucos_schedule_tracker_pythonclient.egg-info/SOURCES.txt +0 -0
- {lucos_schedule_tracker_pythonclient-1.0.28 → lucos_schedule_tracker_pythonclient-1.0.29}/lucos_schedule_tracker_pythonclient.egg-info/dependency_links.txt +0 -0
- {lucos_schedule_tracker_pythonclient-1.0.28 → lucos_schedule_tracker_pythonclient-1.0.29}/lucos_schedule_tracker_pythonclient.egg-info/requires.txt +0 -0
- {lucos_schedule_tracker_pythonclient-1.0.28 → lucos_schedule_tracker_pythonclient-1.0.29}/lucos_schedule_tracker_pythonclient.egg-info/top_level.txt +0 -0
- {lucos_schedule_tracker_pythonclient-1.0.28 → lucos_schedule_tracker_pythonclient-1.0.29}/setup.cfg +0 -0
|
@@ -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.
|
|
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,
|
{lucos_schedule_tracker_pythonclient-1.0.28 → lucos_schedule_tracker_pythonclient-1.0.29}/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lucos_schedule_tracker_pythonclient-1.0.28 → lucos_schedule_tracker_pythonclient-1.0.29}/setup.cfg
RENAMED
|
File without changes
|