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

Rendre asynchrone la suppression de séminaire #112

Open
azmeuk opened this issue Mar 15, 2024 · 0 comments
Open

Rendre asynchrone la suppression de séminaire #112

azmeuk opened this issue Mar 15, 2024 · 0 comments
Labels
performances En rapport avec les performances ou la tenue de charge de l'application

Comments

@azmeuk
Copy link
Collaborator

azmeuk commented Mar 15, 2024

Lorsque l'on supprime un séminaire, une requête synchrone est envoyée à BBB :

def delete_recordings(self, recording_ids):
return self.bbb.delete_recordings(recording_ids)
def delete_all_recordings(self):
recordings = self.get_recordings()
if not recordings:
return {}
recording_ids = ",".join(
[recording.get("recordID", "") for recording in recordings]
)
return self.delete_recordings(recording_ids)

def delete_recordings(self, recording_ids):
"""https://docs.bigbluebutton.org/dev/api.html#deleterecordings"""
request = self.bbb_request(
"deleteRecordings", params={"recordID": recording_ids}
)
return self.bbb_response(request)

Cette requête peut prendre beaucoup de temps à répondre.

On devrait déléguer cette requête à une tâche celery

@azmeuk azmeuk added the performances En rapport avec les performances ou la tenue de charge de l'application label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performances En rapport avec les performances ou la tenue de charge de l'application
Projects
None yet
Development

No branches or pull requests

1 participant