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, Question Regarding

Hi,
Question regarding clearml-agent
How do we delete a daemon?
There is an option to stop a daemon service - but what is the method to delete a specific worker?

  
  
Posted 2 years ago
Votes Newest

Answers 24


yes - and removed from
clearml-agent list

  
  
Posted 2 years ago

not sure I understand
running
clearml-agent listI get
`
workers:

  • company:
    id: d1bd92...1e52b
    name: clearml
    id: clearml-server-...wdh:0
    ip: x.x.x.x
    ... `
  
  
Posted 2 years ago

Also, what version are you on?

of what?

  
  
Posted 2 years ago

When you stop a daemon service, it will stop reporting to the server. There's a timeout of 10min, after which a daemon will not be displayed in the server

  
  
Posted 2 years ago

Strange
I ran
clearml-agent daemon --stopand after 10 min I ran
clearml-agent listand I still see a worker

  
  
Posted 2 years ago

Hi OutrageousSheep60 , do you mean to make it disappear from the UI?

  
  
Posted 2 years ago

Can I assume you're running the agent (in daemon mode) on the same machine that you're running the clearml-agent daemon --stop command?

  
  
Posted 2 years ago

Do you have any other workers running?

  
  
Posted 2 years ago

My bad, I meant to ask what OS it's on 🙂

  
  
Posted 2 years ago

Can you try upgrading to the latest agent version? pip install -U clearml-agent

  
  
Posted 2 years ago

Correct

  
  
Posted 2 years ago

If you killed all processes directly, there can't be any workers on that machine. It means that these two workers are running somewhere else...

  
  
Posted 2 years ago

Can you try with blank worker_id/work_name in your clearml.conf (basically how it was before)?

You can force kill the agent using kill -9 <process_id> but clearml-agent daemon stop should work.

Also, can you verify that one of the daemons is the clearml-services daemon? This one should be running from inside a docker on your server machine (I'm guessing you're self hosting - correct?).

  
  
Posted 2 years ago

Did you wait 10-15~ mins for it to time out?

  
  
Posted 2 years ago

Also, what version are you on?

  
  
Posted 2 years ago

Also, can you verify that you still have the clearml-agent process running? top / htop

  
  
Posted 2 years ago

Well it seems that we have similar https://github.com/allegroai/clearml-agent/issues/86
currently we are just creating a new worker and on a separate queue

  
  
Posted 2 years ago

OutrageousSheep60 , what version of ClearML-Agent are you using?

  
  
Posted 2 years ago

CLEARML-AGENT version 1.2.2

  
  
Posted 2 years ago

we reinstalled the clearml-agent$clearml-agent --version CLEARML-AGENT version 1.2.3running top | grep clearmlwe can see the agent running
running clearml-agent listwe can see 2 workers
before running clearml-agent daemon --stopWe updated the clearml.conf and updated the worker_id and worker_name with the relevant name/id that we can see from clearml-agent list
and we get
Could not find a running clearml-agent instance with worker_name=<clearml_worker_name> worker_id=<clearml_worker_id:0>As we understand the --stop without any id's should stop all the workers.

waited 10 minrunning top | grep clearml we can see the clearml-agent running
running clearml-agent list we can see the 2 workers

  
  
Posted 2 years ago

Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

  
  
Posted 2 years ago

Please advise on how to remove a worker

  
  
Posted 2 years ago

by the way, if you stop a daemon in an orderly way, it should remove itself, I think...

  
  
Posted 2 years ago

updated the clearml.conf with empty worker_id/name ran

clearml-agent daemon --stop

top | grep clearmKilled the pidsran

clearml-agent list

still both of the workers are listed

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