Skip to content

fix(precompute_engine): register GorillaQueryEngine from ASAP_GORILLA_S3_* env - #88

Merged
zzylol merged 1 commit into
mainfrom
mvp/precompute-engine-gorilla-registration
May 6, 2026
Merged

zzylol merged 1 commit into
mainfrom
mvp/precompute-engine-gorilla-registration

Conversation

@zzylol

@zzylol zzylol commented May 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The deployed backend Docker image uses the precompute_engine binary (see ASAPCollector/deploy/docker/Dockerfile.backend), but the GorillaQueryEngine env-var registration block from PR feat(http): wire EngineRouter into query handler — Gorilla-S3 archive routes via router (Phase 6 follow-up) #87 only landed in src/main.rs. So deployments that set ASAP_GORILLA_S3_* env vars never registered a GorillaQueryEngine on the EngineRouter, and cold-archive queries fell back silently without a data_source: gorilla_archive marker.
  • This PR mirrors the registration block from src/main.rs into src/bin/precompute_engine.rs so the deployed image actually wires the cold-archive engine.

Test plan

Companion PR: ASAPCollector mvp/issue-46-rerun (run_mvp_demo.sh re-run + MVP_REPORT_v2.md).

Refs ASAPCollector#46.

🤖 Generated with Claude Code

…_S3_* env

The deployed backend Docker image uses the `precompute_engine` binary
(see ASAPCollector/deploy/docker/Dockerfile.backend), but the
GorillaQueryEngine env-var registration block from PR #87 only landed
in `src/main.rs`. As a result, deployments that set
`ASAP_GORILLA_S3_*` env vars never got a `GorillaQueryEngine` plugged
into the EngineRouter, and cold-archive queries fell back silently
without a `data_source: gorilla_archive` marker on the response.

This mirrors the registration block from `src/main.rs` into
`src/bin/precompute_engine.rs` so the deployed image actually wires
the cold-archive engine when the env vars are present (and remains
silent / warn-only when they're absent).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zzylol
zzylol merged commit 3b2e2c6 into main May 6, 2026
@zzylol
zzylol deleted the mvp/precompute-engine-gorilla-registration branch May 6, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant