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

INN-2864 Render "Function errored" for discovery timeline nodes which fail #1221

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jpwilliams
Copy link
Member

@jpwilliams jpwilliams commented Mar 8, 2024

Description

WIP

  • When a function with no steps errors but recovers before exhausting retries, create a separate "Function errored" node

Motivation

Type of change (choose one)

  • Chore (refactors, upgrades, etc.)
  • Bug fix (non-breaking change that fixes an issue)
  • Security fix (non-breaking change that fixes a potential vulnerability)
  • Docs
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)

Checklist

  • I've linked any associated issues to this PR.
  • I've tested my own changes.

Related

Check our Pull Request Guidelines

@jpwilliams jpwilliams self-assigned this Mar 8, 2024
Copy link

vercel bot commented Mar 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview Mar 8, 2024 2:05pm

Comment on lines +95 to +96
} else if (node.status === 'failed') {
name = 'Function errored';
Copy link
Member Author

Choose a reason for hiding this comment

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

This covers the case where a step exhausts all retries and so the error is then thrown to the function itself. This extra check will replace the "..." node with "Function errored".

@jpwilliams jpwilliams changed the title Render "Function errored" for discovery timeline nodes which fail INN-2864 Render "Function errored" for discovery timeline nodes which fail Mar 18, 2024
Copy link

linear bot commented Mar 18, 2024

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.

None yet

1 participant