mirror of
				https://github.com/stevenrobertson/cuburn.git
				synced 2025-11-04 02:10:45 -05:00 
			
		
		
		
	Avoid spurious exceptions for now
This commit is contained in:
		@ -207,8 +207,9 @@ def run_jobs(r, rev, jobs):
 | 
				
			|||||||
        else:
 | 
					        else:
 | 
				
			||||||
            print 'Got two responses for %d' % sidx
 | 
					            print 'Got two responses for %d' % sidx
 | 
				
			||||||
        if retry and retry[0] < sidx - 2 * QUEUE_LENGTH:
 | 
					        if retry and retry[0] < sidx - 2 * QUEUE_LENGTH:
 | 
				
			||||||
            # TODO: better exception
 | 
					            # TODO: ensure that this doesn't happen accidentally; raise an
 | 
				
			||||||
            raise ValueError("Double retry!")
 | 
					            # appropriate exception when it does
 | 
				
			||||||
 | 
					            print "Double retry!"
 | 
				
			||||||
        expired, waiting[:] = partition(lambda w: w < sidx - QUEUE_LENGTH,
 | 
					        expired, waiting[:] = partition(lambda w: w < sidx - QUEUE_LENGTH,
 | 
				
			||||||
                                        waiting)
 | 
					                                        waiting)
 | 
				
			||||||
        for i in expired:
 | 
					        for i in expired:
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user