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
TASK_BUS_URL Task Bus server for status reporting
TASK_BUS_PROVIDER Provider type: pgmq
DATABASE_URL Postgres connection URL
TASK_BUS_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-2.0.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-2.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: task_hub_sdk_pg-2.0.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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-2.0.0.tar.gz
Algorithm Hash digest
SHA256 8fc5632bc758ea60cb7c4aa09c0d5ad71069420f86b1bf433c40e46e4ac6996d
MD5 830de32217f65fba05da728c96f6f925
BLAKE2b-256 c380c66e1c244f66d85ec69713ea3a4cd0191cbe76dd664e70d1598f3e5e0d0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: task_hub_sdk_pg-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 453012fc7f500c0f7314da35d241a1bef61f8e7a95cfbb82c16e6ec7e6719515
MD5 ddc1bed5d86ee1c17b3821a2dff46e9f
BLAKE2b-256 291a59feb3fd095a454829e8da9b45adcb41e4a48e9045451e35a382a81bb943

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