Fix docstring typos (#79)

* edit doctring typo

* fix typos
This commit is contained in:
pollfly 2021-09-14 18:42:18 +03:00 committed by GitHub
parent f6f043d1ca
commit e17246d8ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -217,8 +217,8 @@
} }
# Name docker containers created by the daemon using the following string format (supported from Docker 0.6.5) # Name docker containers created by the daemon using the following string format (supported from Docker 0.6.5)
# Allowed variables are task_id, worker_id and rand_string (random lower-case letters string, up to 32 charaters) # Allowed variables are task_id, worker_id and rand_string (random lower-case letters string, up to 32 characters)
# Note: resulting name must start with an alpha-numeric character and continue with a alpha-numeric characters, # Note: resulting name must start with an alphanumeric character and continue with alphanumeric characters,
# underscores (_), dots (.) and/or dashes (-) # underscores (_), dots (.) and/or dashes (-)
#docker_container_name_format: "clearml-id-{task_id}-{rand_string:.8}" #docker_container_name_format: "clearml-id-{task_id}-{rand_string:.8}"
} }

View File

@ -1434,7 +1434,7 @@ class Worker(ServiceCommandSection):
queue_names = [q.name for q in queues] queue_names = [q.name for q in queues]
if not all('=' in q for q in queue_names): if not all('=' in q for q in queue_names):
raise ValueError("using --dynamic-gpus, --queues [{}], " raise ValueError("using --dynamic-gpus, --queue [{}], "
"queue must be in format <queue_name>=<num_gpus>".format(queue_names)) "queue must be in format <queue_name>=<num_gpus>".format(queue_names))
gpu_indexes = kwargs.get('gpus') gpu_indexes = kwargs.get('gpus')

View File

@ -104,7 +104,7 @@ DAEMON_ARGS = dict({
}, },
'--dynamic-gpus': { '--dynamic-gpus': {
'help': 'Allow to dynamically allocate gpus based on queue properties, ' 'help': 'Allow to dynamically allocate gpus based on queue properties, '
'configure with \'--queues <queue_name>=<num_gpus>\'.' 'configure with \'--queue <queue_name>=<num_gpus>\'.'
' Example: \'--dynamic-gpus --gpus 0-3 --queue dual_gpus=2 single_gpu=1\'' ' 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 Opportunistic: \'--dynamic-gpus --gpus 0-3 --queue dual_gpus=2 max_quad_gpus=1-4 \'',
'action': 'store_true', 'action': 'store_true',

View File

@ -195,9 +195,9 @@ agent {
# } # }
# Name docker containers created by the daemon using the following string format (supported from Docker 0.6.5) # Name docker containers created by the daemon using the following string format (supported from Docker 0.6.5)
# Allowed variables are task_id, worker_id and rand_string (random lower-case letters string, up to 32 charaters) # Allowed variables are task_id, worker_id and rand_string (random lower-case letters string, up to 32 characters)
# Note: resulting name must start with an alpha-numeric character and # Note: resulting name must start with an alphanumeric character and
# continue with a alpha-numeric characters, underscores (_), dots (.) and/or dashes (-) # continue with alphanumeric characters, underscores (_), dots (.) and/or dashes (-)
# docker_container_name_format: "clearml-id-{task_id}-{rand_string:.8}" # docker_container_name_format: "clearml-id-{task_id}-{rand_string:.8}"
} }