- Checkpointing work before I restart the IDE.

This commit is contained in:
Ian Roddis
2021-08-13 13:28:47 -03:00
parent d731f8b6dc
commit eb8e530f9a

View File

@@ -4,8 +4,26 @@
#include <argparse.hpp>
#include <daggy/Server.hpp>
// Add executors here
#include <daggy/executors/task/ForkingTaskExecutor.hpp>
// Add loggers here
#include <daggy/loggers/dag_run/OStreamLogger.hpp>
#include <daggy/loggers/dag_run/FileSystemLogger.hpp>
struct Options {
Pistache::Address listenAddress = "0.0.0.0";
uint16_t listenPort = 2503;
size_t webThreads = 50;
size_t dagThreads = 20;
// Pool name -> Executor Type + nWorkers
std::unordered_map<std::string, std::pair<std::string, size_t>> executors;
// Logger Config
std::vector<std::unique_ptr<daggy::loggers::dag_run::DAGRunLogger>> loggers;
};
int main(int argc, char **argv) {
argparse::ArgumentParser args("Daggy");
@@ -19,5 +37,7 @@ int main(int argc, char **argv) {
.help("Port to listen to")
.action([](const std::string &value) { return std::stoi(value); });
// Set some defaults
// daggy::Server endpoint(10);
}