def getLastDate(ti):
    """
    Pull the date from xcom and return one task id, or multiple task IDs if they are inside a list, to be executed
    Args:
        ti: task instance argument used by Airflow to push and pull xcom data

    if has 'fetchedDate' in xcom then return job(parseJsonFile) else return job(endRun)
    """

    fetchedDate = ti.xcom_pull(key='fetchedDate', task_ids=[
                               'getLastProcessedDate'])

    if fetchedDate[0] is not None:
        return 'parseJsonFile'
    return 'endRun'