mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
testing multiple queue in sqs
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
errorHandler(error){
|
||||
this.isPolling = false;
|
||||
},
|
||||
startPolling(jobId, maxAttempts = 3) {
|
||||
startPolling(jobId, maxAttempts = 4) {
|
||||
let attempts = 0;
|
||||
const pollJobResult = () => {
|
||||
if (this.isPolling) {
|
||||
@@ -149,7 +149,7 @@
|
||||
};
|
||||
|
||||
// pollJobResult(); // Initial call
|
||||
this.pollingInterval = setInterval(pollJobResult, 10000);
|
||||
this.pollingInterval = setInterval(pollJobResult, 20000);
|
||||
},
|
||||
stopPolling() {
|
||||
clearInterval(this.pollingInterval);
|
||||
|
||||
Reference in New Issue
Block a user