The logic is slightly off. Shouldn't it be `.filter(x => x.getHost == host || x.getId == id || host == "*")`. Read: kill all tasks on this host or kill task with this id or kill all tasks if host == "*"