From f99344d194cfb2376511688664a18c9423b83c23 Mon Sep 17 00:00:00 2001 From: pollfly <75068813+pollfly@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:40:38 +0300 Subject: [PATCH] Add queue priority info to CLI help (#211) * add queue priority comment * Add --order-fairness info --------- Co-authored-by: Jake Henning <59198928+jkhenning@users.noreply.github.com> --- clearml_agent/interface/worker.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/clearml_agent/interface/worker.py b/clearml_agent/interface/worker.py index 2e2f496..6204d8c 100644 --- a/clearml_agent/interface/worker.py +++ b/clearml_agent/interface/worker.py @@ -67,7 +67,10 @@ DAEMON_ARGS = dict({ 'group': 'Docker support', }, '--queue': { - 'help': 'Queue ID(s)/Name(s) to pull tasks from (\'default\' queue)', + 'help': 'Queue ID(s)/Name(s) to pull tasks from (\'default\' queue).' + ' Note that the queue list order determines priority, with the first listed queue having the' + ' highest priority. To change this behavior, use --order-fairness to pull from each queue in a' + ' round-robin order', 'nargs': '+', 'default': tuple(), 'dest': 'queues', @@ -112,8 +115,11 @@ DAEMON_ARGS = dict({ '--dynamic-gpus': { 'help': 'Allow to dynamically allocate gpus based on queue properties, ' 'configure with \'--queue =\'.' - ' Example: \'--dynamic-gpus --gpus 0-3 --queue dual_gpus=2 single_gpu=1\'' - ' Example Opportunistic: \'--dynamic-gpus --gpus 0-3 --queue dual_gpus=2 max_quad_gpus=1-4 \'', + ' Example: \'--dynamic-gpus --gpus 0-3 --queue dual_gpus=2 single_gpu=1\'.' + ' Example Opportunistic: \'--dynamic-gpus --gpus 0-3 --queue dual_gpus=2 max_quad_gpus=1-4\'.' + ' Note that the queue list order determines priority, with the first listed queue having the' + ' highest priority. To change this behavior, use --order-fairness to pull from each queue in a' + ' round-robin order', 'action': 'store_true', }, '--uptime': {