mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-618: cloudstack UI - API request throttling - for async job actions that are not using notification widget, make frequency of calling queryAsyncJobResult API based on listCapabilities response.
This commit is contained in:
parent
2be44e916d
commit
4b7dbbe5cd
@ -847,7 +847,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
|
||||
@ -900,7 +900,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
|
||||
@ -915,7 +915,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
|
||||
@ -986,7 +986,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
|
||||
@ -1040,7 +1040,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
|
||||
@ -1058,7 +1058,7 @@
|
||||
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -1144,7 +1144,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
|
||||
@ -1214,7 +1214,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
|
||||
@ -1283,7 +1283,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
|
||||
@ -1328,7 +1328,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
|
||||
@ -1370,7 +1370,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
args.response.error(parseXMLHttpResponse(XMLHttpResponse));
|
||||
|
||||
@ -3165,7 +3165,7 @@
|
||||
alert("addNetworkServiceProvider&name=Netscaler failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -3406,7 +3406,7 @@
|
||||
alert("addNetworkServiceProvider&name=F5BigIpfailed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -3669,7 +3669,7 @@
|
||||
alert("addNetworkServiceProvider&name=JuniperSRX failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -3988,7 +3988,7 @@
|
||||
alert("addNetworkServiceProvider&name=NiciraNvp failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -6240,7 +6240,7 @@
|
||||
alert("addNetworkServiceProvider&name=Netscaler failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -6435,7 +6435,7 @@
|
||||
alert("addNetworkServiceProvider&name=F5BigIpfailed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -6646,7 +6646,7 @@
|
||||
alert("addNetworkServiceProvider&name=JuniperSRX failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -6812,7 +6812,7 @@
|
||||
alert("addNetworkServiceProvider&name=NiciraNvp failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -10222,7 +10222,7 @@
|
||||
alert("updateNetworkServiceProvider failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -10303,7 +10303,7 @@
|
||||
alert("updateNetworkServiceProvider failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -10317,7 +10317,7 @@
|
||||
alert("configureVirtualRouterElement failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -10331,7 +10331,7 @@
|
||||
alert("updatePhysicalNetwork failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@ -1433,7 +1433,7 @@
|
||||
alert("Failed to add Guest traffic type to basic zone. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
|
||||
@ -1479,7 +1479,7 @@
|
||||
alert("Failed to add Management traffic type to basic zone. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
|
||||
@ -1527,7 +1527,7 @@
|
||||
alert("Failed to add Management traffic type to basic zone. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -1574,7 +1574,7 @@
|
||||
alert("Failed to add Public traffic type to basic zone. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -1589,7 +1589,7 @@
|
||||
alert("createPhysicalNetwork failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
|
||||
}
|
||||
});
|
||||
@ -1687,7 +1687,7 @@
|
||||
alert(apiCmd + " failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -1702,7 +1702,7 @@
|
||||
alert("createPhysicalNetwork failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -1864,7 +1864,7 @@
|
||||
alert("failed to enable security group provider. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -1884,7 +1884,7 @@
|
||||
alert("failed to enable Virtual Router Provider. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -1898,7 +1898,7 @@
|
||||
alert("configureVirtualRouterElement failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -1912,7 +1912,7 @@
|
||||
alert("updatePhysicalNetwork failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -2037,7 +2037,7 @@
|
||||
alert("updateNetworkServiceProvider failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -2051,7 +2051,7 @@
|
||||
alert("configureVirtualRouterElement failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
// ***** Virtual Router ***** (end) *****
|
||||
@ -2142,7 +2142,7 @@
|
||||
alert("failed to enable VPC Virtual Router Provider. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -2156,7 +2156,7 @@
|
||||
alert("configureVirtualRouterElement failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
// ***** VPC Virtual Router ***** (end) *****
|
||||
@ -2212,7 +2212,7 @@
|
||||
alert("failed to enable security group provider. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -2226,7 +2226,7 @@
|
||||
alert("failed to enable physical network. Error: " + parseXMLHttpResponse(XMLHttpResponse));
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -2270,7 +2270,7 @@
|
||||
alert("addNetworkServiceProvider&name=Netscaler failed. Error: " + errorMsg);
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
//add netscaler provider (end)
|
||||
@ -2421,7 +2421,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
|
||||
@ -2435,7 +2435,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
|
||||
@ -2811,7 +2811,7 @@
|
||||
error('configureGuestTraffic', errorMsg, { fn: 'configureGuestTraffic', args: args });
|
||||
}
|
||||
});
|
||||
}, 3000);
|
||||
}, g_queryAsyncJobResultInterval);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user