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

Improve error message for entity not found in flytekit cli #2713

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

pingsutw
Copy link
Member

Tracking issue

NA

Why are the changes needed?

error message is not clear for users

What changes were proposed in this pull request?

Improve error message for entity not found in flytekit cli

How was this patch tested?

pyflyte -vv run --remote flyte-example/getting_started.py wf1

Setup process

Screenshots

Before:
Screenshot 2024-08-26 at 2 21 15 PM

After:
Screenshot 2024-08-26 at 1 57 45 PM

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

NA

Docs link

NA

Signed-off-by: Kevin Su <pingsutw@apache.org>
self._entity_name = entity_name

def __str__(self):
return f"Entity '{self._entity_name}' not found in module '{self._module_name}'"
Copy link
Member

Choose a reason for hiding this comment

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

For a new flyte user, I do not think we explain what an "entity" is. I'm looking over the docs and it's hard to find a definition.

Copy link
Member Author

Choose a reason for hiding this comment

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

how about "task" or "workflow"?

Copy link
Member Author

Choose a reason for hiding this comment

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

"Task/Workflow '{self._entity_name}' not found in module"

Copy link
Member

Choose a reason for hiding this comment

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

I'm +1 on Task/Workflow.

Signed-off-by: Kevin Su <pingsutw@apache.org>
@eapolinario eapolinario merged commit 6c4665a into master Aug 28, 2024
100 of 101 checks 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.

3 participants