|
|
|
@@ -23,6 +23,7 @@ import java.io.IOException; |
|
|
|
import java.net.URLEncoder; |
|
|
|
import java.nio.file.Path; |
|
|
|
import java.nio.file.Paths; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.util.*; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
@@ -161,8 +162,8 @@ public class RayInsServiceImpl implements RayInsService { |
|
|
|
String phaseValue = (String) innerMap.get("phase"); |
|
|
|
// 如果值不等于 Succeeded,则赋值为 Failed |
|
|
|
if (!StringUtils.equals(Constant.Succeeded, phaseValue)) { |
|
|
|
innerMap.put("phase", Constant.Terminated); |
|
|
|
innerMap.put("finishedAt", new Date()); |
|
|
|
innerMap.put("phase", Constant.Failed); |
|
|
|
innerMap.put("finishedAt", new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").format(new Date())); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|