feat(api): wait for analysis-run terminal status via loopback CLI - #406
feat(api): wait for analysis-run terminal status via loopback CLI#406seonghobae wants to merge 1 commit into
Conversation
GAP-003A / issue #166: operators can poll GET-by-id until succeeded or failed through `tepp-analysis-runs wait` without writing a poll loop. Timeout 0 fails closed on accepted/running. Metric-free accepted/running/failed stdout. tepp.scientific_acceptance.v1 only on succeeded scientific_acceptance_v1. Stacked on status CLI (#392). Does not duplicate status, lookup, retry-lineage, or cancel/create CLIs.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hour-26 exact-head: |
Why
GAP-003A / issue #166 still required operators to write a poll loop after status GET. Operators cannot wait for succeeded or failed without guessing when to re-GET. Accepted/running/failed stdout stays metric-free.
tepp.scientific_acceptance.v1appears only on succeededscientific_acceptance_v1.Live slices that this PR does not duplicate:
analysis_enginescientific-acceptance librarylist38ec074d12dff758ef66ed73d828f6d8a557726e)What
GAP-003A wait CLI stacked on #392 over status consumer-parity #383 / GET-by-id #359 / protected main
1bc02f580cf48e1d39da239f0e818453437c31c3:tepp-analysis-runs waitpollsGET /v1/analysis-runs/{run_id}until succeeded or failed--timeout-msdefault 1000 (max 60000);0polls once and fails closed on accepted/running--poll-interval-msdefault 10 (max 1000); interval longer than a nonzero timeout fails closedNot an ADR 0014 scientific claim. Not persistence.
Verification
cargo clippy -p tepp_api --all-targets -- -D warningscargo test -p tepp_api --lib analysis_run_wait_clicargo test -p tepp_api --test analysis_run_wait_cli_contractRUSTDOCFLAGS='-D warnings' cargo doc -p tepp_api --no-depspython3 scripts/validate_documentation.pypython3 scripts/check_docstrings.pyExact head:
04ea4c9431d23994c7649eae4ed69ba34a91bdedDo not merge without two independent APPROVE reviews on this exact head and current Checks. Author COMMENTED is not independent APPROVE.