Skip to main content

Task Bus SDK for Python (PGMQ / PostgreSQL broker)

Project description

task-hub-sdk-pg

PGMQ provider for the Task Bus Python SDK.

Usage

from task_hub_sdk_pg import BaseWorker, PgProvider, start_worker
from task_hub_sdk import ProviderConfig

class MyWorker(BaseWorker):
    def process_task(self, msg_id, body) -> bool:
        return True

# Convenience helper
start_worker(MyWorker(queue_name="transcribe"))

# Explicit provider
start_worker(MyWorker(), PgProvider(), ProviderConfig(queue_name="transcribe"))

Environment

Variable Description
SERVER_URL Task Bus server for status reporting
TASK_BUS_URL / DATABASE_URL Postgres connection URL
TASK_BUS_QUEUE / PGMQ_QUEUE Queue name (auto-prefixed to task_*)

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

task_hub_sdk_pg-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

task_hub_sdk_pg-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file task_hub_sdk_pg-0.1.0.tar.gz.

File metadata

  • Download URL: task_hub_sdk_pg-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for task_hub_sdk_pg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8d02ef2f05cae1fa50dc822d33dcf11c5516a64a5c0f06016f6e9f799bfd3993
MD5 0819431619bfc5b1545f7f2f6f13b693
BLAKE2b-256 a552dc96932d37c491b8d00567a497d34aa866995433783c2bc160fa9ab882e7

See more details on using hashes here.

File details

Details for the file task_hub_sdk_pg-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: task_hub_sdk_pg-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for task_hub_sdk_pg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ca8d36d1c915af25c95dc07b76432e539bcfd5bec37e87404dbe867c3301c66
MD5 eec1919abd7e223da03d5ded09935688
BLAKE2b-256 9423d00658e3fd85a9661a465d5d9764221cd38a9ecd62d579f6b966e2e38ac7

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