-
Notifications
You must be signed in to change notification settings - Fork 20
feat: add wait_for_completion method to IndexingJobs resource with sy… #49
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add dedicated error types and add tests
| poll_interval: int = 5, | ||
| timeout: int | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be float not int
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've modified this to float.
|
@bbatha can you please review the changes and test cases and share your comments on the same? |
| except TimeoutError as e: | ||
| print(f"\n⏱️ Timeout: {e}") | ||
| except RuntimeError as e: | ||
| print(f"\n❌ Error: {e}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These need to be the new types you introduced
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very close could you just make sure the example is updated with the new exception types.
I've replaced all instances of generic execution error types with the newly created ones. |
|
@bbatha can you please take a look at the new changes? I've updated the error types in the example. |
|
There's a lint issue still @areeb1501 can you make sure to run |
|
@bbatha I've run that script. Can you please check and approve the remaining workflows? |
|
The linter appears to be picking up one last type error could you make sure that is resolved? |
|
@bbatha I have made the changes. Can you please take a look at this and approve the remaining workflows? |
Fixes #41