app/soc/views/models/cron.py
changeset 2362 f211b75922ac
parent 2246 c29272f640b0
child 2396 353941216ff9
equal deleted inserted replaced
2361:40b0c25a5793 2362:f211b75922ac
    90           }
    90           }
    91 
    91 
    92       queryGen = lambda: job_logic.getQueryForFields(filter=filter)
    92       queryGen = lambda: job_logic.getQueryForFields(filter=filter)
    93       jobs = job_logic.entityIterator(queryGen, batchSize=10)
    93       jobs = job_logic.entityIterator(queryGen, batchSize=10)
    94 
    94 
    95       good = True
       
    96       retry_jobs = []
    95       retry_jobs = []
    97 
    96 
    98       for job in handler.iterate(jobs, retry_jobs):
    97       for job in handler.iterate(jobs, retry_jobs):
    99         if random.randint(0, 3) > 0:
    98         if random.randint(0, 3) > 0:
   100           retry_jobs.append(job)
    99           retry_jobs.append(job)