Skip to content

fix: optimised handle progressing flows#269

Merged
Shivam-nagar23 merged 5 commits into
mainfrom
fix-optimise-image-scann
May 19, 2025
Merged

fix: optimised handle progressing flows#269
Shivam-nagar23 merged 5 commits into
mainfrom
fix-optimise-image-scann

Conversation

@Shivam-nagar23

@Shivam-nagar23 Shivam-nagar23 commented May 16, 2025

Copy link
Copy Markdown
Member

Fixes https://github.com/devtron-labs/sprint-tasks/issues/2147

Have done optmisation on query level where all data was fetched and made the flow non-blocking for server.

Further Scan can be executed parallelly

Comment thread image-scanner/pkg/sql/repository/ImageScanHistoryRepository.go Outdated
Comment thread image-scanner/pkg/security/ImageScanService.go Outdated
This change introduces a new service name constant, "IMAGE_SCANNER," to the `ServiceName` enum. It ensures consistent referencing of the ImageScanner service throughout the codebase.
Introduced an asynchronous runnable to handle concurrent execution of tasks in the ImageScanner service. Integrated async initialization and execution throughout the service, ensuring proper error recovery and logging for panics in goroutines. Updated the common-lib dependency to include new async utilities.
@Shivam-nagar23 Shivam-nagar23 merged commit 2c18801 into main May 19, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants