Skip to main content

z4j scheduler adapter for Huey @periodic_task (Apache 2.0)

Project description

z4j-hueyperiodic

PyPI version Python License

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_task schedules
  • ✅ 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 NotImplementedError for 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

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_hueyperiodic-1.0.0.tar.gz (12.0 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.0.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_hueyperiodic-1.0.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for z4j_hueyperiodic-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ad1f2776456ea698882d482c8b4ef8805b782575bba6b494c5a7d38456c020b1
MD5 6ef6513afc89004ff3c4786e60798673
BLAKE2b-256 57d415be6acdd8d5c57c4c0805785acab6990a6a3b4aa64022a1e7627a8cd659

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for z4j_hueyperiodic-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8cc25ff109098efb859bd2741bf81e0ec6363fca6449c1a566cc420fc022c7a
MD5 8b11f86c60c4980e3f35f07df88c8e58
BLAKE2b-256 88ce6db1fd61da22b3a79d7ab519b9bb890af5debffaeeea2ab59a6ec2a613f3

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