From 740f90c96f6f385f0202d5fe81a02d6a5f47f928 Mon Sep 17 00:00:00 2001 From: pollfly <75068813+pollfly@users.noreply.github.com> Date: Wed, 25 Jun 2025 14:34:32 +0300 Subject: [PATCH] Add note to --use-owner-token help (#235) --- clearml_agent/interface/worker.py | 4 +++- examples/k8s_glue_example.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/clearml_agent/interface/worker.py b/clearml_agent/interface/worker.py index 6204d8c..fe37f53 100644 --- a/clearml_agent/interface/worker.py +++ b/clearml_agent/interface/worker.py @@ -141,7 +141,9 @@ DAEMON_ARGS = dict({ 'action': 'store_true', }, '--use-owner-token': { - 'help': 'Generate and use task owner token for the execution of the task', + 'help': 'Run tasks under the identity of each task\'s owner: all calls made by the task code during execution ' + 'will use the owner\'s credentials instead of the agent\'s. This feature requires the agent to use a ' + 'ClearML Enterprise Server.', 'action': 'store_true', } }, **WORKER_ARGS) diff --git a/examples/k8s_glue_example.py b/examples/k8s_glue_example.py index 6275aca..e967e86 100644 --- a/examples/k8s_glue_example.py +++ b/examples/k8s_glue_example.py @@ -86,7 +86,9 @@ def parse_args(): "--use-owner-token", action="store_true", default=False, - help="Generate and use task owner token for the execution of each task", + help="Run tasks under the identity of each task's owner: all calls made by the task code during execution will " + "use the owner's credentials instead of the agent's. This features requires the agent to use a ClearML " + "Enterprise Server.", ) parser.add_argument( "--create-queue",