Skip to content

Conversation

StanGirard
Copy link
Collaborator

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):

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.
Copy link

vercel bot commented Oct 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
quivrapp 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 4, 2024 10:00am

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. area: backend Related to backend functionality or under the /backend directory labels Oct 4, 2024
@StanGirard StanGirard merged commit 8c7bd2e into main Oct 4, 2024
7 of 9 checks passed
@StanGirard StanGirard deleted the fix/task-success-indent branch October 4, 2024 10:01
StanGirard added a commit that referenced this pull request Oct 7, 2024
🤖 I have created a release *beep* *boop*
---


## 0.0.320 (2024-10-07)

## What's Changed
* Enable Porter Application cdp by @porter-deployment-app in
#3306
* Enable Porter Application cdp-front by @porter-deployment-app in
#3307
* feat(assistant): cdp by @StanGirard in
#3305
* feat: Add debug logging for OCR results by @StanGirard in
#3309
* feat: Update OCR image scale for better accuracy by @StanGirard in
#3310
* feat: Update PDFGenerator to include logo in header by @StanGirard in
#3311
* feat: structlog parseable by @AmineDiro in
#3312
* Revert "feat: structlog parseable" by @StanGirard in
#3313
* feat: structlog parseable by @AmineDiro in
#3314
* Revert "feat: structlog parseable" by @StanGirard in
#3315
* feat: Update PDFGenerator to include logo in header by @StanGirard in
#3318
* feat: structlog parseable by @AmineDiro in
#3319
* feat: Update knowledge status and send notification on task success by
@StanGirard in #3320
* feat: Update text retranscription instructions by @StanGirard in
#3321
* feat: update sentry by @StanGirard in
#3326
* chore: Remove unnecessary assertion in create_modification_report
function by @StanGirard in #3329
* chore: Add NEXT_PUBLIC_INTERCOM_APP_ID to Dockerfile by @StanGirard in
#3330
* feat: Update Content Security Policy for PostHog by @StanGirard in
#3331
* fix(cdp): order naming cdc_etiquette by @StanGirard in
#3333
* fix(notifications): added a debouncing mechanism by @StanGirard in
#3327


**Full Changelog**:
v0.0.319...v0.0.320

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend Related to backend functionality or under the /backend directory size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant