sources/ldap: implement MonitoredTask

This commit is contained in:
Jens Langhammer
2020-10-16 14:17:47 +02:00
parent 482da81522
commit 4b3e0f0f96
6 changed files with 37 additions and 20 deletions

View File

@ -7,7 +7,7 @@ AUTHENTICATION_BACKENDS = [
CELERY_BEAT_SCHEDULE = {
"sources_ldap_sync": {
"task": "passbook.sources.ldap.tasks.sync",
"task": "passbook.sources.ldap.tasks.ldap_sync_all",
"schedule": crontab(minute=0), # Run every hour
"options": {"queue": "passbook_scheduled"},
}