run scheduler more often: TODO: move it back into the broker

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt
2025-06-20 19:30:46 +02:00
parent 13e1e44626
commit 7e7b33dba7
3 changed files with 5 additions and 0 deletions

View File

@ -162,6 +162,7 @@ worker:
consumer_listen_timeout: "seconds=30"
task_purge_interval: "days=1"
task_expiration: "days=30"
scheduler_interval: "seconds=60"
storage:
media:

View File

@ -376,6 +376,9 @@ DRAMATIQ = {
},
"scheduler_class": "authentik.tasks.schedules.scheduler.Scheduler",
"schedule_model": "authentik.tasks.schedules.models.Schedule",
"scheduler_interval": timedelta_from_string(
CONFIG.get("worker.scheduler_interval")
).total_seconds(),
"middlewares": (
("django_dramatiq_postgres.middleware.SchedulerMiddleware", {}),
("django_dramatiq_postgres.middleware.FullyQualifiedActorName", {}),

View File

@ -50,6 +50,7 @@ def generate_local_config():
"processes": 1,
"threads": 1,
"consumer_listen_timeout": "seconds=10",
"scheduler_interval": "seconds=30",
},
}