scripts/validation/genome_download_validator.py
def check_luigi_worker_status(err_file):
    """
    Parse the lsf err file and look for a report of failed tasks

    lsf_err_file: The path to a valid lsf err file

    return: True if success, False otherwise
    """

    err_file_fp = open(err_file, 'r')

    for line in err_file:
        if line.find("failed tasks") != -1:
            err_file_fp.close()
            return False

    err_file_fp.close()

    return True

    Parse the lsf err file and look for a report of failed tasks

    lsf_err_file: The path to a valid lsf err file

    return: True if success, False otherwise
    
Parse the lsf err file and look for a report of failed tasks
lsf_err_file: The path to a valid lsf err file

True if success, False otherwise
Parse the lsf err file and look for a report of failed tasks lsf_err_file : The path to a valid lsf err file True if success False otherwise
def check_luigi_worker_status(err_file):
    err_file_fp = open(err_file, 'r')
    for line in err_file:
        if line.find("failed tasks") != -1:
            err_file_fp.close()
            return False
    err_file_fp.close()
    return True
def check_luigi_worker_status ( err_file ) : err_file_fp = open ( err_file , 'r' ) for line in err_file : if line . find ( "failed tasks" ) != - 1 : err_file_fp . close ( ) return False err_file_fp . close ( ) return True
Parse the lsf err file and look for a report of failed tasks
lsf_err_file: The path to a valid lsf err file
Parse the lsf err file and look for a report of failed tasks lsf_err_file : The path to a valid lsf err file
"""
    Parse the lsf err file and look for a report of failed tasks

    lsf_err_file: The path to a valid lsf err file

    return: True if success, False otherwise
    """
err_file