Minor fixes, functionally working now
This commit is contained in:
1 parent
f5ce0de2ca
commit
77475b71be
2 files changed
+6
-9
No files matched your search
@@ -158,11 +158,5 @@ if __name__ == '__main__':
|
||||
print ('[NOTE] Downloading newer version of Client...')
|
||||
try_forever(download_client_files, [args], 'Failed to download Client files')
|
||||
|
||||
except Exception as err:
|
||||
print (err)
|
||||
print (type(err))
|
||||
print (type(BadVersionException()))
|
||||
break
|
||||
|
||||
except KeyboardInterrupt:
|
||||
break
|
||||
+6
-3
@@ -268,8 +268,8 @@ class ServerReporter:
|
||||
payload['machine_id'] = config.machine_id
|
||||
payload['secret'] = config.secret_token
|
||||
|
||||
target = url_join(config.server, endpoint)
|
||||
reponse = requests.post(target, data=payload, timeout=TIMEOUT_HTTP)
|
||||
target = url_join(config.server, endpoint)
|
||||
response = requests.post(target, data=payload, timeout=TIMEOUT_HTTP)
|
||||
|
||||
# Check for a json repsone, to look for Client Version Errors
|
||||
try: as_json = response.json()
|
||||
@@ -682,6 +682,10 @@ class ResultsReporter(object):
|
||||
# Signal an exit if the test ended
|
||||
return 'stop' in response
|
||||
|
||||
except BadVersionException:
|
||||
self.abort_flag.set()
|
||||
return True
|
||||
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
print ('[Note] Failed to upload results to server...')
|
||||
@@ -1370,7 +1374,6 @@ def run_openbench_worker(args):
|
||||
raise BadVersionException()
|
||||
|
||||
except Exception:
|
||||
raise BadVersionException()
|
||||
traceback.print_exc()
|
||||
time.sleep(TIMEOUT_ERROR)
|
||||
|
||||
Reference in new issue
Block a user