From b0338178d759872d6419591c84630b06f0ccdf90 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 15 Feb 2021 12:18:19 +0100 Subject: [PATCH] ui: tape/ChangerStatus: increase timeout for api calls since tape commands can take a while and we do not want to change all of those to worker tasks, increase the timeout to 5 minutes Signed-off-by: Dominik Csapak --- www/tape/ChangerStatus.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/tape/ChangerStatus.js b/www/tape/ChangerStatus.js index 76677158..3a9f4885 100644 --- a/www/tape/ChangerStatus.js +++ b/www/tape/ChangerStatus.js @@ -138,6 +138,7 @@ Ext.define('PBS.TapeManagement.ChangerStatus', { try { await PBS.Async.api2({ method: 'PUT', + timeout: 5*60*1000, url: `/api2/extjs/tape/drive/${encodeURIComponent(drive)}/unload`, }); Proxmox.Utils.setErrorMask(view); @@ -156,6 +157,7 @@ Ext.define('PBS.TapeManagement.ChangerStatus', { method = method || 'GET'; Proxmox.Utils.API2Request({ url: `/api2/extjs/tape/drive/${driveid}/${command}`, + timeout: 5*60*1000, method, waitMsgTarget: view, params, @@ -384,13 +386,16 @@ Ext.define('PBS.TapeManagement.ChangerStatus', { Proxmox.Utils.setErrorMask(view, true); Proxmox.Utils.setErrorMask(me.lookup('content')); let status_fut = PBS.Async.api2({ + timeout: 5*60*1000, url: `/api2/extjs/tape/changer/${encodeURIComponent(changer)}/status`, }); let drives_fut = PBS.Async.api2({ + timeout: 5*60*1000, url: `/api2/extjs/tape/drive?changer=${encodeURIComponent(changer)}`, }); let tapes_fut = PBS.Async.api2({ + timeout: 5*60*1000, url: '/api2/extjs/tape/media/list', });