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

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_huey-1.1.0.tar.gz
  • Upload date:
  • Size: 21.9 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.0.tar.gz
Algorithm Hash digest
SHA256 06b6ee2810890ac5dc5daef35138b886f07329d205c0e51b666c15c075b5ab2c
MD5 9f0b7ae1bc83798bbc0b4d90940752ab
BLAKE2b-256 a07c3fe15edba59e8fc09e5d78df6fa0ea1aa87458d004045db06ae8bf9471fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_huey-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97ad812f31c7b8b92a21d312042c17a15ee08f4a636d37a2b0aa26bbdc190979
MD5 8a55f4efd0d7c82ae6946f03735ae22d
BLAKE2b-256 03ed987d3c0ea6267d9e31389729093cb220b381c12e1b766d2323c815309c1b

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