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
Sorry For The Barrage Of Questions. I Can'T Seem To Figure Out How Best To Get A Python Script I Need To Run On An Agent. I Have An Agent Listening To The Default Queue And I Also Have The Script That I Need To Run On The Agent. Can You Guide Me On How To

Sorry for the barrage of questions. I can't seem to figure out how best to get a python script I need to run on an agent. I have an agent listening to the default queue and I also have the script that I need to run on the agent. Can you guide me on how to get the script enqueued?

  
  
Posted 3 years ago
Votes Newest

Answers 10


I know how to enqueue in using the UI. I'm trying to do it programatically.

  
  
Posted 3 years ago

I'll try to see how to use the sdk method you just shared

  
  
Posted 3 years ago

So the api is something new for me. I've already seen the sdk. Am I misremembering sending python script and requirements to run on agent directly from the cli? Was there no such way?

  
  
Posted 3 years ago

Basically, as soon as I get the trigger that a new dataset has been published, I want to pass the dataset id to the script as an cli argument and pass the code to the agent

  
  
Posted 3 years ago

VexedCat68 , this is really simple ! 🙂

Add from clearml import Task and task=Task.init() to your script Run the script In the UI: Clone the experiment by right clicking it and selecting clone (or from the hamburger menu) Enqueue experiment in UI: Right click on the experiment and select enqueue 🙂

  
  
Posted 3 years ago

image
image

  
  
Posted 3 years ago

Found it.

https://clear.ml/docs/latest/docs/guides/clearml-task/clearml_task_tutorial/

The second example here, executing a local script. I think that was it. Thank you for the help.

  
  
Posted 3 years ago

I recall being able to pass a script to the agent using the command line along with a requirements file.

  
  
Posted 3 years ago

Glad to help 🙂

  
  
Posted 3 years ago
1K Views
10 Answers
3 years ago
8 months ago
Tags
Similar posts