Fix failure to exit in --fleet mode

This commit is contained in:
andrew committed 2024-08-08 17:15:29 -04:00
1 parent 0a135674e2
commit bc8c9585a6
1 file changed
+1 -1
+1 -1
View File
@@ -1235,7 +1235,7 @@ def run_openbench_worker(client_args):
if config.workload: complete_workload(config)
# Otherwise --fleet workers will exit when there is no work
elif config.fleet: time.sleep(TIMEOUT_ERROR); break
elif config.fleet: time.sleep(TIMEOUT_ERROR); sys.exit()
# In either case, wait before requesting again
else: time.sleep(TIMEOUT_WORKLOAD)