def get_job_statistics()

in dagify/converter/utils.py [0:0]


def get_job_statistics(job_info_list, config_task_type):
    """Function to calculate and return job_name statistics"""
    unconverted_job_name = [job['job_name'] for job in job_info_list
                            if job['task_type'] not in config_task_type]
    converted_job_name = [job['job_name'] for job in job_info_list
                          if job['task_type'] in config_task_type]
    conv_job_count = len(converted_job_name)
    non_converted_job_percent, converted_job_percent = \
        calculate_percentages(unconverted_job_name, converted_job_name)
    return unconverted_job_name, converted_job_name, \
        non_converted_job_percent, converted_job_percent, conv_job_count