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

feat: add progress support, backed by the database #712

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

ctron
Copy link
Contributor

@ctron ctron commented Aug 26, 2024

This extends the progress support to CSAF and SBOMs. It also persists the progress state in the database, and makes it available on the API.

@bobmcwhirter
Copy link
Contributor

Looks good, just one question:

If it persists in the DB, and the system shuts down mid-ingestoring, and then restarts, do the tables in the DB represent stale data?

Or will it reset when the ingestor starts again?

I understand the DB is nice especially if we distribute importers to different processes than the API servers (or have multiple API servers in rotation).

@ctron
Copy link
Contributor Author

ctron commented Aug 27, 2024

Or will it reset when the ingestor starts again?

That's already happening. Clearing the progress data with it now.

@ctron ctron added this pull request to the merge queue Aug 27, 2024
Merged via the queue into trustification:main with commit bf0a017 Aug 27, 2024
1 check passed
@ctron ctron deleted the feature/progress_2 branch August 27, 2024 15:08
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.

2 participants