From f3c91e5481b29f8c0f78da208faefeaea6fb3db7 Mon Sep 17 00:00:00 2001 From: yangjie727 <78058281@qq.com> Date: Sat, 25 Nov 2023 11:45:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 3ce13e6..d79fcdf 100644 --- a/main.go +++ b/main.go @@ -62,7 +62,7 @@ func init() { // version func (s *serverVersion) GetVersion(ctx context.Context, in *pb.GetVersionRequest) (*pb.GetVersionResponse, error) { - return &pb.GetVersionResponse{Major: 1, Minor: 2, Patch: 0}, nil + return &pb.GetVersionResponse{Major: 1, Minor: 3, Patch: 0}, nil } // UserService @@ -2317,7 +2317,7 @@ func (s *serverJob) GetJobs(ctx context.Context, in *pb.GetJobsRequest) (*pb.Get singerJobQos := singerJobInfo[10] singerJobWorkingDirectory := singerJobInfo[15] // singerJobtimeLimitMinutes, _ := strconv.Atoi(singerJobInfo[6]) - if singerJobInfo[6] == "UNLIMITED" { + if singerJobInfo[6] == "UNLIMITED" || singerJobInfo[6] == "INVALID" { singerJobtimeLimitMinutes = 0 } else { singerJobtimeLimitMinutes = utils.GetTimeLimit(singerJobInfo[6])