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(dashboard): run queue invocations safely #7243

Conversation

ChmaraX
Copy link
Contributor

@ChmaraX ChmaraX commented Dec 9, 2024

What changed? Why was the change needed?

API errors would result in client freezing, due to unhandled error state.

Simulating 0.33 error rate from API:

invocations.mov

Copy link

netlify bot commented Dec 9, 2024

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit eb9ea24
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/6756c81d4466190008b29e9a
😎 Deploy Preview https://deploy-preview-7243.dashboard.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 9, 2024

Deploy Preview for dashboard-v2-novu-staging ready!

Name Link
🔨 Latest commit eb9ea24
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/6756c81dbde6b4000830898e
😎 Deploy Preview https://deploy-preview-7243.dashboard-v2.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines 66 to 67
// If the invocation fails, we want to log the error and continue with the next invocation
console.error('Error processing queue item:', error);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if the console.error brings any value here.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, we can remove it.

Comment on lines 66 to 67
// If the invocation fails, we want to log the error and continue with the next invocation
console.error('Error processing queue item:', error);
Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, we can remove it.

@ChmaraX ChmaraX merged commit 6244238 into next Dec 9, 2024
28 checks passed
@ChmaraX ChmaraX deleted the nv-4986-dashboard-error-state-if-put-workflows-fail-the-page-stop branch December 9, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants