Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Implemented delete corpus using celery. Also made many refactors #42

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

maxyu1115
Copy link
Collaborator

Implemented delete corpus using celery, a task queue worker using redis.

The delete_corpus api first sends a task to celery, and then initiates the delete, by deleting the NamespaceNameToId entry. From the user perspective, while all the actual data remains, this effectively deletes the corpus, since the user no longer has any means to access the corpus. The celery worker then picks up the deletion, making sure the NamespaceNameToId is deleted, and then deletes all the data within the corpus.

Also made many minor refactors, such as to the get query corpus function.

@AlexArtrip AlexArtrip merged commit 56d2eb7 into main Oct 30, 2023
1 check passed
@AlexArtrip AlexArtrip deleted the delete-corpus branch October 30, 2023 05:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants