Skip to content

Commit

Permalink
Added TODOs for job streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-mulligan committed Oct 9, 2023
1 parent 8cf961c commit 2327b02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion patchfinder/src/main/java/FixFinderMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void runDb() {
}

private void runRabbit() {
// TODO: RabbitMQ integration, wait until PoC is accepted to complete this
// TODO: RabbitMQ integration (with job streaming), wait until PoC is accepted to complete this
throw new UnsupportedOperationException();
}

Expand Down
1 change: 1 addition & 0 deletions patchfinder/src/main/java/PatchFinderMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ private void runDb() {
}
}

// TODO: Implement job streaming (queue received jobs to be consumed, support end messages)
private void runRabbit() {
// Start busy-wait loop
final Messenger rabbitMQ = new Messenger(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ private static void dbMain(DatabaseHelper databaseHelper) {
logger.info("Product Name Extractor found and inserted {} affected products to the database in {} seconds", affectedProducts.size(), Math.floor(((double) (System.currentTimeMillis() - getProdStart) / 1000) * 100) / 100);
}

// TODO: Implement job streaming (queue received jobs to be consumed, support end messages)
// Using RabbitMQ, get the list of cve IDs from the reconciler and create vuln list from those
private static void rabbitMain(DatabaseHelper databaseHelper) {
List<CompositeVulnerability> vulnList;
Expand Down

0 comments on commit 2327b02

Please sign in to comment.