Adding maximum number of retries for workers queue.