cc-4105: respecting config files with regards to various time settings
This commit is contained in:
parent
ba03447946
commit
c3dde0c679
|
@ -77,7 +77,7 @@ class WatchSyncer(ReportHandler,Loggable):
|
|||
def __init__(self, signal, chunking_number = 100, timeout=15):
|
||||
self.path = '' # TODO : get rid of this attribute everywhere
|
||||
#self.signal = signal
|
||||
self.timeout = timeout
|
||||
self.timeout = float(timeout)
|
||||
self.chunking_number = chunking_number
|
||||
self.__queue = []
|
||||
# Even though we are not blocking on the http requests, we are still
|
||||
|
@ -86,7 +86,7 @@ class WatchSyncer(ReportHandler,Loggable):
|
|||
self.request_running = False
|
||||
# we don't actually use this "private" instance variable anywhere
|
||||
self.__current_thread = None
|
||||
tc = TimeoutWatcher(self, timeout)
|
||||
tc = TimeoutWatcher(self, self.timeout)
|
||||
tc.daemon = True
|
||||
tc.start()
|
||||
super(WatchSyncer, self).__init__(signal=signal)
|
||||
|
|
|
@ -61,7 +61,9 @@ except Exception as e:
|
|||
log.info("Failed to set the locale for unknown reason. Logging exception.")
|
||||
log.info(str(e))
|
||||
|
||||
watch_syncer = WatchSyncer(signal='watch')
|
||||
watch_syncer = WatchSyncer(signal='watch',
|
||||
chunking_number=config['chunking_number'],
|
||||
timeout=config['request_max_wait'])
|
||||
try:
|
||||
problem_handler = ProblemFileHandler( PathChannel(signal='badfile',path='/srv/airtime/stor/problem_files/') )
|
||||
except FailedToCreateDir as e:
|
||||
|
|
Loading…
Reference in New Issue