Small edits

This commit is contained in:
revital 2024-03-12 10:28:56 +02:00
parent 19f1f2c04f
commit c17ff38cd5
2 changed files with 12 additions and 12 deletions

View File

@ -150,7 +150,7 @@ Checking previous session
Connect to active session id=3d38e738c5ff458a9ec465e77e19da23 [Y]/n? Connect to active session id=3d38e738c5ff458a9ec465e77e19da23 [Y]/n?
``` ```
### Shutting down a remote session ### Shutting down a remote session
On the `clearml-session` CLI terminal, enter 'shutdown' (case-insensitive). On the `clearml-session` CLI terminal, enter 'shutdown' (case-insensitive).
It will shut down the remote session, free the resource and close the CLI: It will shut down the remote session, free the resource and close the CLI:
@ -337,19 +337,19 @@ optional arguments:
--attach [ATTACH] Attach to running interactive session (default: previous session) --attach [ATTACH] Attach to running interactive session (default: previous session)
--shutdown [SHUTDOWN], -S [SHUTDOWN] --shutdown [SHUTDOWN], -S [SHUTDOWN]
Shut down an active session (default: previous session) Shut down an active session (default: previous session)
--shell Open the SSH shell session directly, notice quiting the SSH session will Not shutdown the --shell Open the SSH shell session directly, notice quitting the SSH session will Not shut down the
remote session remote session
--debugging-session DEBUGGING_SESSION --debugging-session DEBUGGING_SESSION
Pass existing Task id (experiment), create a copy of the experiment on a remote machine, Pass existing Task id (experiment), create a copy of the experiment on a remote machine,
and launch jupyter/ssh for interactive access. Example --debugging-session <task_id> and launch jupyter/ssh for interactive access. Example --debugging-session <task_id>
--queue QUEUE Select the queue to launch the interactive session on (default: previously used queue) --queue QUEUE Select the queue to launch the interactive session on (default: previously used queue)
--docker DOCKER Select the docker image to use in the interactive session on (default: previously used --docker DOCKER Select the docker image to use in the interactive session (default: previously used
docker image or `nvidia/cuda:11.6.2-runtime-ubuntu20.04`) docker image or `nvidia/cuda:11.6.2-runtime-ubuntu20.04`)
--docker-args DOCKER_ARGS --docker-args DOCKER_ARGS
Add additional arguments for the docker image to use in the interactive session on Add additional arguments for the docker image to use in the interactive session on
(default: previously used docker-args) (default: previously used docker-args)
--public-ip [true/false] --public-ip [true/false]
If True register the public IP of the remote machine. Set if running on the cloud. If True, register the public IP of the remote machine. Set if running on the cloud.
Default: false (use for local / on-premises) Default: false (use for local / on-premises)
--remote-ssh-port REMOTE_SSH_PORT --remote-ssh-port REMOTE_SSH_PORT
Set the remote ssh server port, running on the agent`s machine. (default: 10022) Set the remote ssh server port, running on the agent`s machine. (default: 10022)
@ -370,7 +370,7 @@ optional arguments:
Continue previous session (ID provided) restoring your workspace (see --store-workspace) Continue previous session (ID provided) restoring your workspace (see --store-workspace)
--store-workspace STORE_WORKSPACE --store-workspace STORE_WORKSPACE
Upload/Restore remote workspace folder. Example: `~/workspace/` will automatically Upload/Restore remote workspace folder. Example: `~/workspace/` will automatically
restore/store the *containers* folder and extract it into next the session. Use with restore/store the *containers* folder and extract it into the next session. Use with
--continue-session to continue your previous work from your exact container state --continue-session to continue your previous work from your exact container state
--git-credentials [true/false] --git-credentials [true/false]
If true, local .git-credentials file is sent to the interactive session. (default: false) If true, local .git-credentials file is sent to the interactive session. (default: false)
@ -405,7 +405,7 @@ optional arguments:
Advanced: If set, previous interactive sessions are not deleted Advanced: If set, previous interactive sessions are not deleted
--keepalive [true/false] --keepalive [true/false]
Advanced: If set, enables the transparent proxy always keeping the sockets alive. Default: Advanced: If set, enables the transparent proxy always keeping the sockets alive. Default:
False, do not use transparent socket for mitigating connection drops. False, do not use transparent sockets for mitigating connection drops.
--queue-excluded-tag [QUEUE_EXCLUDED_TAG [QUEUE_EXCLUDED_TAG ...]] --queue-excluded-tag [QUEUE_EXCLUDED_TAG [QUEUE_EXCLUDED_TAG ...]]
Advanced: Excluded queues with this specific tag from the selection Advanced: Excluded queues with this specific tag from the selection
--queue-include-tag [QUEUE_INCLUDE_TAG [QUEUE_INCLUDE_TAG ...]] --queue-include-tag [QUEUE_INCLUDE_TAG [QUEUE_INCLUDE_TAG ...]]

