z4j scheduler adapter for Huey @periodic_task (Apache 2.0)
Project description
z4j-hueyperiodic
The Huey @periodic_task scheduler adapter for z4j.
Surfaces every @periodic_task decorator your Huey app registers on
the dashboard's Schedules page, read, enable, disable, trigger.
What it ships
| Capability | Notes |
|---|---|
| List schedules | every @periodic_task-decorated function in the registry |
| Read | by registered name |
| Enable / disable | via consumer-side gating |
| Trigger now | enqueues the task immediately, outside the schedule |
| Boot inventory | full snapshot at agent connect; existing schedules show up without editing |
@periodic_task schedules are defined in code (decorator argument), so
create / update / delete are intentionally out of scope, those need a
deploy round-trip. The dashboard hides buttons it can't honor.
Install
pip install z4j-huey z4j-hueyperiodic
from huey import RedisHuey
from z4j_bare import install_agent
from z4j_huey import HueyEngineAdapter
from z4j_hueyperiodic import HueyPeriodicAdapter
huey = RedisHuey("myapp", url="redis://localhost")
@huey.periodic_task(crontab(minute="*/5"))
def cleanup():
...
install_agent(
engines=[HueyEngineAdapter(huey=huey)],
schedulers=[HueyPeriodicAdapter(huey=huey)],
brain_url="https://brain.example.com",
token="z4j_agent_...",
project_id="my-project",
)
Pairs with
z4j-huey, engine adapter
Reliability
- No exception from the adapter ever propagates back into Huey consumers or your task code.
- The decorator's runtime behavior is unchanged, z4j observes through Huey's standard hooks.
Documentation
Full docs at z4j.dev/schedulers/huey-periodic/.
License
Apache-2.0, see LICENSE.
Links
- Homepage: https://z4j.com
- Documentation: https://z4j.dev
- PyPI: https://pypi.org/project/z4j-hueyperiodic/
- Issues: https://github.com/z4jdev/z4j-hueyperiodic/issues
- Changelog: CHANGELOG.md
- Security: security@z4j.com (see SECURITY.md)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file z4j_hueyperiodic-1.4.0.tar.gz.
File metadata
- Download URL: z4j_hueyperiodic-1.4.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1df08e95f3142e9527d04b7d47cd4383ab7b0f1e50b61f27af86e08540cdb5d6
|
|
| MD5 |
80a4ba7b9cc302cc187a1069cfdf0dbb
|
|
| BLAKE2b-256 |
0236085ea4c21664bfed741c5acbbc0fcf6c3afb5b835ff247b483f22bb4f3e4
|
File details
Details for the file z4j_hueyperiodic-1.4.0-py3-none-any.whl.
File metadata
- Download URL: z4j_hueyperiodic-1.4.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7166c3dd265d6a93daef43ea42b06068b409280a68495d3d481ab59a392aa479
|
|
| MD5 |
bfa63743945c84408a6b340f1e5ebd2f
|
|
| BLAKE2b-256 |
a868c76d386fa9d9eb8e811bd47b72240100e4ba05a39aa5913ffdfc2add5dae
|