Fixing issue building dag with states where states were not properly transfered

This commit is contained in:
Ian Roddis
2022-02-16 14:33:04 -04:00
parent 3866332e77
commit 0ee198e3e7
2 changed files with 4 additions and 15 deletions

View File

@@ -121,7 +121,7 @@ namespace daggy {
void DAG<K, V>::resetRunning()
{
for (auto &v : vertices_) {
if (v.state != +RunState::RUNNING)
if (v.state == +RunState::COMPLETED)
continue;
v.state = RunState::QUEUED;
}