View File

@ -1212,7 +1212,7 @@ def setup_parser(parser):
parser.add_argument("--shutdown", "-S", default=None, const="", nargs="?", parser.add_argument("--shutdown", "-S", default=None, const="", nargs="?",
help="Shut down an active session (default: previous session)") help="Shut down an active session (default: previous session)")
parser.add_argument("--shell", action='store_true', default=None, parser.add_argument("--shell", action='store_true', default=None,
help="Open the SSH shell session directly, notice quiting the SSH session " help="Open the SSH shell session directly, notice quitting the SSH session "
"will Not shut down the remote session") "will Not shut down the remote session")
parser.add_argument('--debugging-session', type=str, default=None, parser.add_argument('--debugging-session', type=str, default=None,
help='Pass existing Task id (experiment), create a copy of the experiment on a remote machine, ' help='Pass existing Task id (experiment), create a copy of the experiment on a remote machine, '
@ -1220,14 +1220,14 @@ def setup_parser(parser):
parser.add_argument('--queue', type=str, default=None, parser.add_argument('--queue', type=str, default=None,
help='Select the queue to launch the interactive session on (default: previously used queue)') help='Select the queue to launch the interactive session on (default: previously used queue)')
parser.add_argument('--docker', type=str, default=None, parser.add_argument('--docker', type=str, default=None,
help='Select the docker image to use in the interactive session on ' help='Select the docker image to use in the interactive session '
'(default: previously used docker image or `{}`)'.format(default_docker_image)) '(default: previously used docker image or `{}`)'.format(default_docker_image))
parser.add_argument('--docker-args', type=str, default=None, parser.add_argument('--docker-args', type=str, default=None,
help='Add additional arguments for the docker image to use in the interactive session on ' help='Add additional arguments for the docker image to use in the interactive session on '
'(default: previously used docker-args)') '(default: previously used docker-args)')
parser.add_argument('--public-ip', default=None, nargs='?', const='true', metavar='true/false', parser.add_argument('--public-ip', default=None, nargs='?', const='true', metavar='true/false',
type=lambda x: (str(x).strip().lower() in ('true', 'yes')), type=lambda x: (str(x).strip().lower() in ('true', 'yes')),
help='If True register the public IP of the remote machine. Set if running on the cloud. ' help='If True, register the public IP of the remote machine. Set if running on the cloud. '
'Default: false (use for local / on-premises)') 'Default: false (use for local / on-premises)')
parser.add_argument('--remote-ssh-port', type=str, default=None, parser.add_argument('--remote-ssh-port', type=str, default=None,
help='Set the remote ssh server port, running on the agent`s machine. (default: 10022)') help='Set the remote ssh server port, running on the agent`s machine. (default: 10022)')
@ -1254,7 +1254,7 @@ def setup_parser(parser):
parser.add_argument('--store-workspace', type=str, default=None, parser.add_argument('--store-workspace', type=str, default=None,
help='Upload/Restore remote workspace folder. ' help='Upload/Restore remote workspace folder. '
'Example: `~/workspace/` will automatically restore/store the *containers* folder ' 'Example: `~/workspace/` will automatically restore/store the *containers* folder '
'and extract it into next the session. ' 'and extract it into the next session. '
'Use with --continue-session to continue your ' 'Use with --continue-session to continue your '
'previous work from your exact container state') 'previous work from your exact container state')
parser.add_argument('--git-credentials', default=False, nargs='?', const='true', metavar='true/false', parser.add_argument('--git-credentials', default=False, nargs='?', const='true', metavar='true/false',
@ -1296,7 +1296,7 @@ def setup_parser(parser):
parser.add_argument('--keepalive', default=False, nargs='?', const='true', metavar='true/false', parser.add_argument('--keepalive', default=False, nargs='?', const='true', metavar='true/false',
type=lambda x: (str(x).strip().lower() in ('true', 'yes')), type=lambda x: (str(x).strip().lower() in ('true', 'yes')),
help='Advanced: If set, enables the transparent proxy always keeping the sockets alive. ' help='Advanced: If set, enables the transparent proxy always keeping the sockets alive. '
'Default: False, do not use transparent socket for mitigating connection drops.') 'Default: False, do not use transparent sockets for mitigating connection drops.')
parser.add_argument('--queue-excluded-tag', default=None, nargs='*', parser.add_argument('--queue-excluded-tag', default=None, nargs='*',
help='Advanced: Excluded queues with this specific tag from the selection') help='Advanced: Excluded queues with this specific tag from the selection')
parser.add_argument('--queue-include-tag', default=None, nargs='*', parser.add_argument('--queue-include-tag', default=None, nargs='*',