pause the queue when it is empty and pauseWhenQueueEmpty boolean attribute set to True