aosabook/500lines

An unreasonable infinite loops in ‘ci/code/dispatcher.py’

qingyunha opened this issue · 1 comments

In function redistribute in line 148:

def redistribute(server):
    while not server.dead:
        for commit in server.pending_commits:
            print "running redistribute"
            print server.pending_commits
            dispatch_tests(server, commit)
            time.sleep(5)

the time.sleep(5) should be placed in while-loop , or it may consume all available processor time