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

fix: make vectorizer worker robust #263

Merged
merged 2 commits into from
Dec 2, 2024
Merged

Conversation

JamesGuthrie
Copy link
Member

@JamesGuthrie JamesGuthrie commented Nov 28, 2024

These fixes were mostly done in the context of usability with docker compose. Includes the following changes:

  • Handle being killed with SIGINT or SIGTERM
  • Handle being unable to connect to the target DB
  • Handle arbitrary failures in the core of vectorizer worker
  • Add --exit-on-error parameter to force vectorizer worker to exit on error. --once implies --exit-on-error.

@JamesGuthrie JamesGuthrie requested a review from a team as a code owner November 28, 2024 14:49
Copy link
Collaborator

@jgpruitt jgpruitt left a comment

Choose a reason for hiding this comment

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

Lgtm!

@JamesGuthrie JamesGuthrie force-pushed the jg/make-vectorizer-robust branch from cd80284 to 4e16374 Compare November 28, 2024 15:34
These fixes were mostly done in the context of usability with docker
compose. Includes the following changes:

- Handle being killed with SIGINT or SIGTERM
- Handle being unable to connect to the target DB
- Handle arbitrary failures in the core of vectorizer worker
- Add `--exit-on-error` parameter to force vectorizer worker to exit on
  error. `--once` implies `--exit-on-error`.
@JamesGuthrie JamesGuthrie force-pushed the jg/make-vectorizer-robust branch from 4e16374 to b4377c8 Compare November 28, 2024 15:35
)
sys.exit(1)
else:
log.warn(
Copy link
Contributor

Choose a reason for hiding this comment

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

Why warn instead of err? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

good question. "upgraded" to error.

@JamesGuthrie JamesGuthrie force-pushed the jg/make-vectorizer-robust branch from af0cd66 to 75b51cd Compare December 2, 2024 10:17
@JamesGuthrie JamesGuthrie force-pushed the jg/make-vectorizer-robust branch from 75b51cd to a76a56f Compare December 2, 2024 10:20
@JamesGuthrie JamesGuthrie merged commit 77c0baf into main Dec 2, 2024
5 checks passed
@JamesGuthrie JamesGuthrie deleted the jg/make-vectorizer-robust branch December 2, 2024 11:29
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