Skip to main content

z4j arq queue engine adapter (Apache 2.0)

Project description

z4j-arq

PyPI version Python License

z4j queue-engine adapter for arq.

from arq.connections import RedisSettings
from z4j_arq import ArqEngineAdapter

settings = RedisSettings(host="redis", port=6379)

# In your z4j-bare bootstrap (async context):
from z4j_bare import install_agent
install_agent(
    engines=[ArqEngineAdapter(redis_settings=settings, function_names=["myapp.send_email"])],
)

Capabilities

  • ✅ Per-task cancel_task (via Redis abort key)
  • ✅ Result-backend reconciliation - arq stores every job under arq:result:<id> and arq:in-progress:<id>; we read both to classify the canonical state.
  • retry_task - arq has no native "re-enqueue this completed job" primitive; callers have to re-enqueue with the original function name + args. Deferred to v1.1.
  • bulk_retry, purge_queue, restart_worker, rate_limit - arq exposes no remote-control surface for these.

Cron jobs

arq's cron jobs are configured via WorkerSettings.cron_jobs. Pair with z4j-arqcron 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_arq-1.3.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

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

z4j_arq-1.3.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for z4j_arq-1.3.0.tar.gz
Algorithm Hash digest
SHA256 ab8bc5b8c47407f29bb9b7692ddf761f42e26e5626cb454d06ea97747079e58a
MD5 c9d64d78043fdaa8827726b3264ac394
BLAKE2b-256 d1f596dbbe9595d37ad687ef9282447d658d189c939b3c144c1d3d66c941cf7a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for z4j_arq-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b5f0c77bfcf9e12b1d6eaf8df0cc5960e12896ffed8002683353314c1514e50
MD5 2322fa3d81d8e19cdfa9475543256326
BLAKE2b-256 65cc48a60bc38d482705be1dc2cc07400ca0a726a18fb24642c1de0b99c6f902

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