Skip to content

Commit 880a135

Browse files
committed
[control-operator] repeat if we failed to get state from occ task
1 parent 3cf91fb commit 880a135

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

control-operator/internal/controller/task_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func (r *TaskReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.
160160
stateReply, err := client.GetState(ctx)
161161
if err != nil {
162162
log.Error(err, "Failed to GetState")
163-
return ctrl.Result{}, nil
163+
return ctrl.Result{RequeueAfter: 5 * time.Second}, nil
164164
}
165165

166166
log.V(1).Info("Current State inside POD is: ", "state", stateReply.State)

0 commit comments

Comments
 (0)