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
Answered
Agent And Env Variables (This Is Almost Duplicate

Agent and env variables (this is almost duplicate thread )
I’m running simple script:

import os
from dotenv import load_dotenv
from clearml import Dataset, Task
from icecream import ic
load_dotenv()
task = Task.init(project_name = 'image-rating', task_name = 'Test env vars', output_uri=True)
var_1 = os.getenv("test_var1")
var_2 = os.getenv("test_var2")

ic(var_1)
ic(var_2)

Output:

ic| var_1: 'var1_value'
ic| var_2: 'var2_value'

In clearml.conf I have:

apply_environment: true
environment {
	test_var1: "var1_value"
	test_var2: "var2_value"
	}

And in when I’m runnig daemon I see this evn in the log:

sdk.environment.test_var1 = ****
sdk.environment.test_var2 = ****

But when I run the task with Agent it seems that it’s doesn’t have access to this envs:

ic| var_1: None
ic| var_2: None

How to setup everything to use envs?

  
  
Posted 3 months ago
Votes Newest

Answers 5


Try setting it outside of any section. Basically set an environment section by itself

  
  
Posted 3 months ago

sdk{
    environment{
                test_var1: "var1_value"
                test_var2: "var2_value"
  
  
Posted 3 months ago

And in what section are you setting the environment?

  
  
Posted 3 months ago

@<1523701070390366208:profile|CostlyOstrich36> yes, I use same clearml.conf file

  
  
Posted 3 months ago

@<1706116294329241600:profile|MinuteMouse44> , did you set this in the clearml.conf of the agent as well as the machine of the SDK?

  
  
Posted 3 months ago
208 Views
5 Answers
3 months ago
3 months ago
Tags