Skip to content

Commit e711de7

Browse files
Move latencypredictor_async into sidecards in root, remove dev project dependencies, and unnecessary read lock, fix gitignore to ignore pycache again
1 parent 83dc28d commit e711de7

File tree

10 files changed

+4
-8
lines changed

10 files changed

+4
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
bin/*
88
Dockerfile.cross
99
artifacts
10-
latencypredictor-v1/__pycache__
10+
latencypredictor/__pycache__
1111

1212
# Test binary, built with `go test -c`
1313
*.test
Binary file not shown.
Binary file not shown.

latencypredictor/build-deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
set -e
1717

1818
# Configuration
19-
PROJECT_ID="kaushikmitra-gke-dev" # REPLACE with your GCP project ID
20-
REGION="asia-southeast1-c" # REPLACE with your GCP region
21-
REPOSITORY="kaushikmitra-docker-repo" # REPLACE with your Artifact Registry repository name
19+
PROJECT_ID="your-gcp-project-id"
20+
REGION="your-gcp-region"
21+
REPOSITORY="your-artifact-registry-repo"
2222
TRAINING_IMAGE="latencypredictor-training-server"
2323
PREDICTION_IMAGE="latencypredictor-prediction-server"
2424
TAG="latest"

pkg/epp/latencypredictorasync/latencypredictor_async.go renamed to sidecars/latencypredictorasync/latencypredictor_async.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ type Predictor struct {
4141
modelInfo *ModelInfo
4242
serverStatus *ServerStatusResponse
4343

44-
xgboostMu sync.RWMutex
45-
4644
bufferMu sync.Mutex
4745
pending []TrainingEntry
4846

@@ -157,8 +155,6 @@ func (p *Predictor) GetCachedMetrics() (*MetricsResponse, bool) {
157155

158156
// IsXGBoostReady returns true if native XGBoost models are loaded and ready.
159157
func (p *Predictor) IsXGBoostReady() bool {
160-
p.xgboostMu.RLock()
161-
defer p.xgboostMu.RUnlock()
162158
return p.modelInfo != nil && p.modelInfo.ModelType == xgBoostModelType
163159
}
164160

File renamed without changes.

0 commit comments

Comments
 (0)