Adding StopTask endpoint and endpoint documentation
This commit is contained in:
@@ -31,6 +31,7 @@ namespace daggy {
|
||||
TaskDAG run();
|
||||
void resetRunning();
|
||||
void stop(bool kill = false, bool blocking = false);
|
||||
void stopTask(const std::string &taskName);
|
||||
|
||||
private:
|
||||
void collectFinished();
|
||||
|
||||
@@ -90,6 +90,11 @@ namespace daggy {
|
||||
}
|
||||
}
|
||||
|
||||
void DAGRunner::stopTask(const std::string &taskName)
|
||||
{
|
||||
executor_.stop(runID_, taskName);
|
||||
}
|
||||
|
||||
void DAGRunner::queuePending()
|
||||
{
|
||||
if (!running_)
|
||||
|
||||
Reference in New Issue
Block a user