Adding executor description for verbose output, adding output directory for build artifacts
This commit is contained in:
@@ -88,6 +88,25 @@ DaggyRunnerTaskExecutor::~DaggyRunnerTaskExecutor()
|
||||
monitorWorker_.join();
|
||||
}
|
||||
|
||||
std::string DaggyRunnerTaskExecutor::description() const
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "DaggyRunnerTaskExecutor running with " << runners_.size()
|
||||
<< " runners: [";
|
||||
bool first = true;
|
||||
for (const auto &[runner, _] : runners_) {
|
||||
if (first) {
|
||||
first = false;
|
||||
}
|
||||
else {
|
||||
ss << ", ";
|
||||
}
|
||||
ss << runner;
|
||||
}
|
||||
ss << "]";
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
// Validates the job to ensure that all required values are set and are of
|
||||
// the right type,
|
||||
bool DaggyRunnerTaskExecutor::validateTaskParameters(const ConfigValues &job)
|
||||
|
||||
@@ -72,6 +72,13 @@ ForkingTaskExecutor::~ForkingTaskExecutor()
|
||||
taskControls_.clear();
|
||||
}
|
||||
|
||||
std::string ForkingTaskExecutor::description() const
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "ForkingTaskExecutor with " << tp_.size() << " threads";
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
bool ForkingTaskExecutor::stop(DAGRunID runID, const std::string &taskName)
|
||||
{
|
||||
std::string key = std::to_string(runID) + "_" + taskName;
|
||||
|
||||
@@ -2,6 +2,12 @@
|
||||
#include <daggy/executors/task/NoopTaskExecutor.hpp>
|
||||
|
||||
namespace daggy::executors::task {
|
||||
|
||||
std::string NoopTaskExecutor::description() const
|
||||
{
|
||||
return "NoopTaskExecutor";
|
||||
}
|
||||
|
||||
std::future<daggy::AttemptRecord> NoopTaskExecutor::execute(
|
||||
DAGRunID runID, const std::string &taskName, const Task &task)
|
||||
{
|
||||
|
||||
@@ -93,6 +93,11 @@ namespace daggy::executors::task {
|
||||
runningJobs_.clear();
|
||||
}
|
||||
|
||||
std::string SlurmTaskExecutor::description() const
|
||||
{
|
||||
return "SlurmTaskExecutor";
|
||||
}
|
||||
|
||||
// Validates the job to ensure that all required values are set and are of
|
||||
// the right type,
|
||||
bool SlurmTaskExecutor::validateTaskParameters(const ConfigValues &job)
|
||||
|
||||
Reference in New Issue
Block a user