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.3.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_arqcron-1.3.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for z4j_arqcron-1.3.0.tar.gz
Algorithm Hash digest
SHA256 ca2a8912d919b6bf705124455c1090c23deaab07a93fcc8a58ae347b112fb584
MD5 33110dcc50ca63bd529faa911ea85e09
BLAKE2b-256 f7b74148f1f14d985c4d48f80c909932546d0e05b34b4017a99b765a14e7d0ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_arqcron-1.3.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.14.4

File hashes

Hashes for z4j_arqcron-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34ffca2bb4f2651d56c4de5940f3a11c2dc9924dbf093b4add33507dbd59c112
MD5 53e470c4d078f7e8bff0d3122c18474d
BLAKE2b-256 0c1972d8f9da1cb0c98c439ad438459a5965e48b9b45ebc9982f5b8fc3f22122

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