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 All! Is There A Function/Command That Returns Number Of Tasks In A Queue?

Hi all!
Is there a function/command that returns number of tasks in a queue?

  
  
Posted one year ago
Votes Newest

Answers 7


One agent is assigned to one queue ; so he will execute one task at the time, sequentially, according to their rank in the queue. But you can create as many queues as you want, and assign an agent for each one. You simply fire each agent from a terminal, with a command like :
clearml-agent daemon --queue my_queue_i
if you have more than one gpu, you can also choose for each agent which gpu(s) to allocate

  
  
Posted one year ago

Hi David
So I want to execute more than two tasks simultaneously using an agent
To my understanding one agent can execute only one task at a time and queues the remaining.
So what I want to achieve is to spin up N agents of there are N tasks

  
  
Posted one year ago

hi TenderCoyote78
can you please give some more precision about what you intend to achieve ? I am afraid not to well understand your question

  
  
Posted one year ago

What's the best way to do it?

  
  
Posted one year ago

Also im looking to start new clearly agents based on the number of tasks

  
  
Posted one year ago

Very helpful this was thank you!

  
  
Posted one year ago

Hi TenderCoyote78 ,

You can get it with the APIClient

from clearml.backend_api.session.client import APIClient api_client = APIClient() tasks_in_queue = api_client.queues.get_by_id(<queue_id>).entries

  
  
Posted one year ago
604 Views
7 Answers
one year ago
one year ago
Tags
Similar posts