Skip to content

Commit 0467110

Browse files
committed
fix: moved successful reconciliation
1 parent c5217ff commit 0467110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/DefaultEventHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public void handleEvent(Event event) {
105105
handleEventMarking(event);
106106
if (!eventMarker.deleteEventPresent(resourceID)) {
107107
submitReconciliationExecution(resourceID);
108-
metrics.finishedReconciliation(resourceID);
109108
} else {
110109
cleanupForDeletedEvent(resourceID);
111110
}
@@ -183,6 +182,7 @@ void eventProcessingFinished(
183182
return;
184183
}
185184
cleanupOnSuccessfulExecution(executionScope);
185+
metrics.finishedReconciliation(customResourceID);
186186
if (eventMarker.deleteEventPresent(customResourceID)) {
187187
cleanupForDeletedEvent(executionScope.getCustomResourceID());
188188
} else {

0 commit comments

Comments
 (0)