Skip to content

Commit

Permalink
Give backup page more time to render when querying
Browse files Browse the repository at this point in the history
Just to be safe that we don't run into our request timeout during table
rendering etc. if the query already took a long time.

CMK-21529

Change-Id: Ia3d5fd6e8a0026ae955e403495b4d657377fa1e0
  • Loading branch information
cellador committed Feb 26, 2025
1 parent c2944af commit 6932c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmk/gui/backup/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ def backups(self) -> _Backups:
time0 = time.time()
for ident, info in self.target.list_backups():
backups[ident] = info
if time.time() - time0 > request.request_timeout - 10:
if time.time() - time0 > request.request_timeout - 20:
return _Backups(backups, timed_out=True)
return _Backups(backups, timed_out=False)

Expand Down

0 comments on commit 6932c8d

Please sign in to comment.