Skip to main content

Task Bus SDK for Python (Redis Broker)

Project description

task-hub-sdk-redis

Redis Streams provider for the Task Bus Python SDK.

Usage

from task_hub_sdk_redis import BaseWorker, RedisProvider, 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="tts"))

# Explicit provider
start_worker(MyWorker(), RedisProvider(), ProviderConfig(queue_name="tts"))

Configuration

Variable Description
TASK_BUS_URL Task Bus HTTP API URL (default: http://localhost:8080)
TASK_BUS_PROVIDER Provider type: redis
REDIS_URL Redis connection URL
TASK_BUS_QUEUE Queue name (auto-prefixed to task_*)
REDIS_GROUP Consumer group name (default: task_bus_group)
REDIS_CONSUMER Consumer name (default: HOSTNAME + pid)
HOSTNAME Worker identity

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_redis-2.0.0.tar.gz (2.3 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_redis-2.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: task_hub_sdk_redis-2.0.0.tar.gz
  • Upload date:
  • Size: 2.3 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_redis-2.0.0.tar.gz
Algorithm Hash digest
SHA256 966ed064ec6d4228d264787c4b83637fddfe9525a3e9ec7adef91e716f53a7dc
MD5 8700839ea8ae26b9b313fbf275cdcf72
BLAKE2b-256 3f6083aec08bd298d51d510d0650c3c7247791c645b5c3a1d7691c004d821b67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: task_hub_sdk_redis-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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_redis-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88dbe128a4f0fbf0e133df7ff919a928855126d9874ab19c011f21d49c10b24b
MD5 194d6e1de86384768cb9f3c18011bbbf
BLAKE2b-256 511aa7578b9915f1d560c522cb95fcd993816cd897521393194de060876d2cdc

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