From 74237b6c4807063390cd51d1655268aa9488b477 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Tue, 14 Jan 2025 09:58:33 -0800 Subject: [PATCH] Run discover in the same thread and not in the background. --- apps/rss_feeds/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/rss_feeds/models.py b/apps/rss_feeds/models.py index 8a770c3e7..d4dd467a6 100755 --- a/apps/rss_feeds/models.py +++ b/apps/rss_feeds/models.py @@ -1692,7 +1692,9 @@ class Feed(models.Model): # If there are no premium archive subscribers, don't index stories for discover. if discover_story_ids: if self.archive_subscribers and self.archive_subscribers > 0: - IndexDiscoverStories.apply_async( + # IndexDiscoverStories.apply_async( + # Run immediately + IndexDiscoverStories.apply( kwargs=dict(story_ids=discover_story_ids), queue="discover_indexer", time_limit=settings.MAX_SECONDS_ARCHIVE_FETCH_SINGLE_FEED,