Commit 771fee1a authored by zxl's avatar zxl
Browse files

Commit test coed for Lever1 and Lever2

parent 42470854
......@@ -12,7 +12,7 @@ RUN pip install grpcio
RUN pip install protobuf
RUN pip install grpcio_tools
ENV CSST_ADML2_JOB_ID=2
ENV CSST_ADML2_JOB_ID=3
ENV CSST_ADML2_NAME="admL2"
ENV CSST_ADML1_JOB_ID=2
ENV CSST_ADML1_NAME="admL1"
......@@ -27,7 +27,7 @@ COPY *.proto /app/bin/
#controld version 202208
RUN cd /app/bin/ \
&& mkdir controld \
&& python3 -m grpc_tools.protoc --python_out=. --grpc_python_out=. -I. control.proto -I=control
&& python3 -m grpc_tools.protoc --python_out=. --grpc_python_out=. -I. control.proto -I=controld
RUN cd /app/bin/ \
&& python3 setup.py sdist \
......
import os
os.environ['CSST_PIPELINE_GRPC_SERVER']="122.96.144.152:39092"
os.environ['CSST_ADML2_JOB_ID']="2"
# import os
# os.environ['CSST_PIPELINE_GRPC_SERVER']="122.96.144.152:39092"
# os.environ['CSST_ADML1_JOB_ID']="1"
#一级流水线测试代码
from pyscalebox import PyScaleboxApi
body="brickid,name1csfszxc"
PyScaleboxApi().send_message_L2(body)
# msg = "hello world"
# print(msg)
\ No newline at end of file
body="obsid,module1"
PyScaleboxApi().send_message_L1(body)
# import os
# # os.environ['CSST_PIPELINE_GRPC_SERVER']="122.96.144.152:39092"
# os.environ['CSST_PIPELINE_GRPC_SERVER']="10.255.2.11:50051"
# os.environ['CSST_ADML2_JOB_ID']="12"
# os.environ['CSST_ADML1_JOB_ID']="14"
from pyscalebox import PyScaleboxApi
#2级流水线测试代码
body="brickid,name1,name2"
PyScaleboxApi().send_message_L2(body)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment