Skip to content

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.

JonoYang added 3 commits April 2, 2024 19:27
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>
@JonoYang JonoYang requested a review from keshav-space April 4, 2024 22:00
@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!

JonoYang added 3 commits April 8, 2024 15:03
    * 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
@JonoYang JonoYang deleted the 362-update-status-task branch April 8, 2024 23:02
JonoYang added a commit that referenced this pull request Apr 14, 2025
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

3 participants