Skip to main content

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

Project description

Starburst Scheduler A Python pip package to run and schedule SQL queries on Starburst Galaxy or Starburst Enterprise clusters. Installation pip install starburst-scheduler

Prerequisites

Starburst Galaxy or Enterprise cluster (e.g., your-cluster.trino.galaxy.starburst.io). Credentials (username, password). Python 3.9+.

Usage Run a Single Query starburst-scheduler run-query --host your-cluster.trino.galaxy.starburst.io --user your-user@domain.com --password your-password --catalog system --schema runtime --query "SELECT 1"

Or use environment variable: export STARBURST_PASSWORD=your-password # Linux/macOS set STARBURST_PASSWORD=your-password # Windows starburst-scheduler run-query --host your-cluster.trino.galaxy.starburst.io --user your-user@domain.com --catalog system --schema runtime --query "SELECT 1"

Schedule a Query starburst-scheduler schedule-query --host your-cluster.trino.galaxy.starburst.io --user your-user@domain.com --password your-password --catalog system --schema runtime --query "SELECT * FROM nodes" --frequency 60 --time-unit seconds

Troubleshooting

Cluster Stopped: Start your cluster at https://your-cluster.galaxy.starburst.io/. Authentication Error (401): Verify username/password. Ensure no quotes are included in the password when set in the environment variable (e.g., set STARBURST_PASSWORD=your-password). Table Access: Ensure permissions for catalog/schema. Installation Error: Ensure all files (e.g., README.md, setup.py) are saved with UTF-8 encoding.

Planned Enhancements

Slack & Mattermost integration CSV/JSON output Advanced scheduling (cron expressions) Email notifications Error alerting

License MIT License Contributing File issues or PRs at https://github.com/karranikhilreddy99/starburst_scheduler.

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.9.tar.gz (5.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.9-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for starburst_scheduler-0.1.9.tar.gz
Algorithm Hash digest
SHA256 8d274bb9bcd636813babc9d5fee5093881f35423d448dc92121361feeb1e42d5
MD5 9e58dc7eba4010742cc0ef8383e919ad
BLAKE2b-256 3d6ecb35a5aedbd147c1ce4affc28c8d37f3cf5461f8ee7720a1178029310ae3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for starburst_scheduler-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c354347e2ce61907612c7424b37868264fb9491960ef4c9d8b98676db59cfa17
MD5 2d7ed3733a0b8b4ae955f0581ae39293
BLAKE2b-256 8ffbd36bb0a7420e0164fcbe1a4d0f8ce09602479d7318a58a83cc95275f4a57

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