Skip to content

SMLTTECH/celery-beat-tenants-scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

celery-beat-tenants-scheduler

A DatabaseScheduler adaptation designed for use with django-tenants.

tenant_celery_scheduler

Task scheduler based on DatabaseScheduler. Allows configuration Celery tasks in DB for each individual tenant. Precisely tested with these types of tasks:

  • periodic
  • crontab

Installation:

  1. First, configure django-tenants and django-tenants-celery as you need.
  2. django_celery_beat must be in your TENANT_APPS
  3. Specify the scheduler in the settings.py of your project:
CELERY_BEAT_SCHEDULER = "celery_beat_tenants_scheduler.scheduler.TenantDatabaseScheduler"

or in docker-compose.yml

command: celery -A project beat -l debug --scheduler celery_beat_tenants_scheduler.scheduler.TenantDatabaseScheduler

About

A DatabaseScheduler adaptation designed for use with django-tenants.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages