mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Forcing a decent timelimit on story cleanup task.
This commit is contained in:
parent
3a3addcac9
commit
e2cf38c1e2
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ class CleanAnalytics(Task):
|
||||||
|
|
||||||
class CleanStories(Task):
|
class CleanStories(Task):
|
||||||
name = 'clean-stories'
|
name = 'clean-stories'
|
||||||
|
time_limit = 60 * 60 # 1 hour
|
||||||
|
|
||||||
def run(self, **kwargs):
|
def run(self, **kwargs):
|
||||||
days_ago = (datetime.datetime.utcnow() -
|
days_ago = (datetime.datetime.utcnow() -
|
||||||
datetime.timedelta(days=settings.DAYS_OF_UNREAD*5))
|
datetime.timedelta(days=settings.DAYS_OF_UNREAD*5))
|
||||||
|
|
Loading…
Add table
Reference in a new issue