def task_status(task_row):
    """ Determine whether a task has been finished, started or created """
    if task_row['exec_time']:
        return 'Completed'
    elif task_row['start_time']:
        return 'Run'
    else:
        return 'In Queue'