Skip to main content

z4j taskiq queue engine adapter (Apache 2.0)

Project description

z4j-taskiq

PyPI version Python License

z4j queue-engine adapter for taskiq.

from taskiq_redis import RedisStreamBroker, RedisAsyncResultBackend
from z4j_taskiq import TaskiqEngineAdapter

broker = RedisStreamBroker(url="redis://redis:6379/0")
broker = broker.with_result_backend(
    RedisAsyncResultBackend(redis_url="redis://redis:6379/1"),
)

# In your z4j-bare bootstrap:
from z4j_bare import install_agent
install_agent(engines=[TaskiqEngineAdapter(broker=broker)])

Capabilities

  • ✅ Task discovery (every @broker.task)
  • ✅ Result-backend reconciliation (reconcile_task) — reads broker.result_backend to classify task state.
  • cancel_task — taskiq has no native cancel primitive across brokers; deferred to v1.1.
  • retry_task — same; needs the original message to re-kick.
  • bulk_retry, purge_queue, restart_worker, rate_limit — no broker-agnostic primitive.

Periodic tasks

taskiq has a separate taskiq.scheduler.TaskiqScheduler package for cron schedules. Pair this adapter with z4j-taskiqscheduler to surface them on the Schedules page.

Apache 2.0.

License

Apache 2.0 — see LICENSE. This package is deliberately permissively licensed so that proprietary Django / Flask / FastAPI applications can import it without any license concerns.

Links

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

z4j_taskiq-1.0.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

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

z4j_taskiq-1.0.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file z4j_taskiq-1.0.0.tar.gz.

File metadata

  • Download URL: z4j_taskiq-1.0.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for z4j_taskiq-1.0.0.tar.gz
Algorithm Hash digest
SHA256 53173445107475540ec275ac4dd60d821c1a351a4b0fd56e38eb6aabecaaf04e
MD5 e40c9822a6ce4c5509ac5b57516a22c4
BLAKE2b-256 fee1e1bfd9a312c19f1d7ededbd430b32c52f0ba1ac839cb0f023fd3ef047867

See more details on using hashes here.

File details

Details for the file z4j_taskiq-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: z4j_taskiq-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for z4j_taskiq-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e0019fb6b6362f836b6fbf36d8905c1eaca571d723bffeba36d8f899000c7dd
MD5 070497a8f58fbd3506e004b782c6c91d
BLAKE2b-256 ef9b81b84e1a3ba6dab848294fefb2647cf5a6eeb12f7d2c4009a241fa44872e

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