#170·500lines

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

Author: qingyunhaCreated Dec 8, 2015Updated Sep 13, 2020

In function redistribute in line 148:

python
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