From 4e7da0001d983aca351fc97b2385f6a462aa09be Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 13 Feb 2013 11:55:59 -0800 Subject: [PATCH] CLOUDSTACK-618: cloudstack UI - API request throttling - for async job action uploadCustomCertificate, make frequency of calling queryAsyncJobResult API based on listCapabilities response. --- ui/scripts/sharedFunctions.js | 2 +- ui/scripts/ui-custom/physicalResources.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js index 026089f6ea4..ad26b34196e 100644 --- a/ui/scripts/sharedFunctions.js +++ b/ui/scripts/sharedFunctions.js @@ -26,7 +26,7 @@ var g_timezone = null; var g_supportELB = null; var g_userPublicTemplateEnabled = "true"; var g_cloudstackversion = null; -var g_queryAsyncJobResultInterval = 6000; +var g_queryAsyncJobResultInterval = 3000; //keyboard keycode var keycode_Enter = 13; diff --git a/ui/scripts/ui-custom/physicalResources.js b/ui/scripts/ui-custom/physicalResources.js index a247dcfe2c2..69c0295c08d 100644 --- a/ui/scripts/ui-custom/physicalResources.js +++ b/ui/scripts/ui-custom/physicalResources.js @@ -111,7 +111,7 @@ $loading.remove(); } }); - }, 3000); + }, g_queryAsyncJobResultInterval); }, error: function(XMLHttpResponse) { cloudStack.dialog.notice({ message: 'Failed to update SSL Certificate. ' + parseXMLHttpResponse(XMLHttpResponse) });