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
Is There A Way To Limit The Number Of Jobs/Tasks That Can Run Concurrently On The

is there a way to limit the number of jobs/tasks that can run concurrently on the services queues?

  
  
Posted 2 years ago
Votes Newest

Answers 13


Hi ElegantCoyote26 , in theory no limit, but that depends on how you spined the services queue agent:
https://clear.ml/docs/latest/docs/clearml_agent/clearml_agent_daemon
See services mode :

To limit the number of simultaneous tasks run in services mode, pass the maximum number immediately after the

--services-mode

option (e.g.

--services-mode 5

)

  
  
Posted 2 years ago

I am tagging AgitatedDove14 since I sort of need an answer asap...!

  
  
Posted 2 years ago

That's realty strange - this might be a bug? What agent version are you using?

  
  
Posted 2 years ago

Can you perhaps try upgrading to the latest official release (I think it's 1.3.0)?

  
  
Posted 2 years ago

clearml-agent 1.2.3

  
  
Posted 2 years ago

Can you share the agent's log? It will create a log file the temp folder (when started in detached mode it should output the log file in stdout)

  
  
Posted 2 years ago

Same thing SuccessfulKoala55 😞

  
  
Posted 2 years ago

Sent it to you via DM!

  
  
Posted 2 years ago

i expected to see 2 tasks running, and then when completed the remaining 2 could start. Is this not the expected behavior?

  
  
Posted 2 years ago

Hi SuccessfulKoala55 I am having some issues with this. I have put a concurrency limit of 2 and I can see 3 workers running

  
  
Posted 2 years ago

Hi ElegantCoyote26 , this is actually supported in the command line options for the services agent (the agent monitoring the services queue). In the command line, instead of --services-mode use --services-mode <max-num>

  
  
Posted 2 years ago

Right, I used --services-mode 2 and it still runs more than 2 tasks simultaneously

  
  
Posted 2 years ago

in particular, I ran the agent with clearml-agent daemon --queue test-concurrency --create-queue --services-mode 2 --docker "ubuntu:20.04" --detached and enqueued 4 tasks to it that sleep 15 minutes.
I can see all 4 tasks running, see

  
  
Posted 2 years ago