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 <4
  • Python 3.11+

Full per-adapter matrix at https://z4j.dev/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 z4j.dev/schedulers/huey-periodic/.

License

Apache-2.0, see LICENSE.

Links

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

z4j_hueyperiodic-1.10.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

z4j_hueyperiodic-1.10.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file z4j_hueyperiodic-1.10.0.tar.gz.

File metadata

  • Download URL: z4j_hueyperiodic-1.10.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for z4j_hueyperiodic-1.10.0.tar.gz
Algorithm Hash digest
SHA256 f3f188e1268a0f4d74f89d36c9d269a35a545805d7aab8db16d53603f0861e20
MD5 c43e86b9eaa26e24b3fef8202be6dcfc
BLAKE2b-256 76e367b3a3971449ae4d02e784ecf16f2da1a84fe0117d394f55825f2819d84d

See more details on using hashes here.

File details

Details for the file z4j_hueyperiodic-1.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for z4j_hueyperiodic-1.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8ce29b70852b12b41b05dce7a65535704a9d023574e1b1a4e6e839ad7f9c2c0
MD5 b20bbfc7c247d5a2e2f20d70345cae9b
BLAKE2b-256 4661eb63cea47463f30ce91bc606e258883cff9193498ac23c4dc6ffad34d543

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.10.0 This release

2 files

1.9.1

2 files

1.9.0

2 files

1.8.0

2 files

1.7.0

2 files

1.6.7

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.0.1

2 files

1.0.0

2 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