Skip to content

Commit 4e7da00

Browse files
author
Jessica Wang
committed
CLOUDSTACK-618: cloudstack UI - API request throttling - for async job action uploadCustomCertificate, make frequency of calling queryAsyncJobResult API based on listCapabilities response.
1 parent ceb44ac commit 4e7da00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/scripts/sharedFunctions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var g_timezone = null;
2626
var g_supportELB = null;
2727
var g_userPublicTemplateEnabled = "true";
2828
var g_cloudstackversion = null;
29-
var g_queryAsyncJobResultInterval = 6000;
29+
var g_queryAsyncJobResultInterval = 3000;
3030

3131
//keyboard keycode
3232
var keycode_Enter = 13;

ui/scripts/ui-custom/physicalResources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
$loading.remove();
112112
}
113113
});
114-
}, 3000);
114+
}, g_queryAsyncJobResultInterval);
115115
},
116116
error: function(XMLHttpResponse) {
117117
cloudStack.dialog.notice({ message: 'Failed to update SSL Certificate. ' + parseXMLHttpResponse(XMLHttpResponse) });

0 commit comments

Comments
 (0)