예제 #1
0
    def handle(self, *args, **options):
        sys.stdout.write("Cleaning up UDS\n")
        GlobalConfig.initialize()

        # UDSs cache
        Cache.cleanUp()
        # Django caches
        cache.clear()

        sys.stdout.write("UDS Cleaned UP\n")
예제 #2
0
파일: cleanUDS.py 프로젝트: shaba/openuds
    def handle(self, *args, **options):
        sys.stdout.write("Cleaning up UDS\n")
        GlobalConfig.initialize()

        sys.stdout.write("Cache...\n")
        # UDSs cache
        Cache.cleanUp()
        # Django caches
        cache.clear()

        sys.stdout.write("Releasing schedulers...\n")
        # Release all Schedulers
        Scheduler.objects.all().update(owner_server='', state=State.FOR_EXECUTE)

        sys.stdout.write("UDS Cleaned UP\n")
예제 #3
0
파일: cleanUDS.py 프로젝트: dkmstr/openuds
    def handle(self, *args, **options):
        sys.stdout.write("Cleaning up UDS\n")
        GlobalConfig.initialize()

        sys.stdout.write("Cache...\n")
        # UDSs cache
        Cache.cleanUp()
        # Django caches
        cache.clear()

        sys.stdout.write("Releasing schedulers...\n")
        # Release all Schedulers
        Scheduler.objects.all().update(owner_server='', state=State.FOR_EXECUTE)

        sys.stdout.write("Reseting UDS Theme (setting to html5)...\n")
        # Reset theme to html5
        GlobalConfig.UDS_THEME.set('html5')

        sys.stdout.write("UDS Cleaned UP\n")
예제 #4
0
 def run(self):
     logger.debug('Starting cache cleanup')
     Cache.cleanUp()
     logger.debug('Done cache cleanup')
예제 #5
0
 def run(self):
     logger.debug('Starting cache cleanup')
     Cache.cleanUp()
     logger.debug('Done cache cleanup')