mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Run discover in the same thread and not in the background.
This commit is contained in:
parent
c0cbb8cc11
commit
74237b6c48
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue