File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
operator/src/main/java/oracle/kubernetes/operator Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -171,15 +171,14 @@ public NextAction apply(Packet packet) {
171
171
(fiber ) -> {
172
172
Complete complete =
173
173
(V1Job job ) -> {
174
+ if (!shouldProcessJob (job )) {
175
+ return ;
176
+ }
174
177
completeCallbackRegistrations .remove (job .getMetadata ().getName ());
175
178
if (didResume .compareAndSet (false , true )) {
176
- if (!shouldProcessJob (job )) {
177
- fiber .cancel (false );
178
- } else {
179
- LOGGER .fine ("Job status: " + job .getStatus ());
180
- packet .put (ProcessingConstants .DOMAIN_INTROSPECTOR_JOB , job );
181
- fiber .resume (packet );
182
- }
179
+ LOGGER .fine ("Job status: " + job .getStatus ());
180
+ packet .put (ProcessingConstants .DOMAIN_INTROSPECTOR_JOB , job );
181
+ fiber .resume (packet );
183
182
}
184
183
};
185
184
completeCallbackRegistrations .put (metadata .getName (), complete );
You can’t perform that action at this time.
0 commit comments