Differentiated number of results in pipeline depending on mode
Added task retry limit to queues