def get_status_from_msg(finished_msg):
    """Return a job status based on the finished job message.
    'complete' if the job created both output files successfully.
    'failed' otherwise.
    """
    if(len(finished_msg['upload_files']) == 2):
        return 'complete'
    else:
        return 'failed'