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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

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!

projects/pgai/pgai/cli.py Outdated Show resolved Hide resolved
projects/pgai/pgai/cli.py Show resolved Hide resolved
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`.
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.

2 participants