Skip to main content

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 the User-Agent header and as the default system name in reports.
  • SCHEDULE_TRACKER_ENDPOINT: The full URL of the lucos_schedule_tracker instance'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 the SYSTEM environment 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 to 86400 (24 hours).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lucos_schedule_tracker_pythonclient-1.0.12.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file lucos_schedule_tracker_pythonclient-1.0.12.tar.gz.

File metadata

File hashes

Hashes for lucos_schedule_tracker_pythonclient-1.0.12.tar.gz
Algorithm Hash digest
SHA256 afd0b6681c1eb6ad5eb98a2e4b028dfdef012697932481b0c05b35dd12a2239b
MD5 c06ba9c324d7a39fac459effa0a00ca9
BLAKE2b-256 f0fdd5c0a3ab2cd038910d0e670172e6440f2f83175ef3dd6af345b1dc3a39e0

See more details on using hashes here.

File details

Details for the file lucos_schedule_tracker_pythonclient-1.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for lucos_schedule_tracker_pythonclient-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 3118a90b8b5aea4c9f88e91170a87abf5281090d95154b6bbce3d14f02d05977
MD5 86a5134ef25840081645a77ef1099dd0
BLAKE2b-256 458343dbaf62a0926a1ffed5e959eb3200e10dd5b6df28d135871f3dfcb265e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page