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

Invesitgate the best way to provide metadata context for why some Execution has failed #6123

Open
anna-geller opened this issue Nov 26, 2024 · 0 comments
Labels
area/backend Needs backend code changes enhancement New feature or request

Comments

@anna-geller
Copy link
Member

anna-geller commented Nov 26, 2024

We were investigating adding a function errorInfo() that would emit the following as a JSON object:

{
  "namespace": "namespace",
  "flowId": "flowId",
  "id": "id",
  "startTime": "...",
  "endTime": "...",
  "tasks": [{
    "id": "id",
    "type": "task class like Python, SQL Server Query etc"
  }],
  "state": "FAILED"
}

If the function were called from a non-FAILED execution, the tasks array would be null.

However, there were some challenges with this approach:

  • The execution is not terminated when you are in an error branch, so it is reported as RUNNING. This means we cannot limit the function to FAILED execution as we have no way to know if an execution is FAILED before it is terminated.
  • We can fetch an execution that is not up-to-date, so the function can return no failed task even if some failed task run exists

So the errorInfo() as a function doesn't work.

This will solve the problem raised here https://github.com/kestra-io/kestra-ee/issues/2264#issuecomment-2500397364

@anna-geller anna-geller added area/backend Needs backend code changes enhancement New feature or request labels Nov 26, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Issues Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend Needs backend code changes enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant