Skip to content

feat(jobs): configure OPTIMIZATION_JOBS_DB for Cloud Run deployment #191

Description

@markboenigk

Problem

The optimization jobs feature returns "Optimization jobs are not configured" in production because the OPTIMIZATION_JOBS_DB connection string environment variable is not set in the Cloud Run service.

The health endpoint confirms this:

"optimization_jobs_db": "missing",
"optimization_jobs_db_detail": "missing database connection string"

What's needed

  1. Provision a database (Postgres or equivalent) for optimization jobs
  2. Set the OPTIMIZATION_JOBS_DB connection string as a secret/env var in the Cloud Run service (infra/cloud-run/service.yaml)
  3. Redeploy

Context

  • The async optimization jobs API was introduced in feat: add async optimization jobs API #116
  • The health probe no longer blocks on this being unconfigured (fixed in hotfix merged to main today), but the feature itself remains non-functional without the DB
  • optimization_job_workers_expected and optimization_job_workers_healthy are both 0 in production

/cc @phongndo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions