
* format files Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix pyright Signed-off-by: Jens Langhammer <jens@goauthentik.io> * revert #8367 Signed-off-by: Jens Langhammer <jens@goauthentik.io> * sigh Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
29 lines
1.1 KiB
Python
29 lines
1.1 KiB
Python
"""Outposts Settings"""
|
|
|
|
from celery.schedules import crontab
|
|
|
|
from authentik.lib.utils.time import fqdn_rand
|
|
|
|
CELERY_BEAT_SCHEDULE = {
|
|
"outposts_controller": {
|
|
"task": "authentik.outposts.tasks.outpost_controller_all",
|
|
"schedule": crontab(minute=fqdn_rand("outposts_controller"), hour="*/4"),
|
|
"options": {"queue": "authentik_scheduled"},
|
|
},
|
|
"outposts_service_connection_check": {
|
|
"task": "authentik.outposts.tasks.outpost_service_connection_monitor",
|
|
"schedule": crontab(minute="3-59/15"),
|
|
"options": {"queue": "authentik_scheduled"},
|
|
},
|
|
"outpost_token_ensurer": {
|
|
"task": "authentik.outposts.tasks.outpost_token_ensurer",
|
|
"schedule": crontab(minute=fqdn_rand("outpost_token_ensurer"), hour="*/8"),
|
|
"options": {"queue": "authentik_scheduled"},
|
|
},
|
|
"outpost_connection_discovery": {
|
|
"task": "authentik.outposts.tasks.outpost_connection_discovery",
|
|
"schedule": crontab(minute=fqdn_rand("outpost_connection_discovery"), hour="*/8"),
|
|
"options": {"queue": "authentik_scheduled"},
|
|
},
|
|
}
|