From 9ba4373424151fd27475d553945fb9b516e9a29b Mon Sep 17 00:00:00 2001 From: adinhodovic Date: Mon, 3 Jun 2024 14:03:09 +0200 Subject: [PATCH] fix: increase time limit for indexing hn --- django_wtf/core/hacker_news_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_wtf/core/hacker_news_tasks.py b/django_wtf/core/hacker_news_tasks.py index 75fe4cf..ffd4e59 100644 --- a/django_wtf/core/hacker_news_tasks.py +++ b/django_wtf/core/hacker_news_tasks.py @@ -9,7 +9,7 @@ from .utils import log_action -@app.task +@app.task(soft_time_limit=30 * 60) def index_hn_submissions(): # https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty client = superrequests.Session()