Skip to content

fix(gateway): remove stale PID files before startup#13934

Closed
halmisen wants to merge 1 commit into
NousResearch:mainfrom
halmisen:fix/gateway-stale-pid-cleanup
Closed

fix(gateway): remove stale PID files before startup#13934
halmisen wants to merge 1 commit into
NousResearch:mainfrom
halmisen:fix/gateway-stale-pid-cleanup

Conversation

@halmisen

Copy link
Copy Markdown

Summary\n- force-unlink PID files after they have already been classified as invalid or stale\n- add a regression test for stale gateway.pid in HERMES_HOME blocking O_EXCL startup\n\nFixes #13655\n\n## Tests\n- uv run --extra dev python -m pytest tests/gateway/test_status.py -q\n- scripts/run_tests.sh tests/gateway/test_status.py

@alt-glitch alt-glitch added type/bug Something isn't working P1 High — major feature broken, no workaround comp/gateway Gateway runner, session dispatch, delivery labels Apr 22, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Related: PR #13709 and PR #13872 address the same stale PID cleanup for #13655 — maintainers should pick one.

@teknium1

Copy link
Copy Markdown
Contributor

Thanks for the contribution @halmisen! This fix was implemented on main before this PR could be merged.


Automated hermes-sweeper review:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P1 High — major feature broken, no workaround type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants