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

Move org deletion to background job #1898

Closed
tw4l opened this issue Jun 28, 2024 · 1 comment
Closed

Move org deletion to background job #1898

tw4l opened this issue Jun 28, 2024 · 1 comment
Assignees

Comments

@tw4l
Copy link
Member

tw4l commented Jun 28, 2024

We have a few API endpoints where it would be better to respond 200 early and move the logic of the endpoint into a background job that can be queued and retried if necessary.

The first implementation of this moves org deletion into a background job with full access to the backend's ops classes.

Additional tasks will be moved to background jobs in a separate second step.

@tw4l tw4l self-assigned this Jun 28, 2024
@tw4l tw4l moved this from Triage to Todo in Webrecorder Projects Jun 28, 2024
@tw4l tw4l moved this from Todo to Ready in Webrecorder Projects Jul 16, 2024
ikreymer pushed a commit that referenced this issue Jul 20, 2024
Fixes #1942 

This process might be a bit slow for large orgs, may consider moving it to background job in #1898.
@tw4l
Copy link
Member Author

tw4l commented Oct 10, 2024

Org deletion merged in #2098, which adds a new main_by entrypoint for background jobs that need access to ops methods. Org stats and import have not yet been moved over, so keeping this issue open for now.

@tw4l tw4l moved this from In Review to Ready in Webrecorder Projects Oct 10, 2024
@tw4l tw4l changed the title Move potentially long-running tasks to background jobs Move org deletion to background job Oct 16, 2024
@tw4l tw4l moved this from Ready to Done! in Webrecorder Projects Oct 16, 2024
@tw4l tw4l closed this as completed Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done!
Development

No branches or pull requests

1 participant