quivr/backend/worker
Stan Girard 8c7bd2ec16
feat: Update knowledge status and send notification on task success (#3320)
This commit updates the code in `celery_monitor.py` to handle task
success events. When a task with a status of `SUCCESS` is received, it
sends a notification with a success status and a corresponding
description. Additionally, if the event has a `knowledge_id`, it updates
the knowledge status to `UPLOADED`. This change improves the handling of
task success events and ensures that notifications and knowledge
statuses are properly updated.

Note: This commit message follows the established convention of starting
with a verb in the imperative form, followed by a brief description of
the changes.

# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-10-04 03:01:56 -07:00
..
diff-assistant feat: Update PDFGenerator to include logo in header (#3318) 2024-10-04 02:21:47 -07:00
quivr_worker feat: Update knowledge status and send notification on task success (#3320) 2024-10-04 03:01:56 -07:00
tests feat(assistants): mock api (#3195) 2024-09-18 03:30:48 -07:00
.gitignore feat: quivr core 0.1 (#2970) 2024-09-02 10:20:53 +02:00
.python-version feat: quivr core 0.1 (#2970) 2024-09-02 10:20:53 +02:00
Dockerfile feat: quivr core 0.1 (#2970) 2024-09-02 10:20:53 +02:00
Dockerfile.dev feat: quivr core 0.1 (#2970) 2024-09-02 10:20:53 +02:00
pyproject.toml feat(assistant): cdp (#3305) 2024-10-03 06:46:59 -07:00
README.md feat: quivr core 0.1 (#2970) 2024-09-02 10:20:53 +02:00

quivr-worker package