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 errata record creation in dramatiq task #318

Open
Korulag opened this issue Jul 4, 2024 · 0 comments · May be fixed by AlmaLinux/albs-web-server#1042
Open

Move errata record creation in dramatiq task #318

Korulag opened this issue Jul 4, 2024 · 0 comments · May be fixed by AlmaLinux/albs-web-server#1042
Assignees

Comments

@Korulag
Copy link
Contributor

Korulag commented Jul 4, 2024

Currently we create new errata record while being inside FastAPI endpoint. This has several drawbacks:

  • the process is quite long and takes one of the Gunicorn workers;
  • it operates in the same async loop as the FastAPI app basically affecting application ability to serve requests;
  • it makes a lot of external requests to repositories metadata which is not very good behavior to have inside the endpoint.

Because of all of that we need to move errata creation into separate Dramatiq task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In review
Development

Successfully merging a pull request may close this issue.

2 participants