Skip to content

fix(runners): report a machine without Docker as Failed at check-in - #792

Merged
aixle-com[bot] merged 3 commits into
developfrom
feature/runner-docker-down-failed-check-in
Nov 19, 2026
Merged

aixle-com[bot] merged 3 commits into
developfrom
feature/runner-docker-down-failed-check-in

Conversation

@NOX73

@NOX73 NOX73 commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

What changed

With Docker down, aixle-runner exited before its check-in and systemd restarted it in a loop, so the machine showed Offline and nothing named Docker.

  • Runner: RunHost now checks in before it serves the sessions' proxies again, so the preflight failure (facts.preflight_error) reaches the platform. If Docker still cannot list containers, the runner waits in-process with a backoff (1 s up to 30 s) instead of exiting, then checks in again once Docker answers and starts polling, so Return to service reaches it.
  • Platform: Runners::CheckIn moves a machine that reports facts.preflight_error to failed, with " cannot run sessions: " as its reason. A later clean check-in does not bring it back; Return to service does (§5.2). New model reader RunnerEnvironment#preflight_failure.
  • DESIGN.md (§5.3 note, §6.2), PROTOCOL.md §5.9 and CHANGELOG (Unreleased) updated. No runner release or version pin, as decided on the task (feat(tools): pick individual tools inside a picker group #264 releases 0.4.1).

How to test

  • cd runner && go test ./internal/cli/...
  • bin/rails test test/integration/runner_gateway_check_in_test.rb
  • On a machine, §12.4 step 8: stop Docker, restart the runner, the machine shows Failed with the Docker message; start Docker, press Return to service, it goes idle.

Comment thread app/services/runners/check_in.rb Resolved
Comment thread runner/internal/cli/host.go Resolved

@aixle-com aixle-com Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Round 2: the round-1 recommendation is applied (Machines.fail! plus environment.reload), with a test for a machine holding a session. No further remarks.

@aixle-com
aixle-com Bot merged commit 3efb350 into develop Nov 19, 2026
17 checks 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.

1 participant