Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/DO-1610: address prematured completion of recache requests #1299

Merged
merged 5 commits into from
Feb 8, 2024

Conversation

crispy101
Copy link
Contributor

Description of the proposed changes

  • Use for instead of forEach in order to ensure each of the URLs are requested before the lambda funtion completes its execution
  • Add more meaningful logs

Screenshots (if applicable)

Other solutions considered (if any)

Notes to PR author

⚠️ Please make sure the changes adhere to the guidelines mentioned here

Notes to reviewers

🛈 When you've finished leaving feedback, please add a final comment to the PR tagging the author, letting them know that you have finished leaving feedback

});
console.log(
`Response data: ${JSON.stringify(
res.data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logging the entire response data is going to produce some pretty big logs. Same with headers. I don't think we need that all the time. Can we just log the status code and the url fetched?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Yep, updated. We, however, may want to have a debugging flag in an update later.

@crispy101 crispy101 merged commit b5a1461 into main Feb 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants