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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for z4j_huey-1.1.2.tar.gz
Algorithm Hash digest
SHA256 b131efb64cabe0bbe8b4825da447acbeb7765cd403601f07cd494d1456e9210b
MD5 840b4927169f3497ac1e076b58db70ec
BLAKE2b-256 cad0fb05e6ae3f8ed84264073676923d6d6c7a71b68098ba66db032aa9bcccc8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for z4j_huey-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9440571719bf814aaa4c712c5541162008becd64ebf7384965b1953240343b65
MD5 4c6619e94a28e41bfca6c76d95f22dd9
BLAKE2b-256 e3a5c972e206dfe274a34c877bb2502b53614834864f972777d5fdb2823e4eb3

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