You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/workloads/cortex/serve/run.sh
+12
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,18 @@ if [ -f "/mnt/project/conda-packages.txt" ]; then
66
66
fi
67
67
fi
68
68
69
+
# CORTEX_VERSION x1
70
+
export EXPECTED_CORTEX_VERSION=0.18.1
71
+
72
+
if [ "$CORTEX_VERSION"!="$EXPECTED_CORTEX_VERSION" ];then
73
+
if [ "$CORTEX_PROVIDER"=="local" ];then
74
+
echo"your Cortex CLI version ($CORTEX_VERSION) doesn't match your predictor image version ($EXPECTED_CORTEX_VERSION); please update your predictor image by modifying the \`image\` field in your API configuration file (e.g. cortex.yaml) and re-running \`cortex deploy\`, or update your CLI by following the instructions at https://docs.cortex.dev/cluster-management/update#upgrading-to-a-newer-version-of-cortex"
75
+
else
76
+
echo"your Cortex operator version ($CORTEX_VERSION) doesn't match your predictor image version ($EXPECTED_CORTEX_VERSION); please update your predictor image by modifying the \`image\` field in your API configuration file (e.g. cortex.yaml) and re-running \`cortex deploy\`, or update your cluster by following the instructions at https://docs.cortex.dev/cluster-management/update#upgrading-to-a-newer-version-of-cortex"
errMsg=f"your Cortex operator version ({os.environ['CORTEX_VERSION']}) doesn't match your predictor image version ({consts.CORTEX_VERSION}); please update your predictor image by modifying the `image` field in your API configuration file (e.g. cortex.yaml) and re-running `cortex deploy`, or update your cluster by following the instructions at https://docs.cortex.dev/cluster-management/update"
44
-
raiseValueError(errMsg)
45
-
46
-
47
41
API_SUMMARY_MESSAGE= (
48
42
"make a prediction by sending a post request to this endpoint with a json payload"
0 commit comments