Adding executor description for verbose output, adding output directory for build artifacts
This commit is contained in:
@@ -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_;
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user