Skip to content

Commit

Permalink
Merge pull request #4568 from minrk/wait-fix-again-keyerror
Browse files Browse the repository at this point in the history
don't use lazily-evaluated rc.ids in wait_for_idle
  • Loading branch information
minrk committed Nov 22, 2013
2 parents f5b49c8 + 69b0a18 commit b6dce27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/parallel/tests/test_client.py
Expand Up @@ -325,7 +325,7 @@ def _wait_for_idle(self):
# timeout 5s, polling every 100ms
qs = rc.queue_status()
for i in range(50):
if qs['unassigned'] or any(qs[eid]['tasks'] + qs[eid]['queue'] for eid in rc.ids):
if qs['unassigned'] or any(qs[eid]['tasks'] + qs[eid]['queue'] for eid in qs if eid != 'unassigned'):
time.sleep(0.1)
qs = rc.queue_status()
else:
Expand Down

0 comments on commit b6dce27

Please sign in to comment.