Skip to main content

z4j Huey queue engine adapter (Apache 2.0)

Project description

z4j-huey

PyPI version Python License

z4j queue-engine adapter for Huey.

from huey import RedisHuey
from z4j_huey import HueyEngineAdapter

huey = RedisHuey("myapp", host="redis", port=6379)

@huey.task()
def add(x, y):
    return x + y

# In your z4j-bare bootstrap:
from z4j_bare import install_agent
install_agent(engines=[HueyEngineAdapter(huey=huey)])

Capabilities

  • ✅ Task discovery (every @huey.task and @huey.periodic_task)
  • ✅ Per-task retry_task / cancel_task
  • ✅ Result-backend reconciliation (reconcile_task) — closes the "stuck started forever" gap by consulting Huey's result store.
  • ✅ Queue/worker introspection
  • bulk_retry, purge_queue — Huey's storage layer doesn't expose the bulk primitives needed; deferred to v1.1.
  • restart_worker, rate_limit — Huey's consumer model has no remote-control channel.

Periodic tasks

Huey's @periodic_task(crontab(...)) decorators are first-class. Pair this adapter with z4j-hueyperiodic 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_huey-1.0.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

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

z4j_huey-1.0.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for z4j_huey-1.0.0.tar.gz
Algorithm Hash digest
SHA256 42c8c378d5da702d3685c3ae8baf3e02338ae8c0a1251ff88cf99a5384bf51c4
MD5 7216d0d831780307c2297d0ea1e621f9
BLAKE2b-256 910f51e7c2fb0bf8451bb75196d61a22e5f4e65bf0d152073b988f67a83a1819

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for z4j_huey-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b655ebd011467aedb644f51f4d58d2686d0c9b0543382666d59bfc69b9c527aa
MD5 3d61935065e981d69a118ad7144fc91d
BLAKE2b-256 1420008358377e7271ba9d11ea550322b7f8ce31215d4981cd59cac6611280f0

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