Skip to content

Report Hakopod invocation exit codes - #23

Merged
theboringhumane merged 1 commit into
sudofrom
feature/hakopod-exit-codes
Oct 22, 2026
Merged

theboringhumane merged 1 commit into
sudofrom
feature/hakopod-exit-codes

Conversation

@theboringhumane

Copy link
Copy Markdown
Contributor

The Hakopod runner (#20) already runs jobs through the native invocation API (create with idempotency key, bounded polling, cancel, terminal logs). Checked it against Hakopod 0.1.0-alpha.64's api/openapi.json: paths, headers and body still match.

One gap: the receipt's exit_code was dropped, so a failed job only said Hakopod invocation failed. It now reports Hakopod invocation failed: exit code N (same wording as the local runner) with the bounded logs.

PRODUCTION.md also notes how the job service gets database access (application secret + private_egress or a shared internal network).

Test: go test ./... passes; new TestHakopodReportsExitCodeWithLogs uses the fake API.

🤖 Generated with Claude Code

Failed invocations now return the receipt's exit_code in the error,
matching the local runner's wording, alongside the bounded logs.
@theboringhumane
theboringhumane merged commit aa0fe2c into sudo Oct 22, 2026
4 checks passed
@theboringhumane
theboringhumane deleted the feature/hakopod-exit-codes branch October 22, 2026 13:15
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