// Add the new request to the threads execution queue
pet.getPipeExecutionQueue().addToQueue(
new PipeExecutionRequest(pipe.getPipe(), new Date()));
if (newThread)
pet.start();
if (isSynced) {
// If synced mode was specified, wait for the thread to finish
pet.join();
} else
// Otherwise get the queue length to return in the response