attempts to pull API every 3 seconds until success