Skip to main content

A SQLModel based scheduler for Celery

Project description

Database backed Celery Beat Scheduler

Description

This is an sqlmodel based implementation of the celery beat scheduler. It persists periodic celery tasks in a SQLAlchemy-compatible database. I built this because celery-sqlalchemy-scheduler is not maintained and does not support ClockedSchedules.

Usage

You can install this package using pip. After installation, specify the database connection string in the Celery config, using the name beat_dburi.

You can run the beat instance using:

celery -A {{app_name}} beat --scheduler sqlmodel_celery_beat.schedulers:DatabaseScheduler -l INFO

Acknowledgements

During the development of this project I used the following projects as reference:

  • celery-sqlalchemy-scheduler
  • django-celery-beat
  • celerybeatredis
  • celery
  • sqlmodel

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

sqlmodel_celery_beat-0.1.3.tar.gz (10.4 kB view hashes)

Uploaded Source

Built Distribution

sqlmodel_celery_beat-0.1.3-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page