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

362 update status task #375

Merged
merged 6 commits into from
Apr 8, 2024
Merged

362 update status task #375

merged 6 commits into from
Apr 8, 2024

Conversation

JonoYang
Copy link
Member

@JonoYang JonoYang commented Apr 4, 2024

This PR updates /api/scan_queue/update_status/ to index packages using an rq worker. The scan results are saved to a file, then a task is placed on the queue to index those results. After, the results are deleted.

Signed-off-by: Jono Yang <jyang@nexb.com>
    * Create new volume to store temporary files to share between Docker services

Signed-off-by: Jono Yang <jyang@nexb.com>
    * Add new envvar PURLDB_ASYNC

Signed-off-by: Jono Yang <jyang@nexb.com>
@keshav-space keshav-space linked an issue Apr 5, 2024 that may be closed by this pull request
2 tasks
Copy link
Member

@keshav-space keshav-space left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @JonoYang, LGTM!

    * This is to avoid serializing the entire ScannableURI object when placing the task onto the queue

Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
@JonoYang JonoYang merged commit 54fbadc into main Apr 8, 2024
8 checks passed
@JonoYang JonoYang deleted the 362-update-status-task branch April 8, 2024 23:02
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.

The indexing of (very) large packages never completes
2 participants