From c52fa19b3064a8edde2ab5d6b25762fca64be4a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20J=C3=A4rvi?= Date: Mon, 18 Jan 2021 14:06:21 +0000 Subject: [PATCH] Remove timeout from async reports --- leasing/report/lease/rent_forecast.py | 1 - leasing/report/report_base.py | 3 --- 2 files changed, 4 deletions(-) diff --git a/leasing/report/lease/rent_forecast.py b/leasing/report/lease/rent_forecast.py index 4f7d9ac5..3276ce14 100644 --- a/leasing/report/lease/rent_forecast.py +++ b/leasing/report/lease/rent_forecast.py @@ -49,7 +49,6 @@ class RentForecastReport(AsyncReportBase): "year": {"label": _("Year")}, "rent": {"label": _("Rent"), "format": "money", "width": 13}, } - async_task_timeout = 60 * 30 # 30 minutes def get_data(self, input_data): # NOQA C901 start_date = datetime.date(year=input_data["start_year"], month=1, day=1) diff --git a/leasing/report/report_base.py b/leasing/report/report_base.py index bdc00d3e..8dc7f98e 100644 --- a/leasing/report/report_base.py +++ b/leasing/report/report_base.py @@ -283,8 +283,6 @@ def data_as_excel( # NOQA C901 'ReportBase.data_as_excel' is too complex class AsyncReportBase(ReportBase): - async_task_timeout = 60 * 30 # 30 min - @classmethod def get_output_fields_metadata(cls): return {"message": {"label": _("Message")}} @@ -322,7 +320,6 @@ def get_response(self, request): user=user, input_data=input_data, hook=self.send_report, - timeout=self.async_task_timeout, ) return Response(