Adding executor description for verbose output, adding output directory for build artifacts

This commit is contained in:
Ian Roddis
2022-01-07 14:37:06 -04:00
parent 856e5bd2f4
commit 4da78c9dd6
12 changed files with 61 additions and 3 deletions

View File

@@ -169,6 +169,11 @@ namespace daggy {
cv_.notify_one();
}
size_t size() const
{
return workers_.size();
}
private:
// need to keep track of threads, so we can join them
std::vector<std::thread> workers_;

View File

@@ -51,6 +51,8 @@ namespace daggy::executors::task {
bool stop(DAGRunID runID, const std::string &taskName) override;
std::string description() const;
void addRunner(const std::string &url);
private:

View File

@@ -31,6 +31,8 @@ namespace daggy::executors::task {
bool stop(DAGRunID runID, const std::string &taskName) override;
std::string description() const override;
private:
ThreadPool tp_;
std::mutex taskControlsGuard_;

View File

@@ -21,5 +21,7 @@ namespace daggy::executors::task {
const Task &task) override;
bool stop(DAGRunID runID, const std::string &taskName) override;
std::string description() const;
};
} // namespace daggy::executors::task

View File

@@ -25,6 +25,8 @@ namespace daggy::executors::task {
bool stop(DAGRunID runID, const std::string &taskName) override;
std::string description() const override;
private:
struct Job
{

View File

@@ -33,5 +33,8 @@ namespace daggy::executors::task {
// Kill a currently executing task. This will resolve the future.
virtual bool stop(DAGRunID runID, const std::string &taskName) = 0;
// Report a description of the executor
virtual std::string description() const = 0;
};
} // namespace daggy::executors::task