z4j scheduler adapter for Huey @periodic_task (Apache 2.0)
Project description
z4j-hueyperiodic
z4j scheduler adapter for Huey's built-in @periodic_task decorator.
from huey import RedisHuey, crontab
from z4j_huey import HueyEngineAdapter
from z4j_hueyperiodic import HueyPeriodicAdapter
huey = RedisHuey("myapp")
@huey.periodic_task(crontab(minute="*/5"))
def cleanup():
...
# In your z4j-bare bootstrap:
from z4j_bare import install_agent
install_agent(
engines=[HueyEngineAdapter(huey=huey)],
schedulers=[HueyPeriodicAdapter(huey=huey)],
)
Capabilities
- ✅ List
@periodic_taskschedules - ✅ Read individual schedule by id
- ❌ Create / update / delete - Huey periodic tasks are
decorator-driven (compile-time), not runtime mutable. Edit the
source and redeploy; this adapter intentionally raises
NotImplementedErrorfor those. - ❌ Trigger-now - Huey doesn't expose a "fire this periodic now" primitive; users can call the underlying task callable directly.
Read-only by design.
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
- Homepage: https://z4j.com
- Documentation: https://z4j.dev
- Source: https://github.com/z4jdev/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.3.0.tar.gz.
File metadata
- Download URL: z4j_hueyperiodic-1.3.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc42054fdc0c5bf0cea578ad63f97af4dac7e4a81298d359f6053ace5c5af1f5
|
|
| MD5 |
84c43558f07512b2eaf3f1c1899a2678
|
|
| BLAKE2b-256 |
9ae823b25ab37b9e0940d5bdf5a7b315571efbec7fab94b29fbb7a4fd98721a9
|
File details
Details for the file z4j_hueyperiodic-1.3.0-py3-none-any.whl.
File metadata
- Download URL: z4j_hueyperiodic-1.3.0-py3-none-any.whl
- Upload date:
- Size: 9.4 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 |
70231578e92e3631f76700973d1ea4eec8425faa2dc15e3d0be47be33f403d6e
|
|
| MD5 |
c658d210075f9129304430165d74c8db
|
|
| BLAKE2b-256 |
bf79075627f2f5b5598b4b3871e381a43311c7882a9fe5f52102b6b28b5d2605
|