Skip to content

Commit

Permalink
If reloading > 0, reconcile in 15seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
alok87 committed May 24, 2021
1 parent 764edc4 commit cbada9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions redshiftsink/controllers/redshiftsink_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,9 @@ func (r *RedshiftSinkReconciler) reconcile(

if len(status.realtime) == 0 {
klog.V(2).Infof("rsk/%s nothing done in reconcile", rsk.Name)
if status.reloading > 0 {
return resultRequeueMilliSeconds(15000), events, nil
}
return resultRequeueMilliSeconds(900000), events, nil
}

Expand Down

0 comments on commit cbada9f

Please sign in to comment.