Skip to content

Commit 86a0a05

Browse files
author
Adrien Chauve
committed
Rename max_sleep option to max_latency
1 parent c8f3ce6 commit 86a0a05

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

mrq/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def add_parser_args(parser, config_type):
297297
help='Overwrite the local IP, to be displayed in the dashboard.')
298298

299299
parser.add_argument(
300-
'--max_sleep',
300+
'--max_latency',
301301
default=1.,
302302
type=float,
303303
action='store',

mrq/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def work_loop(self):
403403
if len(jobs) < free_pool_slots:
404404
self.status = "wait"
405405
wait_count += 1
406-
gevent.sleep(min(self.config["max_sleep"], 0.001 * wait_count))
406+
gevent.sleep(min(self.config["max_latency"], 0.001 * wait_count))
407407

408408
except StopRequested:
409409
pass

0 commit comments

Comments
 (0)