Fixing issue with daggyd config parsing

This commit is contained in:
Ian Roddis
2022-01-28 13:28:29 -04:00
parent c9820c19a0
commit cbd493ec38
2 changed files with 3 additions and 1 deletions

View File

@@ -209,6 +209,7 @@ std::unique_ptr<de::TaskExecutor> executorFactory(const rj::Value &config)
"DaggyRunnerExecutor runners must be an array of urls");
exe->addRunner(runners[i].GetString());
}
return exe;
}
else if (name == "SSHTaskExecutor") {
if (!execConfig.HasMember("hosts"))
@@ -251,7 +252,7 @@ std::unique_ptr<de::TaskExecutor> executorFactory(const rj::Value &config)
return exe;
}
throw std::runtime_error("Unknown executor type: " + name);
throw std::runtime_error("Unknown executor type: >>" + name + "<<");
}
int main(int argc, char **argv)

View File

@@ -88,6 +88,7 @@ DaggyRunnerTaskExecutor::~DaggyRunnerTaskExecutor()
{
running_ = false;
monitorWorker_.join();
dispatchWorker_.join();
}
std::string DaggyRunnerTaskExecutor::description() const