Skip to content

Commit

Permalink
add sleep to script (#5277)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakoush authored Jan 31, 2024
1 parent b4f25f5 commit de7a672
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions samples/pipeline-tests.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
if [ -z "$1" ]
then
sleepTime=5
else
sleepTime=$1
fi


seldon model load -f ./models/tfsimple1.yaml
seldon model load -f ./models/tfsimple2.yaml
seldon model status tfsimple1 -w ModelAvailable | jq -M .
Expand All @@ -10,6 +18,7 @@ seldon pipeline unload tfsimples
seldon model unload tfsimple1
seldon model unload tfsimple2

sleep $sleepTime

seldon model load -f ./models/tfsimple1.yaml
seldon model load -f ./models/tfsimple2.yaml
Expand All @@ -25,6 +34,8 @@ seldon model unload tfsimple1
seldon model unload tfsimple2
seldon model unload tfsimple3

sleep $sleepTime

seldon model load -f ./models/conditional.yaml
seldon model load -f ./models/add10.yaml
seldon model load -f ./models/mul10.yaml
Expand All @@ -40,6 +51,7 @@ seldon model unload conditional
seldon model unload add10
seldon model unload mul10

sleep $sleepTime

seldon model load -f ./models/outlier-error.yaml
seldon model status outlier-error -w ModelAvailable | jq -M .
Expand All @@ -50,6 +62,7 @@ seldon pipeline infer error --inference-mode grpc '{"model_name":"outlier","
seldon pipeline unload error
seldon model unload outlier-error

sleep $sleepTime

seldon model load -f ./models/tfsimple1.yaml
seldon model load -f ./models/tfsimple2.yaml
Expand All @@ -69,6 +82,7 @@ seldon model unload tfsimple2
seldon model unload tfsimple3
seldon model unload check

sleep $sleepTime

seldon model load -f ./models/mul10.yaml
seldon model load -f ./models/add10.yaml
Expand All @@ -81,6 +95,7 @@ seldon pipeline unload pipeline-inputs
seldon model unload mul10
seldon model unload add10

sleep $sleepTime

seldon model load -f ./models/mul10.yaml
seldon model load -f ./models/add10.yaml
Expand Down

0 comments on commit de7a672

Please sign in to comment.