this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix RestartNodes (kill nodes for now)

garrison 06abf0a6 e04f24c6

+4 -7
+4 -7
lib/workloads/restart_nodes.ex
··· 1 1 defmodule Hobbes.Workloads.RestartNodes do 2 - alias Trinity.SimProcess 2 + alias Trinity.{Sim, SimProcess} 3 3 4 4 import Hobbes.Workloads 5 5 import Hobbes.Utils ··· 7 7 @behaviour Hobbes.Workloads.Workload 8 8 9 9 defp restart_random_node(_restart_delay_ms) do 10 - # TODO 11 - #nodes = SimServer.list_nodes() 12 - nodes = [] 10 + nodes = Sim.list_nodes() 13 11 node = Enum.random(nodes) 14 12 15 - # TODO 16 - #result = SimServer.restart_node(node, restart_delay_ms) 17 - result = nil 13 + # TODO: restart instead of kill 14 + result = Sim.kill_node(node) 18 15 {node, result} 19 16 end 20 17