Skip to content

fix(executor): reclaim stopped session containers safely - #29

Open
thecodacus wants to merge 1 commit into
mainfrom
fix/issue-17-stale-runners
Open

thecodacus wants to merge 1 commit into
mainfrom
fix/issue-17-stale-runners

Conversation

@thecodacus

Copy link
Copy Markdown
Owner

A stopped runner left by an older deployment can occupy pithagoras-<sessionId> and prevent the session from starting. Before launching, inspect that name and remove only a stopped container whose managed/session labels match. Remove it by its inspected ID without force, so active or unrelated containers remain protected. Docker failures propagate instead of being mistaken for successful cleanup.

The deployment guide explains automatic cleanup and how to handle active or unrelated name collisions.

Validation: server build, three regression tests covering cleanup, ownership/active-state protection and Docker failures, and VitePress production build passed.

Fixes #17

@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 32 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: ad080bfa-4914-462f-8a8e-7a0278a813b2

📥 Commits

Reviewing files that changed from the base of the PR and between 0dcb312 and e7e36c6.

📒 Files selected for processing (4)
  • docs/guide/deploying.md
  • server/src/executors/index.ts
  • server/src/executors/stale-container.ts
  • tests/stale-container.test.mts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch has not been deployed

No deployments
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.

Docker --name collision from leftover stopped containers (exit code 125)

1 participant