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
Hi, Another Question There Is A Way To Know If A Job Is Running Locally Or Remotely? Like

Hi,
Another question
There is a way to know if a job is running locally or remotely?
Like execute_remotely knows ...

Note
If the 

task

 is running remotely (i.e., 

clearml-agent

 is executing it), this call is a no-op (i.e., does nothing).

  
  
Posted 3 years ago
Votes Newest

Answers 12


Does it possible to know in advance where the Agent will clone the code?
Or running a link command just before the execution of the code?

  
  
Posted 3 years ago

but again, if you use an absolute path (like /mnt/mydata ) it should work, I think

  
  
Posted 3 years ago

Yeah, the Agent clones your code to a temporary folder when executing it...

  
  
Posted 3 years ago

I have one computer with 4 GPUs and like to create a queue over the gpus..
For now the project runs without queue.
My configs holds the relative paths to the data (and it can take time to change all of them) so I prefer to work in relative paths if it possible..

  
  
Posted 3 years ago

However, if you'll use an absolute path, it should work, assuming you can make sure the same path will be mounted inside the docker - how are you using the ClearML Agent?

  
  
Posted 3 years ago

Does it possible to know in advance where the Agent will clone the code?

Not really, no

  
  
Posted 3 years ago

SuccessfulKoala55 Thanks 🙏 ..

Another related question:
My remote job fails because it cannot find the data.
FileNotFoundError: [Errno 2] No such file or directory: './data/XXXXXXXX I mounted the data to the same place relative to my project inside the docker with: extra_docker_arguments

I am using execute_remotely for enqueue the job.
I know it works locally since the job reads from ./data/XXXX before execute_remotely() and working.
but when the agent create the docker and run the job it fail.

What could it be?

  
  
Posted 3 years ago

my docker has my project on it all ready so I know where to mount. Maybe the agent moves/create copy of my project somewhere else?

  
  
Posted 3 years ago

Hi SuccessfulKoala55 ,
Dose running_remotely() will return True even if the task was enqueued from UI and not by execute_remotely ?

  
  
Posted 3 years ago

Hi CooperativeFox72 ,
Just do:
` from clearml.config import running_remotely

...

if running_remotely():
... `

  
  
Posted 3 years ago

WOW.. Thanks 💯

  
  
Posted 3 years ago

Yup, as long as it's being executed by a ClearML Agent

  
  
Posted 3 years ago
1K Views
12 Answers
3 years ago
one year ago
Tags
Similar posts