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.1.tar.gz (12.2 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.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_hueyperiodic-1.0.1.tar.gz
  • Upload date:
  • Size: 12.2 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.1.tar.gz
Algorithm Hash digest
SHA256 c7499e322bdc43a6e01067f695bfc7a4c1f07f746cddd7b0bd42e90537920ccf
MD5 b047766c77b2532e24d85797118a3430
BLAKE2b-256 f162dd89ed9f8910924bff18b63f068d84536f2f248b24d280521470a152a5b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for z4j_hueyperiodic-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22aad5b5a74717310ed3b2683c0258b1af822af41fe1a5a0788fdf043aa26542
MD5 d8210918df79dfef6ad240e31a07a7b9
BLAKE2b-256 4f9960afe0270734ad365e765dd0745b82a7d454128a95011f419cb9809180d6

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