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.

This library posts to the v2 /report-status endpoint. See ADR-0004 for the architectural background on system vs job_name.

Configuration

The following environment variables must be set for the library to function:

  • SYSTEM: A unique identifier for the system being tracked. This is used as the User-Agent header and as the default system name in reports.
  • SCHEDULE_TRACKER_ENDPOINT: The v2 report endpoint URL of the lucos_schedule_tracker instance (e.g., https://schedule-tracker.example.com/v2/report-status). The URL must contain /v2/ — the library validates this at startup and exits with an error if it does not.

Usage

from schedule_tracker import updateScheduleTracker

# Report a successful run
updateScheduleTracker(True, "ingestor_dbpedia")

# Report a failure with a message
updateScheduleTracker(False, "ingestor_loc", message="Database connection failed")

API Reference

updateScheduleTracker(success: bool, job_name: str, system: str = SYSTEM, message: str | None = None, frequency: int = 86400)

Sends a status update to the v2 schedule tracker endpoint.

  • success (bool, required): Whether the job completed successfully.
  • job_name (str, required): A sub-job identifier within the system (e.g. "ingestor_dbpedia_meanOfTransportation"). Naming the job explicitly makes it easier to add further jobs to the same system later without schema changes.
  • system (str, optional): The identifier for the owning system (e.g. "lucos_arachne"). Defaults to the value of the SYSTEM environment variable.
  • message (str | None, 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-2.0.1.tar.gz (3.0 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-2.0.1.tar.gz.

File metadata

File hashes

Hashes for lucos_schedule_tracker_pythonclient-2.0.1.tar.gz
Algorithm Hash digest
SHA256 708eef8dffd36e958da0ff8441cb84824ae24942f8a202076c2b0764474f59f4
MD5 15bf1785e5fbd0be9a37e53cd30f171d
BLAKE2b-256 dd9e197bcde0a7e0d580ff5310ad8d918f755a0dd9bcae47a37a03e8f8a91477

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lucos_schedule_tracker_pythonclient-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6b41b47b959a2f167fc236706a6dc64f4a3415a4b861ba03c9141735f2f2e27
MD5 2abcb707b03b7f04142e8440e580eb3b
BLAKE2b-256 f11181658bac36cdd23bb828ad4d68d33bbe86b02d68f39fc88ec04a4f67acd6

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