36 lines
948 B
C++
36 lines
948 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include <variant>
|
|
#include <unordered_map>
|
|
|
|
#include <rapidjson/document.h>
|
|
|
|
#include "daggy/loggers/dag_run/DAGLoggerBase.hpp"
|
|
#include "daggy/executors/task/TaskExecutor.hpp"
|
|
#include "Task.hpp"
|
|
#include "Defines.hpp"
|
|
#include "DAG.hpp"
|
|
|
|
namespace daggy {
|
|
std::vector<Command> expandCommands(const std::vector<std::string> &command, const ParameterValues ¶meters);
|
|
|
|
DAG buildDAGFromTasks(const std::vector<Task> &tasks);
|
|
|
|
// Blocking call
|
|
std::vector<AttemptRecord>
|
|
runTask(DAGRunID runID,
|
|
TaskID taskID,
|
|
const Task &task,
|
|
executors::task::TaskExecutor &executor,
|
|
loggers::dag_run::DAGLoggerBase &logger);
|
|
|
|
void runDAG(DAGRunID runID,
|
|
std::vector<Task> tasks,
|
|
executors::task::TaskExecutor &executor,
|
|
loggers::dag_run::DAGLoggerBase &logger,
|
|
DAG dag);
|
|
|
|
}
|