Skip to content

Commit

Permalink
Merge pull request #184 from spotify/live-wire/race
Browse files Browse the repository at this point in the history
It is possible that the job succeeded but submitter is still running
  • Loading branch information
live-wire committed Jun 28, 2022
2 parents 9ae6905 + 4826f48 commit 7537bed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/flink/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ func flinkClusterJobPhaseInfo(ctx context.Context, jobStatus *flinkOp.JobStatus,
case flinkOp.JobStateUpdating, flinkOp.JobStatePending, flinkOp.JobStateDeploying, flinkOp.JobStateRestarting:
return pluginsCore.PhaseInfoInitializing(occurredAt, pluginsCore.DefaultPhaseVersion, msg, info)
case flinkOp.JobStateSucceeded:
if jobStatus.SubmitterExitCode < 0 {
return pluginsCore.PhaseInfoRunning(pluginsCore.DefaultPhaseVersion, info)
}
if jobStatus.SubmitterExitCode == 0 {
return pluginsCore.PhaseInfoSuccess(info)
}
Expand Down

0 comments on commit 7537bed

Please sign in to comment.