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
I'M Running Multiple Trains-Agents On One Bfg-9000 Machine. Is There A Way To Stop Only One Agent?

I'm running multiple trains-agents on one BFG-9000 machine.
Is there a way to stop only one agent? trains-agent daemon --stop is my only option right now, but it stops all of them

  
  
Posted 3 years ago
Votes Newest

Answers 5


you can use pgrep -af "trains-agent"

  
  
Posted 3 years ago

Thanks Alon

  
  
Posted 3 years ago

its like ps + grep together 😄

  
  
Posted 3 years ago

Hi WackyRabbit7

You can get all the agents PIDs by
ps -ef | grep "trains-agent"and kill -9 <pid> for the requested agent.

You can also pkill -f "trains-agent --gpus 0"   - This will kill a process that started trains-agent --gpus 0 .
Notice it matches the cmd pattern so it has to match the way you executed the trains-agent. This can be checked with  ps -Af | grep trains-agent

  
  
Posted 3 years ago

let me repay you with a nice trick

  
  
Posted 3 years ago