[pbs-devel] [PATCH proxmox-backup 1/2] ui: tape/ChangerStatus: increase timeout for api calls
Dominik Csapak
d.csapak at proxmox.com
Mon Feb 15 12:18:19 CET 2021
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 <d.csapak at proxmox.com>
---
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',
});
--
2.20.1
More information about the pbs-devel
mailing list