-
Notifications
You must be signed in to change notification settings - Fork 527
NO-SNOW: Add core library import #2657
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
| # Load the core library - failures are captured in core_loader and don't prevent module loading | ||
| try: | ||
| core_loader.load() | ||
| except Exception: | ||
| # Silently continue if core loading fails - the error is already captured in core_loader | ||
| # This ensures the connector module loads even if the minicore library is unavailable | ||
| pass | ||
|
|
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.
This is probably redundant because load method is already big try / except
sfc-gh-pczajka
left a comment
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.
Approved with small non-blocking comments
| if self._is_core_disabled(): | ||
| self._error = "mini-core-disabled" | ||
| return | ||
| self._error = "still-loading" |
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.
Could we wrap it into an error / change class definition to Exception | str | None?
| def load(self): | ||
| """Spawn a separate thread to load the minicore library (non-blocking).""" | ||
| if self._is_core_disabled(): | ||
| self._error = "mini-core-disabled" |
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.
Could we wrap it into an error / change class definition to Exception | str | None?
Please answer these questions before submitting your pull requests. Thanks!
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #NNNN
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
Please write a short description of how your code change solves the related issue.
(Optional) PR for stored-proc connector: