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.1.2.tar.gz (18.2 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.1.2-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for z4j_taskiq-1.1.2.tar.gz
Algorithm Hash digest
SHA256 70638c9f3283b25979ac500624c99722b904fbef7f79af6989d8741a56434a3b
MD5 8cc6436584219ed69da8973f5d0bcccf
BLAKE2b-256 c3b571d19731f48887dec4dcf23f8eaf6f11649ee6b1abc75bcac253fe544ac6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for z4j_taskiq-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d4835aa28fdd2210767170cafdf374cb692fe19bf5ae0934dfce1345f137fd04
MD5 3378cb1461523f7d6842543b78a81b68
BLAKE2b-256 2d9e9cf52769ba318a4f2681afe76371152998b842bc3eda0816bf1f03b45dde

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