'Finds the task in the task list which matches the UUID of the given task.
The executor engine serializes/deserializes objects as they are passed through
the different processes, and not all data structures are preserved. This method
allows us to find the original task passed into the executor engine.'

def get_original_task(self, host, task):

    if isinstance(task, Task):
        the_uuid = task._uuid
    else:
        the_uuid = task
    return self._task_uuid_cache.get(the_uuid, None)
