Skip to content

Conversation

@MFormenti
Copy link

@MFormenti MFormenti commented Nov 19, 2025

Adds infrastructure to support partial results by providing scan implementations access to their ScanJobDescription context during execution

Added:

  • JobStatus.RUNNING enum value for in-progress scans
  • getCurrentJobDescription() method in BulkScanWorker to access current job UUID via ThreadLocal
  • ThreadLocal context management in handle() method

mattiaformenti added 3 commits November 14, 2025 10:39
- Add RUNNING status to JobStatus enum
- Add ThreadLocal in BulkScanWorker to pass ScanJobDescription to scan implementations
- Add upsertPartialScanResult() method to IPersistenceProvider interface
- Implement upsertPartialScanResult() in MongoPersistenceProvider
- Update DummyPersistenceProvider test implementation
- Update BulkScanWorkerManager to pass ScanJobDescription to worker.handle()

This enables real-time persistence of intermediate scan results to MongoDB as probes complete during TLS scans.
@MFormenti MFormenti changed the title Add support for scan partial results tracking Add support for partial results tracking on a scan Nov 19, 2025
… input.

scanTarget can be accessed from scanJobDescription, and the UUID in scanJobDescription is needed to write partial results to MongoDB during a scan
@juaninf
Copy link
Contributor

juaninf commented Nov 20, 2025

Add one more test using DummyPersistenceProvider to check the partial results.

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.

3 participants