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:
@ -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:
|
||||
|
@ -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", {}),
|
||||
|
@ -50,6 +50,7 @@ def generate_local_config():
|
||||
"processes": 1,
|
||||
"threads": 1,
|
||||
"consumer_listen_timeout": "seconds=10",
|
||||
"scheduler_interval": "seconds=30",
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user