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.0.1.tar.gz (17.1 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.0.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for z4j_arq-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6a2897704619f5046c7732025703a18ae7b472bebd1e75c048f8cbefe42c8193
MD5 afd239a3828251b1f906f0a59538fa00
BLAKE2b-256 06d2485fdeb8951802a1de83de0e36cc00999accc4865a40d8ffd8fac1095c22

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for z4j_arq-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9bc43629bd4d0a3736385ce8bb6301b0b33e96cbbdf95e5c99fdae4be94cafc0
MD5 05cc49e0c3c34091e2a368956d4e7c3d
BLAKE2b-256 b2fa42514b7ec7432e53337174da1c68298f950257f503a18ae8b404bfdb9f83

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