Skip to content

Commit

Permalink
Don't check execution first
Browse files Browse the repository at this point in the history
  • Loading branch information
kathy-t committed Jan 3, 2024
1 parent 41fdc27 commit 3d8f785
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,6 @@ private void processWorkflowExecution(CSVRecord workflowMetricRecord, WorkflowsA
return;
}

// Check if the information from the workflow execution is valid
Optional<RunExecution> workflowExecution = getTerraWorkflowExecutionFromCsvRecord(workflowMetricRecord, sourceUrl, skippedExecutionsCsvPrinter);
if (workflowExecution.isEmpty()) {
return;
}

if (!sourceUrlToSourceUrlTrsInfo.containsKey(sourceUrl)) {
Optional<SourceUrlTrsInfo> sourceUrlTrsInfo = calculateTrsInfoFromSourceUrl(workflowMetricRecord, sourceUrl, workflowsApi, skippedExecutionsCsvPrinter);
if (sourceUrlTrsInfo.isEmpty()) {
Expand All @@ -171,6 +165,12 @@ private void processWorkflowExecution(CSVRecord workflowMetricRecord, WorkflowsA
}
}

// Check if the information from the workflow execution is valid
Optional<RunExecution> workflowExecution = getTerraWorkflowExecutionFromCsvRecord(workflowMetricRecord, sourceUrl, skippedExecutionsCsvPrinter);
if (workflowExecution.isEmpty()) {
return;
}

final SourceUrlTrsInfo sourceUrlTrsInfo = sourceUrlToSourceUrlTrsInfo.get(sourceUrl);
final ExecutionsRequestBody executionsRequestBody = new ExecutionsRequestBody().runExecutions(List.of(workflowExecution.get()));
try {
Expand Down

0 comments on commit 3d8f785

Please sign in to comment.