]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: tape/BackupOverview: increase timeout for media-set content
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 13 Jul 2021 07:09:14 +0000 (09:09 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Jul 2021 07:44:17 +0000 (09:44 +0200)
a single catalog can be over 100MiB, and a media-set can have multiple
catalogs to read (no technical upper limit). On slow disks, this can
take much longer than 30 seconds (the default timeout).

The real solution would be to have some kind of index only for the gui
relevant part, e.g. a table in the beginning of the catalog, or
alternatively a seperate file with that info. Until we have such a
solution increase the timeout as a stopgap.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/tape/BackupOverview.js

index 4ba53157ec93addedd8923588fba97f2d52a81de..c368640c1e562bc74f38a3dc77991628f5d5cee8 100644 (file)
@@ -125,6 +125,9 @@ Ext.define('PBS.TapeManagement.BackupOverview', {
                let list = await Proxmox.Async.api2({
                    method: 'GET',
                    url: `/api2/extjs/tape/media/content`,
+                   // a big media-set with large catalogs can take a while to load
+                   // so we give a big (5min) timeout
+                   timeout: 5*60*1000,
                    params: {
                        'media-set': media_set_uuid,
                    },