forked from shaba/openuds
* Fixed Configuration Initialization to fit Django 1.7 model
* Added "Stuck removal" process to check & removel "Too long time stuck in a transitional state" user states
This commit is contained in:
@@ -38,6 +38,7 @@ from django.conf import settings
|
||||
|
||||
from django.utils.daemonize import become_daemon
|
||||
from uds.core.managers.TaskManager import TaskManager
|
||||
from uds.core.util.Config import GlobalConfig
|
||||
import logging
|
||||
import sys
|
||||
import os
|
||||
@@ -74,6 +75,8 @@ class Command(BaseCommand):
|
||||
def handle(self, *args, **options):
|
||||
logger.info("Running task manager command")
|
||||
|
||||
GlobalConfig.initialize()
|
||||
|
||||
start = options['start'] and True or False
|
||||
stop = options['stop'] and True or False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user