1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-24 07:19:36 +02:00

Fix scheduler

This commit is contained in:
Sean Morley 2024-08-21 10:00:58 -04:00
parent 4241a1024e
commit 91ef71da7a
4 changed files with 37 additions and 9 deletions

View file

@ -7,5 +7,6 @@ class AdventuresConfig(AppConfig):
def ready(self):
if settings.SCHEDULER_AUTOSTART:
from .scheduler import start_scheduler
start_scheduler()
from django.core.management import call_command
import threading
threading.Thread(target=call_command, args=('start_scheduler',)).start()