Exemple #1
0
def list_ready_jobs():
    ''' Returns a list of jobs that can be done now,
        as their dependencies are up-to-date. '''
    
    cq = CacheQueryDB()
    for job_id in all_jobs():
        if cq.dependencies_up_to_date(job_id):
            yield job_id