* add prompt field name Signed-off-by: Jens Langhammer <jens@goauthentik.io> * remove numerical prefix Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix missing name Signed-off-by: Jens Langhammer <jens@goauthentik.io> * use text field Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add description label Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add migrate blueprint to remove old stages Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add task to remove unretrievable blueprints Signed-off-by: Jens Langhammer <jens@goauthentik.io> * lint Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix blueprint test paths Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * actually fix tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix tests even more Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix fixtures Signed-off-by: Jens Langhammer <jens@goauthentik.io> Signed-off-by: Jens Langhammer <jens@goauthentik.io>
18 lines
628 B
Python
18 lines
628 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_discover",
|
|
"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"},
|
|
},
|
|
}
|