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

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_huey-1.3.0.tar.gz
  • Upload date:
  • Size: 23.2 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.3.0.tar.gz
Algorithm Hash digest
SHA256 2e87d2a91d2a051704a059f6f8b10633fede99909abd8810d7084bada9920e91
MD5 d05777bbf4483905f0b2ad4fec464a31
BLAKE2b-256 4a89d9c3660fee7ec405bd55c5b44c3081b7e221ecb25ab0544d40318afeca57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_huey-1.3.0-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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36b4bdd2da8539bd37465d0ff20b44b246ee92a0fd9b2aeda408934ab5d5546a
MD5 bfe81766e71dd62b46d7877ac7fc0c83
BLAKE2b-256 1db45b524be64b9921c4537ccbdf4aac1b865ea5c2b4f6fdc696335e571c54b9

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