Skip to content

Commit

Permalink
fix retry
Browse files Browse the repository at this point in the history
  • Loading branch information
haraprasadj committed Dec 2, 2024
1 parent a2d5d71 commit 22de7cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/portal/discovery/discoveryQuestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = {
console.log(`Attempt ${attempt} failed. Retrying in ${delayInMs / 1000} seconds...`);
if (attempt < retries) {
await sleepMS(delayInMs); // Wait before retrying
tasks.goToPage(); // Refresh discovery page
} else {
console.error('Study not found after maximum retries.');
throw new Error('Study not found.');
Expand Down

0 comments on commit 22de7cf

Please sign in to comment.