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
I Have A Clearml Server Deployed. I Can See In The Docs That One Way Of Doing Things Is Through Api Calls. The Docs Mention The End Point Url But Does Not Mention The Base Url. Is There Any Example Of An Api Call Url?

I have a clearml server deployed. I can see in the docs that one way of doing things is through api calls. The docs mention the end point url but does not mention the base url. Is there any example of an api call url?

  
  
Posted 2 years ago
Votes Newest

Answers 9


Hi VexedCat68 ,
The URL is for the apiserver service, which in the default installation is in port 8008 , so if your deployment uses HTTP, the base URL is http://<hostname>:8008/

  
  
Posted 2 years ago

Yes, because you need to authenticate using credentials or a token... This is something that's missing apparently in the documentation (I'll make sure we fix it). In your code, you'll need to do something like the following:
` import requests
from requests.auth import HTTPBasicAuth

key = "<credential key for the user>"
secret = "<credential decreto fro the user>"

request_body = {
'ids': task_ids,
'status_reason': 'Tasks being spawned out of control'
}
url = ' '
x = requests.post(url, auth=HTTPBasicAuth(key, secret), json=request_body)
print(x) `

  
  
Posted 2 years ago

Thank you for the help, it works now.

  
  
Posted 2 years ago

I'm getting a response 401

  
  
Posted 2 years ago

The key and secret can be the same ones you have configured in your clearml.conf file, or you can generate another set of credentials in the profile page.

  
  
Posted 2 years ago

Yes it works, thanks for the overall help.

  
  
Posted 2 years ago

Can you take a look here?
https://clearml.slack.com/archives/CTK20V944/p1637914660103300

This is where I've mentioned the anonymous task spawn issue. I kind of want to understand what's causing the problem, if it is a problem etc

  
  
Posted 2 years ago

Is this how I'm supposed to send the request to stop all running tasks, if task_ids is the list of task ids which are still running?

  
  
Posted 2 years ago
521 Views
9 Answers
2 years ago
one year ago
Tags