testing multiple queue in sqs

This commit is contained in:
Dillon Ngo
2023-12-23 03:20:32 +08:00
parent eab11fa7f2
commit c0368bfd19
@@ -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);