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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants