* 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>
		
			
				
	
	
		
			14 lines
		
	
	
		
			378 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			378 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""Event Settings"""
 | 
						|
 | 
						|
from celery.schedules import crontab
 | 
						|
 | 
						|
from authentik.lib.utils.time import fqdn_rand
 | 
						|
 | 
						|
CELERY_BEAT_SCHEDULE = {
 | 
						|
    "events_notification_cleanup": {
 | 
						|
        "task": "authentik.events.tasks.notification_cleanup",
 | 
						|
        "schedule": crontab(minute=fqdn_rand("notification_cleanup"), hour="*/8"),
 | 
						|
        "options": {"queue": "authentik_scheduled"},
 | 
						|
    },
 | 
						|
}
 |