监控启智智算任务状态

This commit is contained in:
zch 2026-03-21 10:55:30 +08:00
parent f2b1cb9cbe
commit 8e5b2cf2cf
1 changed files with 3 additions and 4 deletions

View File

@ -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) {