Skip to main content

A pip package to run and schedule queries on Starburst clusters.

Project description

Starburst Scheduler

A Python pip package to run and schedule SQL queries on Starburst Galaxy or Starburst Enterprise clusters.

It provides a simple command-line interface (CLI) to run queries once or on a schedule, and is designed for:

  • Automating reports
  • Monitoring Starburst cluster health
  • Sending query results to collaboration tools (coming soon)

The package is lightweight, easy to use, and works well inside CI/CD pipelines, on servers, or in developer environments.

Key Features

Run SQL queries directly from the CLI
Schedule queries at regular intervals (seconds, minutes, hours, days)
Compatible with Starburst Galaxy and Starburst Enterprise
Easy to install no complex setup required
Designed to integrate with Slack, Mattermost, and other tools (feature coming soon!)
Works with Python 3.9+
Supports secure password input
Designed for extensibility (you can add custom output actions easily)

Installation

pip install starburst_scheduler

Usage

Run a Single Query

starburst-scheduler run-query --host <host> --port <port> --user <user> --password <password> --catalog sample --schema burstbank --query "SELECT * FROM system.runtime.nodes"

Schedule a Query

starburst-scheduler schedule-query --host <host> --port <port> --user <user> --password <password> --catalog sample --schema burstbank --query "SELECT * FROM system.runtime.nodes" --frequency 60 --time-unit seconds

Planned Enhancements

Slack & Mattermost integration:
-> When a query runs, results can be automatically posted to your team chat.
-> Example: Monitor active queries, cluster status, send alerts.

CSV/JSON output:
-> Option to save query results to CSV / JSON for use in data pipelines.

Advanced scheduling:
-> Support cron expressions, weekly/monthly jobs.

Email notifications:
-> Option to send query results by email.

Error alerting:
-> Notify on failed query runs.

License

MIT License

GitHub Repository

https://github.com/karranikhilreddy99/starburst_scheduler

Summary

Starburst Scheduler makes it simple to:

  • Run queries manually
  • Automate reporting
  • Monitor Starburst cluster health
  • Send alerts (Slack, Mattermost coming soon!)

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

starburst_scheduler-0.1.6.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

starburst_scheduler-0.1.6-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file starburst_scheduler-0.1.6.tar.gz.

File metadata

  • Download URL: starburst_scheduler-0.1.6.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for starburst_scheduler-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d86e269dd2cdc479d7f7d74b766bbef718be16b207b1fe579109207aa892d966
MD5 a9bbae35ee40bd76c8e50026422b3e23
BLAKE2b-256 900efa95ee19ec21d61735a9264d0a1e549303800b5819b04927bcbf34206de4

See more details on using hashes here.

File details

Details for the file starburst_scheduler-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for starburst_scheduler-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ba75702cb38e0b342896b761a101d3072efe3be4dd90e05644c2d9d0ae3c786e
MD5 87896897d44d6ac8695fded063a3b4c8
BLAKE2b-256 dc12ee332a2c51e9ad6f60ae7f5aedd188ba5c68c3a332a06336a10998117e62

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