forked from JointCloud/pcm-ac
change repo name
This commit is contained in:
parent
fae13e3b23
commit
8f0044dd7a
|
@ -18,7 +18,7 @@ global:
|
|||
hidden: false
|
||||
- ref: project_name
|
||||
name: ""
|
||||
value: '"pcm-participant-ac"'
|
||||
value: '"pcm-ac"'
|
||||
required: false
|
||||
type: STRING
|
||||
hidden: false
|
||||
|
@ -39,7 +39,7 @@ workflow:
|
|||
name: git clone
|
||||
task: git_clone@1.2.6
|
||||
input:
|
||||
remote_url: '"https://gitlink.org.cn/jcce-pcm/pcm-participant-ac.git"'
|
||||
remote_url: '"https://gitlink.org.cn/jcce-pcm/pcm-ac.git"'
|
||||
ref: '"refs/heads/master"'
|
||||
commit_id: '""'
|
||||
depth: 1
|
||||
|
@ -51,7 +51,7 @@ workflow:
|
|||
input:
|
||||
docker_username: ((dev.docker_user))
|
||||
docker_password: ((dev.docker_password))
|
||||
image_name: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-participant-ac"'
|
||||
image_name: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-ac"'
|
||||
image_tag: git_clone_0.commit_time
|
||||
registry_address: '"registry.cn-hangzhou.aliyuncs.com"'
|
||||
docker_build_path: git_clone_0.git_path
|
||||
|
@ -83,7 +83,7 @@ workflow:
|
|||
name: shell
|
||||
image: docker.jianmuhub.com/library/debian:buster-slim
|
||||
env:
|
||||
IMAGE_NAME: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-participant-ac"'
|
||||
IMAGE_NAME: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-ac"'
|
||||
IMAGE_TAG: git_clone_0.commit_time
|
||||
SECRET_NAME: global.secret_name
|
||||
NACOS_HOST: global.nacos_host
|
||||
|
|
|
@ -10,7 +10,7 @@ ENV GOPROXY https://goproxy.cn,direct
|
|||
COPY . .
|
||||
COPY etc/ /app/
|
||||
RUN go mod download
|
||||
RUN go build -o /app/pcm-participant-ac /app/hpcac.go
|
||||
RUN go build -o /app/pcm-ac /app/hpcac.go
|
||||
|
||||
|
||||
FROM alpine:3.16.2
|
||||
|
@ -24,11 +24,11 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.sjtug.sjtu.edu.cn/g' /etc/apk/repos
|
|||
apk add --update tzdata && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
COPY --from=builder /app/pcm-participant-ac .
|
||||
COPY --from=builder /app/pcm-ac .
|
||||
COPY etc/hpcac.yaml .
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
||||
EXPOSE 2001
|
||||
|
||||
ENTRYPOINT ./pcm-participant-ac -f hpcac.yaml
|
||||
ENTRYPOINT ./pcm-ac -f hpcac.yaml
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module gitlink.org.cn/jcce-pcm/pcm-participant-ac
|
||||
module gitlink.org.cn/jcce-pcm/pcm-ac
|
||||
|
||||
go 1.19
|
||||
|
||||
|
|
12
hpcac.go
12
hpcac.go
|
@ -4,16 +4,16 @@ import (
|
|||
"context"
|
||||
"flag"
|
||||
"fmt"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/cron"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/client/participantservice"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/pcmCore"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/cron"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils"
|
||||
"strconv"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/config"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/server"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/config"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/server"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/conf"
|
||||
"github.com/zeromicro/go-zero/core/service"
|
||||
|
|
|
@ -6,7 +6,7 @@ package hpcacclient
|
|||
import (
|
||||
"context"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
|
||||
"github.com/zeromicro/go-zero/zrpc"
|
||||
"google.golang.org/grpc"
|
||||
|
|
|
@ -3,7 +3,7 @@ package common
|
|||
import (
|
||||
"flag"
|
||||
"github.com/zeromicro/go-zero/core/conf"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/config"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/config"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -2,9 +2,9 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type DeleteJobLogic struct {
|
||||
|
|
|
@ -3,11 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"log"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -2,10 +2,10 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"strconv"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"context"
|
||||
"github.com/go-resty/resty/v2"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"net/http"
|
||||
"time"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -2,12 +2,12 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"strconv"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -2,13 +2,13 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -3,8 +3,8 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -3,9 +3,9 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"log"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
|
|
|
@ -3,9 +3,9 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type GetJobDetailLogic struct {
|
||||
|
|
|
@ -3,9 +3,9 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"log"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
|
|
|
@ -3,11 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"log"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -3,11 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"log"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -3,9 +3,9 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -2,9 +2,9 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"context"
|
||||
"github.com/bitly/go-simplejson"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
|
|
|
@ -3,8 +3,8 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"github.com/bitly/go-simplejson"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type ListJobManagerLogic struct {
|
||||
|
|
|
@ -2,9 +2,9 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type QueryQueueDetailsLogic struct {
|
||||
|
|
|
@ -2,12 +2,12 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"strconv"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -2,9 +2,9 @@ package logic
|
|||
|
||||
import (
|
||||
"context"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -3,9 +3,9 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
|
|
|
@ -3,11 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"log"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -3,11 +3,11 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/common"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/common"
|
||||
"log"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
|
|
@ -3,9 +3,9 @@ package logic
|
|||
import (
|
||||
"context"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type WallTimeLogic struct {
|
||||
|
|
|
@ -3,8 +3,8 @@ package cron
|
|||
import (
|
||||
"context"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/client/participantservice"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils"
|
||||
)
|
||||
|
||||
func ReportHeartbeat(participantRpc participantservice.ParticipantService) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cron
|
||||
|
||||
import (
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
func AddCronGroup(svc *svc.ServiceContext) {
|
||||
|
|
|
@ -3,12 +3,12 @@ package cron
|
|||
import (
|
||||
"context"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcacclient"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/logic"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/pcmCore"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcacclient"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/logic"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
)
|
||||
|
||||
func SyncTask(svc *svc.ServiceContext) {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"github.com/prometheus/client_golang/api"
|
||||
v1 "github.com/prometheus/client_golang/api/prometheus/v1"
|
||||
proModel "github.com/prometheus/common/model"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils"
|
||||
model "gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/models"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils"
|
||||
"k8s.io/apimachinery/pkg/util/json"
|
||||
"time"
|
||||
)
|
||||
|
|
|
@ -2,8 +2,8 @@ package tracker
|
|||
|
||||
import (
|
||||
"github.com/carlmjohnson/requests"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
model "gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/models"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
)
|
||||
|
||||
type ComputeResource struct {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"errors"
|
||||
"github.com/go-resty/resty/v2"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/pkg/utils/httputils"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/pkg/utils/httputils"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ package server
|
|||
import (
|
||||
"context"
|
||||
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/logic"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/svc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/hpcAC"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/logic"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/svc"
|
||||
)
|
||||
|
||||
type HpcACServer struct {
|
||||
|
|
|
@ -3,9 +3,9 @@ package svc
|
|||
import (
|
||||
"github.com/robfig/cron/v3"
|
||||
"github.com/zeromicro/go-zero/zrpc"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-ac/internal/config"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/client/participantservice"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/client/pcmcore"
|
||||
"gitlink.org.cn/jcce-pcm/pcm-participant-ac/internal/config"
|
||||
)
|
||||
|
||||
type ServiceContext struct {
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: pcm-participant-ac-deployment
|
||||
name: pcm-ac-deployment
|
||||
namespace: jcce-system
|
||||
labels:
|
||||
k8s-app: pcm-participant-ac
|
||||
k8s-app: pcm-ac
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
k8s-app: pcm-participant-ac
|
||||
k8s-app: pcm-ac
|
||||
template:
|
||||
metadata:
|
||||
name: pcm-participant-ac
|
||||
name: pcm-ac
|
||||
labels:
|
||||
k8s-app: pcm-participant-ac
|
||||
k8s-app: pcm-ac
|
||||
spec:
|
||||
hostAliases:
|
||||
- hostnames:
|
||||
|
@ -23,7 +23,7 @@ spec:
|
|||
imagePullSecrets:
|
||||
- name: secret_name
|
||||
containers:
|
||||
- name: pcm-participant-ac
|
||||
- name: pcm-ac
|
||||
image: image_name
|
||||
resources: {}
|
||||
imagePullPolicy: Always
|
||||
|
@ -53,12 +53,12 @@ apiVersion: v1
|
|||
kind: Service
|
||||
metadata:
|
||||
namespace: jcce-system
|
||||
name: pcm-participant-ac-service
|
||||
name: pcm-ac-service
|
||||
labels:
|
||||
k8s-service: pcm-participant-ac
|
||||
k8s-service: pcm-ac
|
||||
spec:
|
||||
selector:
|
||||
k8s-app: pcm-participant-ac
|
||||
k8s-app: pcm-ac
|
||||
ports:
|
||||
- name: web
|
||||
protocol: TCP
|
||||
|
|
Loading…
Reference in New Issue