Skip to main content

z4j-hueyperiodic

PyPI version Python License

The Huey @periodic_task scheduler adapter for z4j.

Surfaces registered @periodic_task decorators from your Huey app on the dashboard's Schedules page as read-only inventory.

Compatibility

  • Huey 2.4 and later, with no upper bound: Huey 2 and Huey 3 are both supported. The package's suite runs a periodic task under a real Huey consumer on Huey 2.4.0 and on Huey 3.4.0.
  • Python 3.11+

Full per-adapter matrix at https://docs.z4j.com/reference/compatibility/.

What it ships

Capability Notes
List schedules registered periodic tasks that the adapter can map
Read by registered name
Boot inventory full snapshot at agent connect; existing schedules show up without editing

This adapter is read-only (capabilities() returns {list, read}). Huey's periodic tasks are decorator-defined in your source (the @periodic_task argument is the schedule), so create / update / delete / enable / disable / trigger-now are all out of scope, those need a source edit and deploy round-trip. The dashboard greys out the buttons it can't honor.

Install

pip install z4j-huey z4j-hueyperiodic
import os

from huey import RedisHuey, crontab
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",
    hmac_secret=os.environ["Z4J_HMAC_SECRET"],
)

Pairs with

Reliability

  • The adapter reads Huey's periodic-task registry during inventory snapshots; it installs no Huey hooks and does not alter decorator runtime behavior or schedule definitions.

Documentation

Full docs at docs.z4j.com/schedulers/huey-periodic/.

License

Apache-2.0, see LICENSE.

Metadata

Release files for z4j-hueyperiodic 1.12.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for z4j-hueyperiodic 1.12.1
File Size Uploaded
z4j_hueyperiodic-1.12.1.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for z4j-hueyperiodic 1.12.1
File Interpreter ABI Platform
z4j_hueyperiodic-1.12.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.0 kB

Release files / z4j_hueyperiodic-1.12.1.tar.gz

Download URL z4j_hueyperiodic-1.12.1.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4ad9883d15498c011dab2fc8af872831301c768cfb14dcf2437b6e1a51404f89
BLAKE2b-256 checksum
How to use checksums
746591cd95159bbdcdc4697ea69e41bf7f6326d287e9ddaeb199cf3af037c668
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / z4j_hueyperiodic-1.12.1-py3-none-any.whl

Download URL z4j_hueyperiodic-1.12.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
745ab2a4f9e9d078ba4beb339a64c657b13da422f2f58fdc110c57dd32730f71
BLAKE2b-256 checksum
How to use checksums
b2c007b8897652b3ff546192210a073a01aa6dda532574407a80cbeb3f18dfa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

1.12.1 This release

2 release files

1.11.0

2 release files

1.10.0

2 release files

1.9.1

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.7

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page