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

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_arq-1.0.0.tar.gz
  • Upload date:
  • Size: 16.8 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.0.tar.gz
Algorithm Hash digest
SHA256 d96789aa2c14c2a8578480983a022672b2a8371752d8fb8f1b48cbb9b7d4fba4
MD5 0b4e477f54cb215e35db7816f50ab6e8
BLAKE2b-256 14959ac9edb266143c7a1590fd64e7449a03b3d1cc8e23f311b428e1dff4ae95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_arq-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49ddfd6f5372b61f7820f99c4387e313862defac843315c064c41ac5ba6bee63
MD5 1911f508ead8472cf70a2a56391fa005
BLAKE2b-256 98c135134084cc4cdea0ae78f91be5b4eb4b1174d07288698fa05ce6e09a2ac5

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