We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df1a4d4 commit 68bb32eCopy full SHA for 68bb32e
backend/scraping/instagram_feed.py
@@ -467,6 +467,8 @@ def check_post_limit():
467
source_url,
468
added_to_db=added_to_db or "unknown",
469
)
470
+ if added_to_db is not None:
471
+ time.sleep(random.uniform(30, 60))
472
473
except Exception as e:
474
logger.error(
@@ -488,7 +490,6 @@ def check_post_limit():
488
490
break
489
491
if check_post_limit():
492
- time.sleep(random.uniform(30, 60))
493
494
if not termination_reason:
495
termination_reason = "no_more_posts"
0 commit comments