-
alaneIn the absence of raft I'm thinking something simple to decide which node should run the rollover, something like this: {_, Node} = lists:nth(1, lists:sort([ {Md5, Node} || #kz_node{node = Node, md5 = Md5, zone = Zone, kapps = Kapps} <- kz_nodes:nodes(), lists:any(fun({A, B}) -> A == <<"tasks">> end, Kapps), Zone == kz_nodes:local_zone()])).