insights: adjust retry configuration for queries
Created by: CristinaBirkel
Fixes issue: #24440 (closed)
This is intended to make the queue/queries more resilient. I also cleaned up some comments. (The one I deleted seemed like it wasn't really adding anything to the code, but let me know if you disagree!)