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

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_arq-1.1.2.tar.gz
  • Upload date:
  • Size: 19.5 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.1.2.tar.gz
Algorithm Hash digest
SHA256 311ba7856e5473a1958a1da5485e10e85e0354b2ab3d6d863f9064840ebbb4e2
MD5 c4c509327980057c454146beb623f744
BLAKE2b-256 decfab74943e39693ed6d9947ee452534cf715dd6bc77ecddc94ddd1f057d622

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_arq-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.6 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d75754ad2aa72918bd7be5748e15d173dc6b146c862bbb60c0dd948570ee3e47
MD5 1eb1e27373fb701288fedbc4e7979b20
BLAKE2b-256 2da35debe5816e389aefd41390c83cbc49188e90d209f8597fe612cf5d3dd443

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