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, I Am Following The Programmatic Orchestration Example Here:

Hi, I am following the programmatic orchestration example here: https://clear.ml/docs/latest/docs/guides/automation/task_piping .

My question is, when I setup the toy base task (eg https://github.com/allegroai/clearml/blob/master/examples/automation/toy_base_task.py ), how can I just "define" it on my local PC, but not actually run it. I want to do this since I want to run it on my EC2 instances using autoscaler.

Currently, as my local machine is windows and EC2 is Linux, I do:
if sys.platform != 'win32': <run task...> else: sys.exit(0)but I assume there are more elegant solutions....

  
  
Posted 2 years ago
Votes Newest

Answers 2


Hi CloudySwallow27

how can I just "define" it on my local PC, but not actually run it.

You can use the clearml-task CLI
https://clear.ml/docs/latest/docs/apps/clearml_task#how-does-clearml-task-work
Or you can add the following line in your code, that will cause the execution to stop, and to continue on a remote machine (basically creating the Task and pushing it into an execution queue, or just aborting it)
task = Task.init(...) task.execute_remotely()https://clear.ml/docs/latest/docs/references/sdk/task#execute_remotely

  
  
Posted 2 years ago

Thanks this worked!

  
  
Posted 2 years ago
992 Views
2 Answers
2 years ago
one year ago
Tags
Similar posts