Adding StopTask endpoint and endpoint documentation

This commit is contained in:
Ian Roddis
2022-02-22 10:32:31 -04:00
parent 0ee198e3e7
commit b63739c0a9
5 changed files with 231 additions and 0 deletions

View File

@@ -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();

View File

@@ -90,6 +90,11 @@ namespace daggy {
}
}
void DAGRunner::stopTask(const std::string &taskName)
{
executor_.stop(runID_, taskName);
}
void DAGRunner::queuePending()
{
if (!running_)