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
Can I Get In Python The Name Of The Person Who Created A Given Task By Calling Some Method Of A Task?

can I get in Python the name of the person who created a given task by calling some method of a task?

  
  
Posted 2 years ago
Votes Newest

Answers 14


Can you try using the users.get_all_ex endpoint?

  
  
Posted 2 years ago

SuccessfulKoala55 that worked, thanks a lot!

  
  
Posted 2 years ago

pro plan

  
  
Posted 2 years ago

thanks! is this documented? (I am wondering whether I could have avoided bothering you with my question in the first place)

  
  
Posted 2 years ago

UpsetTurkey67 I think that should work

  
  
Posted 2 years ago

I don't see such a method in the docs, but it seems so natural that decided to ask.

  
  
Posted 2 years ago

UpsetTurkey67 , I'm not sure. I know that the UI uses the API so everything shown in the UI exists in the backend. So, I just played a bit in iPython with dir(task) to see what it offers 🙂

  
  
Posted 2 years ago

I am only getting one user for some reason, even though 4 are in the system

  
  
Posted 2 years ago

UpsetTurkey67 Hi,
You can get the user id that created the task through this way:
from clearml import Task task=Task.init() #Fetching the Task object would also work user_id = task.data.user

  
  
Posted 2 years ago

👍

  
  
Posted 2 years ago

Are you using the ClearML Free Hosted SaaS?

  
  
Posted 2 years ago

task.data.user is the user id, can I get it in the text form?

  
  
Posted 2 years ago

If you don't have many users you can see which user ID fits which name. If you want to make it automatic I think you'll need to use the API endpoint users.get_all

  
  
Posted 2 years ago
1K Views
14 Answers
2 years ago
one year ago
Tags