[pbs-devel] [PATCH proxmox-backup 1/1] ui: tape: transfer: increase timeout to 3 minutes

Dominik Csapak d.csapak at proxmox.com
Wed Mar 6 15:04:25 CET 2024


the default timeout of 30 seconds is too short to properly wait for a
slot transfer. Increase the timeout to a value of 3 minutes. In my
tests, it took about 60 seconds in a very basic changer to move a tape
between two slots, so triple that to account for bigger and more
complicated libraries.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/tape/ChangerStatus.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/www/tape/ChangerStatus.js b/www/tape/ChangerStatus.js
index 27c7605c..fdafc459 100644
--- a/www/tape/ChangerStatus.js
+++ b/www/tape/ChangerStatus.js
@@ -60,6 +60,9 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
 		submitText: gettext('OK'),
 		method: 'POST',
 		url: `/api2/extjs/tape/changer/${changer}/transfer`,
+		submitOptions: {
+		    timeout: 3*60*1000,
+		},
 		items: [
 		    {
 			xtype: 'displayfield',
@@ -96,6 +99,9 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
 		submitText: gettext('OK'),
 		method: 'POST',
 		url: `/api2/extjs/tape/changer/${changer}/transfer`,
+		submitOptions: {
+		    timeout: 3*60*1000,
+		},
 		items: [
 		    {
 			xtype: 'displayfield',
-- 
2.39.2





More information about the pbs-devel mailing list