Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Unanswered
Hi Everyone! Is There A Way To Store Env_Vars Or Secrets In Clearml When We Use Remote Agent To Run The Task? Actually I Have Too Many Envs That Are Confidential.


Hi @<1523701070390366208:profile|CostlyOstrich36>
FYI: I’m not using docker agent.

I set the env vars as you mentioned above in config. And I can see the those while starting agent using command: clearml-agent daemon --queue default

While running below code locally eg: python test.py I’m loading the env vars that is working fine.
But my question is when we clone the same task from clearml UI and send it to default queue; So can below piece of code can use those envs?
I tried sending the cloned task to agent but looks like envs are not getting set as it is picking default values. Or is there something that I’m missing.

# test.py

import os

from clearml import Task

# Initialize a ClearML task
task = Task.init(project_name="pl-layoutlm", task_name="Task1", output_uri=False)
logger = task.get_logger()

env1 = os.getenv("MY_ENV1", 'default1')
env2 = os.getenv("MY_ENV2", 'default2')
print(env1)
print(env2)

image
image

  
  
Posted 3 months ago
45 Views
0 Answers
3 months ago
3 months ago