Code to sleep during recommendation exhaustion