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.24.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.24.tar.gz.

File metadata

File hashes

Hashes for lucos_schedule_tracker_pythonclient-1.0.24.tar.gz
Algorithm Hash digest
SHA256 89e917e115d9a87db93be6c8727a775e9246463bd7c26c3f562a7ad8ab11b5b0
MD5 34259bbb693cc3d63233abcb30968187
BLAKE2b-256 f1127dfeabe213c35f6150310f3ba61c854d5ceb1ce5a93246fc5d988a3c5e53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lucos_schedule_tracker_pythonclient-1.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 501541d7daf782d384353a65025dd3b2174c0c5c709310b9848d8e5baf7dafb0
MD5 6de2925cd246c5821e7bb0e42732ecab
BLAKE2b-256 c1b0aec47e3541735995ce8235ac11cd88d250fd4bd00bbac1de06f202347857

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