Skip to content

Commit

Permalink
Merge pull request #202 from City-of-Helsinki/remove-timeout-async-re…
Browse files Browse the repository at this point in the history
…ports

Remove timeout from async reports
  • Loading branch information
Tomi Järvi authored Jan 18, 2021
2 parents 48d64bd + c52fa19 commit df764a4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion leasing/report/lease/rent_forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions leasing/report/report_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")}}
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit df764a4

Please sign in to comment.