
* 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>
19 lines
630 B
Python
19 lines
630 B
Python
"""blueprint Settings"""
|
|
|
|
from celery.schedules import crontab
|
|
|
|
from authentik.lib.utils.time import fqdn_rand
|
|
|
|
CELERY_BEAT_SCHEDULE = {
|
|
"blueprints_v1_discover": {
|
|
"task": "authentik.blueprints.v1.tasks.blueprints_discovery",
|
|
"schedule": crontab(minute=fqdn_rand("blueprints_v1_discover"), hour="*"),
|
|
"options": {"queue": "authentik_scheduled"},
|
|
},
|
|
"blueprints_v1_cleanup": {
|
|
"task": "authentik.blueprints.v1.tasks.clear_failed_blueprints",
|
|
"schedule": crontab(minute=fqdn_rand("blueprints_v1_cleanup"), hour="*"),
|
|
"options": {"queue": "authentik_scheduled"},
|
|
},
|
|
}
|