fix: google-cloud-build + caller_type BQ migration + OAuth state cookie
This commit is contained in:
parent
54f43fea2b
commit
66119278bf
|
|
@ -22,6 +22,9 @@ opentelemetry-exporter-gcp-trace>=1.8.0
|
|||
google-cloud-logging>=3.10.0
|
||||
google-cloud-monitoring>=2.22.0
|
||||
|
||||
# Cloud Build — for /opax/build-status
|
||||
google-cloud-build>=3.24.0
|
||||
|
||||
# HTTP server for Cloud Run
|
||||
uvicorn[standard]>=0.29.0
|
||||
fastapi>=0.111.0
|
||||
|
|
@ -39,8 +42,6 @@ dask-ml>=2024.4.0
|
|||
scikit-learn>=1.4.0
|
||||
# pandas: tabular telemetri-analyse
|
||||
pandas>=2.0.0
|
||||
# XGBoost: distribuert feature importance (Fase ML-3)
|
||||
# xgboost>=2.0.0 ← aktiver i Fase ML-3
|
||||
|
||||
# ── CostGuard App (Fase B1-B5) ────────────────────────────────────────────────
|
||||
google-cloud-billing>=1.12.0
|
||||
|
|
|
|||
18
scripts/migrate_bq_add_caller_type.sh
Normal file
18
scripts/migrate_bq_add_caller_type.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
# Legg til caller_type, module_name og session_id i llm_token_usage om de mangler
|
||||
# Kjøres én gang manuelt: bash scripts/migrate_bq_add_caller_type.sh
|
||||
|
||||
PROJECT="propane-will-491900-m5"
|
||||
DATASET="billing_data"
|
||||
TABLE="llm_token_usage"
|
||||
|
||||
echo "Migrerer $PROJECT.$DATASET.$TABLE ..."
|
||||
|
||||
bq query --use_legacy_sql=false --project_id="$PROJECT" "
|
||||
ALTER TABLE \`$PROJECT.$DATASET.$TABLE\`
|
||||
ADD COLUMN IF NOT EXISTS module_name STRING,
|
||||
ADD COLUMN IF NOT EXISTS caller_type STRING,
|
||||
ADD COLUMN IF NOT EXISTS session_id STRING;
|
||||
"
|
||||
|
||||
echo "Ferdig. Kjør: bq show --schema $PROJECT:$DATASET.$TABLE"
|
||||
Loading…
Reference in New Issue
Block a user