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 There! Some Background Info Before I Put Forward My Question: I'M Writing-Up A Small Script To Help Me Manage My Tasks. Specifically I Often Need To Abort (And Archive) A

Hi there!
Some background info before I put forward my question:
I'm writing-up a small script to help me manage my tasks. Specifically I often need to abort (and archive) a very large number of running and pending tasks, and doing that kind of thing via the web-interface by clicking away one-by-one is not a viable solution.
So, I've gotten into the habit of copying a list of relevant tags into a list, and then task-querying those and dealing with them accordingly. But that's often also a messy business (copying tags one by one...).
What I really need, is to query by project name instead of controller tags. But this obviously returns a list of all tasks under said project, including archived tasks, and what's more - the query result is limited to 500 results. So even if I wanted to just fetch everything under the project (which I don't), and then filter with a list comprehension to obtain only non-archived tasks, I'd still need to overcome the 500 limit...
Thus we arrive at my actual question:
Is it possible to fetch a list of tasks via Task.get_tasks, with a task-filter to the effect of {'archived': False}, or anything similar?
Thanks!

  
  
Posted 3 years ago
Votes Newest

Answers 3


Hi StickyMonkey98

very

 large number of running and pending tasks, and doing that kind of thing via the web-interface by clicking away one-by-one is not a viable solution.

Bulk operations are now supported , upgrade the clearml-server to 1.0.2 🙂

Is it possible to fetch a list of tasks via Task.get_tasks,

Sure:
Task.get_tasks(project_name='example', task_filter=dict(system_tags=['-archived']))

  
  
Posted 3 years ago

Fantastic. Worked like a charm. Thanks a million!

  
  
Posted 3 years ago

Glad to hear 🙂

  
  
Posted 3 years ago
665 Views
3 Answers
3 years ago
one year ago
Tags
Similar posts