Python library for sending updates to lucos_schedule_tracker
Project description
lucos_schedule_tracker_pythonclient
Python library for sending updates to lucos_schedule_tracker.
Configuration
The following environment variables must be set for the library to function:
SYSTEM: A unique identifier for the system or job being tracked. This is used as theUser-Agentheader and as the defaultsystemname in reports.SCHEDULE_TRACKER_ENDPOINT: The full URL of thelucos_schedule_trackerinstance's report endpoint (e.g.,https://schedule-tracker.example.com/report-status).
Usage
from schedule_tracker import updateScheduleTracker
# Report a successful run
updateScheduleTracker(success=True)
# Report a failure with a message
updateScheduleTracker(success=False, message="Database connection failed")
API Reference
updateScheduleTracker(success: bool, system: str = SYSTEM, message: str = None, frequency: int = 86400)
Sends a status update to the schedule tracker.
success(bool, required): Whether the job completed successfully.system(str, optional): The identifier for the system. Defaults to the value of theSYSTEMenvironment variable.message(str, optional): A human-readable message, typically used to provide details on failure.frequency(int, optional): How often the job is expected to run, in seconds. Defaults to86400(24 hours).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lucos_schedule_tracker_pythonclient-1.0.21.tar.gz.
File metadata
- Download URL: lucos_schedule_tracker_pythonclient-1.0.21.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fd01d82b4ebcc1026f0d5e421b9a114c04ac1e0b6b502a27fff6747dda55e36
|
|
| MD5 |
bec9db52be10287f5826b2b9b9e341b1
|
|
| BLAKE2b-256 |
2259cfb1cc56d20a1e06085cd82429646d2b7d8c9a8656bf136b8512ec73123e
|
File details
Details for the file lucos_schedule_tracker_pythonclient-1.0.21-py3-none-any.whl.
File metadata
- Download URL: lucos_schedule_tracker_pythonclient-1.0.21-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5771ee85dbe9a8897b1992c4c110e829741a7ec1623759b3fc8be38e7a28b83d
|
|
| MD5 |
4465a04c38afeae8497b7d1538497083
|
|
| BLAKE2b-256 |
643f9edde92092b5c457f4effffd9a26c60d2f42ae7bdc65b793538d5584b11f
|