Files
authentik/authentik/core/management/commands/bootstrap_tasks.py
2022-08-03 00:05:49 +02:00

14 lines
347 B
Python

"""Run bootstrap tasks"""
from django.core.management.base import BaseCommand
from authentik.root.celery import _get_startup_tasks
class Command(BaseCommand):
"""Run bootstrap tasks to ensure certain objects are created"""
def handle(self, **options):
tasks = _get_startup_tasks()
for task in tasks:
task()