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.1.tar.gz (11.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_arqcron-1.0.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_arqcron-1.0.1.tar.gz
  • Upload date:
  • Size: 11.6 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.1.tar.gz
Algorithm Hash digest
SHA256 c8f0a599962af14a736ced1f3b8cf667f1380623b3dbc9aff6ca756c619cf62b
MD5 3e7dd6670a4768a5b568434cafd785f1
BLAKE2b-256 9c7ec48c468465e678fcfb5c6c61a8c5be2c7146a467bc5fdca3f5b82b2ba698

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_arqcron-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf18bc21d31596acc72ba05f2632c420ca5022d327a670e0c15622113d7df324
MD5 a1dc5313ce2d8f5ed0c5591a411261df
BLAKE2b-256 89942f21f97df2854284666f9b338ad5407e574b47587fa64ef6709b71ca165a

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