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

Uploaded Python 3

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

Hashes for z4j_hueyperiodic-1.3.0.tar.gz
Algorithm Hash digest
SHA256 dc42054fdc0c5bf0cea578ad63f97af4dac7e4a81298d359f6053ace5c5af1f5
MD5 84c43558f07512b2eaf3f1c1899a2678
BLAKE2b-256 9ae823b25ab37b9e0940d5bdf5a7b315571efbec7fab94b29fbb7a4fd98721a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for z4j_hueyperiodic-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70231578e92e3631f76700973d1ea4eec8425faa2dc15e3d0be47be33f403d6e
MD5 c658d210075f9129304430165d74c8db
BLAKE2b-256 bf79075627f2f5b5598b4b3871e381a43311c7882a9fe5f52102b6b28b5d2605

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