Massive re-org to allow per-executor job specification formats and executor-specific task validation and expansion.
A few different renames to try and keep things more consistent.
This commit is contained in:
@@ -12,13 +12,13 @@ namespace fs = std::filesystem;
|
||||
using namespace daggy;
|
||||
using namespace daggy::loggers::dag_run;
|
||||
|
||||
const TaskList SAMPLE_TASKS{
|
||||
{"work_a", Task{.command{"/bin/echo", "a"}, .children{"c"}}},
|
||||
{"work_b", Task{.command{"/bin/echo", "b"}, .children{"c"}}},
|
||||
{"work_c", Task{.command{"/bin/echo", "c"}}}
|
||||
const TaskSet SAMPLE_TASKS{
|
||||
{"work_a", Task{.job{{"command", std::vector<std::string>{"/bin/echo", "a"}}}, .children{"c"}}},
|
||||
{"work_b", Task{.job{{"command", std::vector<std::string>{"/bin/echo", "b"}}}, .children{"c"}}},
|
||||
{"work_c", Task{.job{{"command", std::vector<std::string>{"/bin/echo", "c"}}}}}
|
||||
};
|
||||
|
||||
inline DAGRunID testDAGRunInit(DAGRunLogger &logger, const std::string &name, const TaskList &tasks) {
|
||||
inline DAGRunID testDAGRunInit(DAGRunLogger &logger, const std::string &name, const TaskSet &tasks) {
|
||||
auto runID = logger.startDAGRun(name, tasks);
|
||||
auto dagRun = logger.getDAGRun(runID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user