Skip to content
Permalink
Browse files

Merge pull request #13533 from milljm/fix-dag-list-size-13532

Fix list size change while iterating
  • Loading branch information...
permcody committed Jun 10, 2019
2 parents d508c4e + 209cafc commit 4f8ea802a6b7d2d23a85c1d09ac0e82e07c88405
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/TestHarness/JobDAG.py
@@ -50,7 +50,7 @@ def getJobsAndAdvance(self):

# delete finished jobs
next_jobs = set([])
for job in self.__job_dag.ind_nodes():
for job in list(self.__job_dag.ind_nodes()):
if job.isFinished():
next_jobs.add(job)
self.__job_dag.delete_node(job)
@@ -140,7 +140,7 @@ def _doPreviouslyFailed(self, job):

def _doSkippedDependencies(self):
""" Determine which jobs in the DAG should be skipped """
for job in self.__job_dag.topological_sort():
for job in list(self.__job_dag.topological_sort()):
dep_jobs = set([])

if self.options.failed_tests:

0 comments on commit 4f8ea80

Please sign in to comment.
You can’t perform that action at this time.