Skip to content

Call keepalive endpoint every 20s during build_image#52

Merged
mismosmi merged 1 commit intomainfrom
claude/issue-51-20260421-1921
Apr 24, 2026
Merged

Call keepalive endpoint every 20s during build_image#52
mismosmi merged 1 commit intomainfrom
claude/issue-51-20260421-1921

Conversation

@mismosmi
Copy link
Copy Markdown
Owner

Fixes #51

The shared server auto-shuts-down after 30s of inactivity with no running containers. During a long image build the CLI holds no containers and makes no authenticated requests, so the server would die mid-build and cause subsequent requests to fail.

Spawn a background thread that POSTs to /keep-alive every 20s while build_image runs.

Generated with Claude Code

The shared server auto-shuts-down after 30s of inactivity with no
running containers. During a long image build the CLI holds no
containers and makes no authenticated requests, so the server would
die mid-build and cause the subsequent host-tools fetch to fail.

Spawn a background thread that POSTs to /keep-alive every 20s while
build_image runs. The thread is stopped and joined cleanly before the
function returns, regardless of success or failure.

Co-authored-by: Michel Smola <mismosmi@users.noreply.github.com>
@mismosmi mismosmi merged commit e79ef0c into main Apr 24, 2026
1 check passed
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.

Weekly e2e agent tests failed

1 participant