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

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

File metadata

File hashes

Hashes for lucos_schedule_tracker_pythonclient-1.0.31.tar.gz
Algorithm Hash digest
SHA256 2dd0ba0a29348b5f40e44f58c7c0aeb579b81b034fc34144b97f9e7cc8058522
MD5 1cb6e81707f61cbe0a08bf4e1f6038f1
BLAKE2b-256 d66014185f0520baf21732ca1ee1cac0d509d8b1bbb7ec6f033959b201b75fac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lucos_schedule_tracker_pythonclient-1.0.31-py3-none-any.whl
Algorithm Hash digest
SHA256 8f753b9cfd37c0942a82bb5795bdebc883e948e5fe989f0deae6c539525e220f
MD5 e96644c0e9ce887404b624e4c31a5ddd
BLAKE2b-256 67356e61e5b99e9e1fce19cf2646cc1e30db1a29cd643eb7afe73063adb74bdd

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