* [pbs-devel] [PATCH proxmox-backup 1/2] ui: tape/ChangerStatus: increase timeout for api calls
@ 2021-02-15 11:18 Dominik Csapak
2021-02-15 11:18 ` [pbs-devel] [PATCH proxmox-backup 2/2] ui: tape/ChangerStatus: use whole drives grid for masking on unload Dominik Csapak
2021-02-15 11:41 ` [pbs-devel] applied: [PATCH proxmox-backup 1/2] ui: tape/ChangerStatus: increase timeout for api calls Dietmar Maurer
0 siblings, 2 replies; 3+ messages in thread
From: Dominik Csapak @ 2021-02-15 11:18 UTC (permalink / raw)
To: pbs-devel
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@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [pbs-devel] [PATCH proxmox-backup 2/2] ui: tape/ChangerStatus: use whole drives grid for masking on unload
2021-02-15 11:18 [pbs-devel] [PATCH proxmox-backup 1/2] ui: tape/ChangerStatus: increase timeout for api calls Dominik Csapak
@ 2021-02-15 11:18 ` Dominik Csapak
2021-02-15 11:41 ` [pbs-devel] applied: [PATCH proxmox-backup 1/2] ui: tape/ChangerStatus: increase timeout for api calls Dietmar Maurer
1 sibling, 0 replies; 3+ messages in thread
From: Dominik Csapak @ 2021-02-15 11:18 UTC (permalink / raw)
To: pbs-devel
instead of just the tableview
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
www/tape/ChangerStatus.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/www/tape/ChangerStatus.js b/www/tape/ChangerStatus.js
index 3a9f4885..017759c7 100644
--- a/www/tape/ChangerStatus.js
+++ b/www/tape/ChangerStatus.js
@@ -134,18 +134,19 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
unload: async function(view, rI, cI, button, el, record) {
let me = this;
let drive = record.data.name;
- Proxmox.Utils.setErrorMask(view, true);
+ let driveGrid = me.lookup('drives');
+ Proxmox.Utils.setErrorMask(driveGrid, true);
try {
await PBS.Async.api2({
method: 'PUT',
timeout: 5*60*1000,
url: `/api2/extjs/tape/drive/${encodeURIComponent(drive)}/unload`,
});
- Proxmox.Utils.setErrorMask(view);
+ Proxmox.Utils.setErrorMask(driveGrid);
me.reload();
} catch (error) {
Ext.Msg.alert(gettext('Error'), error);
- Proxmox.Utils.setErrorMask(view);
+ Proxmox.Utils.setErrorMask(driveGrid);
me.reload();
}
},
--
2.20.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [pbs-devel] applied: [PATCH proxmox-backup 1/2] ui: tape/ChangerStatus: increase timeout for api calls
2021-02-15 11:18 [pbs-devel] [PATCH proxmox-backup 1/2] ui: tape/ChangerStatus: increase timeout for api calls Dominik Csapak
2021-02-15 11:18 ` [pbs-devel] [PATCH proxmox-backup 2/2] ui: tape/ChangerStatus: use whole drives grid for masking on unload Dominik Csapak
@ 2021-02-15 11:41 ` Dietmar Maurer
1 sibling, 0 replies; 3+ messages in thread
From: Dietmar Maurer @ 2021-02-15 11:41 UTC (permalink / raw)
To: Proxmox Backup Server development discussion, Dominik Csapak
applied both patches
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-15 11:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 11:18 [pbs-devel] [PATCH proxmox-backup 1/2] ui: tape/ChangerStatus: increase timeout for api calls Dominik Csapak
2021-02-15 11:18 ` [pbs-devel] [PATCH proxmox-backup 2/2] ui: tape/ChangerStatus: use whole drives grid for masking on unload Dominik Csapak
2021-02-15 11:41 ` [pbs-devel] applied: [PATCH proxmox-backup 1/2] ui: tape/ChangerStatus: increase timeout for api calls Dietmar Maurer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox