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

Improve package collection request queue logic #502

Closed
JonoYang opened this issue Jul 16, 2024 · 1 comment
Closed

Improve package collection request queue logic #502

JonoYang opened this issue Jul 16, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@JonoYang
Copy link
Member

It would be good to set priority of when packages get collected/scanned depending on the input purl.

In the case where the user uses the collect endpoint (GET /api/collect/?purl=pkg:npm/asdf@1.0.2), we would add pkg:npm/asdf@1.0.2 to the top of the priority and scan queue. In the case of the /api/collect/index_packages/ endpoint, the purls with exact versions will be at the top of the priority and scan queue. The purls that do not have versions specified will be added at the end of both queues and processed first-in first-out.

@JonoYang JonoYang added the enhancement New feature or request label Jul 16, 2024
@JonoYang JonoYang self-assigned this Jul 16, 2024
JonoYang added a commit that referenced this issue Jul 17, 2024
Signed-off-by: Jono Yang <jyang@nexb.com>
JonoYang added a commit that referenced this issue Jul 17, 2024
Signed-off-by: Jono Yang <jyang@nexb.com>
JonoYang added a commit that referenced this issue Jul 17, 2024
Signed-off-by: Jono Yang <jyang@nexb.com>
JonoYang added a commit that referenced this issue Jul 17, 2024
Signed-off-by: Jono Yang <jyang@nexb.com>
JonoYang added a commit that referenced this issue Jul 18, 2024
Signed-off-by: Jono Yang <jyang@nexb.com>
JonoYang added a commit that referenced this issue Jul 19, 2024
Signed-off-by: Jono Yang <jyang@nexb.com>
@JonoYang
Copy link
Member Author

This has been merged into main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant