diff --git a/server/src/uds/core/util/Config.py b/server/src/uds/core/util/Config.py index cd73b65e..5b7034b0 100644 --- a/server/src/uds/core/util/Config.py +++ b/server/src/uds/core/util/Config.py @@ -238,10 +238,6 @@ class GlobalConfig(object): # Allowed "trusted sources" for request TRUSTED_SOURCES = Config.section(SECURITY_SECTION).value('Trusted Hosts', '*') - # How long will a service "in use" be allowed to exists once a new publication is launched, defaults to 3 days - # This is expressed in hours - KEEP_IN_USE_HOURS = Config.section(GLOBAL_SECTION).value('Keep In Use Hours', '72') - initDone = False @staticmethod diff --git a/server/src/uds/core/workers/PublicationCleaner.py b/server/src/uds/core/workers/PublicationCleaner.py index a14a1f17..056b8fc2 100644 --- a/server/src/uds/core/workers/PublicationCleaner.py +++ b/server/src/uds/core/workers/PublicationCleaner.py @@ -72,7 +72,7 @@ class PublicationCleaner(Job): pass # Now check too long "in use" services for all publications now = getSqlDatetime() - removeFrom = now - timedelta(hours = GlobalConfig.KEEP_IN_USE_HOURS.getInt(True)) + removeFrom = now - timedelta(hours = GlobalConfig.SESSION_EXPIRE_TIME.getInt(True)) for dsp in removables.filter(state_date__lt=removeFrom): dsp.deployed_service.filter(in_use=True).update(in_use=False, state_date=now) dsp.deployed_service.markOldUserServicesAsRemovables(dsp)