监控启智智算任务状态
This commit is contained in:
parent
f2b1cb9cbe
commit
8e5b2cf2cf
|
|
@ -44,7 +44,7 @@ public class ServiceVersionStatusTask {
|
|||
STATUS_URL = zsServiceVersionUrl + "/api/v1/getInferenceTaskAsync";
|
||||
}
|
||||
|
||||
@Scheduled(cron = "0 * * * * ?") // 每分钟执行一次
|
||||
// @Scheduled(cron = "0 * * * * ?") // 每分钟执行一次
|
||||
public void executeServiceVersionStatus() {
|
||||
try {
|
||||
// 1. 调用queryAllVersionList接口获取所有runState为RUNNING的数据
|
||||
|
|
@ -163,7 +163,7 @@ public class ServiceVersionStatusTask {
|
|||
/**
|
||||
* 新增定时任务:处理已完成的任务,获取URL
|
||||
*/
|
||||
@Scheduled(cron = "0 * * * * ?") // 每分钟执行一次
|
||||
// @Scheduled(cron = "0 * * * * ?") // 每分钟执行一次
|
||||
public void executeSetUrl() {
|
||||
try {
|
||||
// 1. 调用queryAllComplList接口获取所有runState为COMPLETED且url为空的数据
|
||||
|
|
@ -206,8 +206,7 @@ public class ServiceVersionStatusTask {
|
|||
@Scheduled(cron = "0 * * * * ?") // 每分钟执行一次
|
||||
public void executeServiceStatusChange() {
|
||||
try {
|
||||
// 1. 调用queryAllComplList接口获取所有runState为COMPLETED且url为空的数据
|
||||
List<ServiceVersionZs> completedVersions = serviceVersionMapper.queryAllComplList();
|
||||
List<ServiceVersionZs> completedVersions = serviceVersionMapper.queryAllRunList();
|
||||
|
||||
if (completedVersions != null && !completedVersions.isEmpty()) {
|
||||
for (ServiceVersionZs version : completedVersions) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue