Fixing issue building dag with states where states were not properly transfered
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user