refs #1009 make status() synchronous

fixes-win
Natalia Serrano 2024-10-22 11:23:13 +02:00
parent 1fdeb2adeb
commit 85dd23f957
1 changed files with 3 additions and 6 deletions

View File

@ -306,7 +306,9 @@ class ogAdmClientWorker (ogLiveWorker):
logger.info ('onActivation ok')
def do_status (self, post_params):
@check_secret
def process_status (self, path, get_params, post_params, server):
logger.debug ('in process_status, path "{}" get_params "{}" post_params "{}" server "{}"'.format (path, get_params, post_params, server))
cfg = self.LeeConfiguracion()
thr_status = {}
for k in self.thread_list:
@ -322,11 +324,6 @@ class ogAdmClientWorker (ogLiveWorker):
'threads': thr_status,
}
@check_secret
def process_status (self, path, get_params, post_params, server):
logger.debug ('in process_status, path "{}" get_params "{}" post_params "{}" server "{}"'.format (path, get_params, post_params, server))
return self._long_running_job ('status', self.do_status, args=(post_params,))
@check_secret
def process_popup (self, path, get_params, post_params, server):
logger.debug ('in process_popup, path "{}" get_params "{}" post_params "{}" server "{}"'.format (path, get_params, post_params, server))