ecs_list_tasks function

Returns a list of tasks