Skip to content

Commit 6b3d0f7

Browse files
committed
wip
1 parent 2cd158b commit 6b3d0f7

File tree

1 file changed

+6
-0
lines changed
  • operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,12 @@ private ReconcilerExecutor(ResourceID resourceID, ExecutionScope<P> executionSco
388388

389389
@Override
390390
public void run() {
391+
if (!running) {
392+
// this is needed for the case when controller stopped, but there is a graceful shutdown
393+
// timeout. that should finish the currently executing reconciliations but not the ones
394+
// which where submitted but not started yet
395+
log.debug("Event processor not running skipping resource processing: {}", resourceID);
396+
}
391397
// change thread name for easier debugging
392398
final var thread = Thread.currentThread();
393399
final var name = thread.getName();

0 commit comments

Comments
 (0)