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.3.0.tar.gz (18.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.3.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_taskiq-1.3.0.tar.gz
  • Upload date:
  • Size: 18.6 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.3.0.tar.gz
Algorithm Hash digest
SHA256 a3813d905c3c95f11798d7839c7d5811d512c98f187d8ce9a388c1646472c34d
MD5 c12143a548b3eb9523b2340e1b510743
BLAKE2b-256 7ef3f08369fb699d32e66d480eb6637248f8ad4eb3ddd1ca3e174ab9ac2bab9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_taskiq-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d04c32181a94ef5c3d93af48f95fb03aeacc233fe50cfe83d586d18d401bc732
MD5 099ee6ea5bf056d4a4389a5b2c5b1526
BLAKE2b-256 84f93ea2ce5ad5033b3c680dbdc77c15b0cefb4ebe71034ce1c781ddda3bb970

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