Skip to content

Commit

Permalink
[Optimization][dinky-getaway] Delete the previously failed cluster wh…
Browse files Browse the repository at this point in the history
…en resubmitting the task. (#3969)

Co-authored-by: yuhang2.zhang <[email protected]>
  • Loading branch information
Jam804 and yuhang2.zhang authored Nov 27, 2024
1 parent 697ac66 commit e9061cb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ public ClusterClientProvider<String> deployApplicationCluster(
throws ClusterDeploymentException {
if (client.getService(ExternalServiceDecorator.getExternalServiceName(clusterId))
.isPresent()) {
throw new ClusterDeploymentException("The Flink cluster " + clusterId + " already exists.");
client.stopAndCleanupCluster(clusterId);
LOG.warn("The Flink cluster {} already exists, automatically stopAndCleanupCluster.", clusterId);
}

checkNotNull(clusterSpecification);
Expand Down

0 comments on commit e9061cb

Please sign in to comment.