Feat/meet summary v2#1346
Closed
FloChehab wants to merge 2 commits into
Closed
Conversation
We are in the process of moving meet to summary v2 routes and tasks. This commits removes code from summary and moves some code from summary to meet, which should have the responsability of this code.
|
| ) | ||
| except ValidationError as exc: | ||
| logger.error("Invalid webhook payload: %s", exc) | ||
| raise drf_exceptions.ValidationError(detail=exc) from exc |
| import os | ||
| from functools import cached_property, lru_cache | ||
| from typing import Annotated, Any, List, Literal, Mapping, Optional, Set | ||
| from typing import Annotated, List, Literal, Mapping, Optional, Set |
| from django.utils.translation import gettext_lazy as _ | ||
|
|
||
| import dj_database_url | ||
| import posthog |
Comment on lines
+221
to
+236
| # def task_started(task_id=None, task=None, args=None, **kwargs): | ||
| # """Signal handler called before task execution begins.""" | ||
| # task_args = args or [] | ||
| # metadata_manager.create(task_id, task_args) | ||
| # | ||
| # | ||
| # @signals.task_retry.connect(sender=process_audio_transcribe_summarize_v2) | ||
| # def task_retry_handler(request=None, reason=None, einfo=None, **kwargs): | ||
| # """Signal handler called when task execution retries.""" | ||
| # metadata_manager.retry(request.id) | ||
| # | ||
| # | ||
| # @signals.task_failure.connect(sender=process_audio_transcribe_summarize_v2) | ||
| # def task_failure_handler(task_id, exception=None, **kwargs): | ||
| # """Signal handler called when task execution fails permanently.""" | ||
| # metadata_manager.capture(task_id, settings.posthog_event_failure) |
| recording_metadata=payload.metadata, | ||
| task_id=job_id, | ||
| ) | ||
| except BaseException as e: |
Collaborator
Author
|
Closing in favor of #1362 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




No description provided.