mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
5 min fetches should be between 5-10 minutes.
This commit is contained in:
parent
024620b306
commit
c0cbb8cc11
1 changed files with 3 additions and 0 deletions
|
@ -2768,6 +2768,9 @@ class Feed(models.Model):
|
|||
)
|
||||
|
||||
random_factor = random.randint(0, int(total)) / 4
|
||||
if total == 5:
|
||||
# 5 min fetches should be between 5 and 10 minutes
|
||||
random_factor = random.randint(0, int(total))
|
||||
next_scheduled_update = datetime.datetime.utcnow() + datetime.timedelta(minutes=total + random_factor)
|
||||
original_min_to_decay = self.min_to_decay
|
||||
self.min_to_decay = total
|
||||
|
|
Loading…
Add table
Reference in a new issue