Fix failure to exit in --fleet mode
This commit is contained in:
1 parent
0a135674e2
commit
bc8c9585a6
1 file changed
+1
-1
+1
-1
@@ -1235,7 +1235,7 @@ def run_openbench_worker(client_args):
|
|||||||
if config.workload: complete_workload(config)
|
if config.workload: complete_workload(config)
|
||||||
|
|
||||||
# Otherwise --fleet workers will exit when there is no work
|
# 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
|
# In either case, wait before requesting again
|
||||||
else: time.sleep(TIMEOUT_WORKLOAD)
|
else: time.sleep(TIMEOUT_WORKLOAD)
|
||||||
|
|||||||
Reference in new issue
Block a user