Skip to main content

z4j scheduler adapter for arq cron jobs (Apache 2.0)

Project description

z4j-arqcron

PyPI version Python License

Read-only scheduler adapter for arq's cron_jobs.

from arq import cron
from z4j_arq import ArqEngineAdapter
from z4j_arqcron import ArqCronAdapter

cron_jobs = [
    cron(send_summary, hour=3, minute=0, name="daily_summary"),
]

# In your z4j-bare bootstrap:
from z4j_bare import install_agent
install_agent(
    engines=[ArqEngineAdapter(...)],
    schedulers=[ArqCronAdapter(cron_jobs=cron_jobs)],
)

arq cron jobs are registered statically in WorkerSettings.cron_jobs, so this adapter is read-only by design (same constraints as z4j-hueyperiodic).

Apache 2.0.

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_arqcron-1.0.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

z4j_arqcron-1.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for z4j_arqcron-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cb1766406f7148bf2dc230931a73289d91a5a0d596c46f56ccbade7aec3a7d95
MD5 46554e227e21b06e2c6b8aa9f27a1270
BLAKE2b-256 2e671bcd7320f3a9164aadbc4f0c9fa18e54a4a4f76c2c79eceaf1bc92dddd2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_arqcron-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for z4j_arqcron-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b4f117486e1f1c3bac787ec5ad6b2e3fb7e43dcff8b7ca40b956b9692ada779
MD5 b4c77887e3feb52a3d4f36846a9a7cd5
BLAKE2b-256 b166d7b0c70cf8fa488e50a8830736620c156e880dfb89cc530b918b2e2b4c7d

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