Skip to content

Commit

Permalink
Change app status to rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
avneet15 committed Dec 18, 2023
1 parent e0a2885 commit 7b0bf33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/flinkapplication/flink_state_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,8 @@ func (s *FlinkStateMachine) handleSubmittingJob(ctx context.Context, app *v1beta
if err != nil {
logger.Info(ctx, "Job monitoring failed with error: %v", err)
s.flinkController.LogEvent(ctx, app, corev1.EventTypeWarning, "JobMonitoringFailed", err.Error())
return statusUnchanged, err
s.updateApplicationPhase(app, v1beta1.FlinkApplicationRollingBackJob)
return statusChanged, err
}
if jobStarted {
return updateJobAndReturn(ctx, s, app, hash)
Expand Down

0 comments on commit 7b0bf33

Please sign in to comment.