app/soc/views/models/cron.py
changeset 2396 353941216ff9
parent 2362 f211b75922ac
equal deleted inserted replaced
2395:fa81f021773c 2396:353941216ff9
    88           'priority_group': group,
    88           'priority_group': group,
    89           'status': 'waiting',
    89           'status': 'waiting',
    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, batch_size=10)
    94 
    94 
    95       retry_jobs = []
    95       retry_jobs = []
    96 
    96 
    97       for job in handler.iterate(jobs, retry_jobs):
    97       for job in handler.iterate(jobs, retry_jobs):
    98         if random.randint(0, 3) > 0:
    98         if random.randint(0, 3) > 0: