Skip to content

fix(server): harden liftOver/TransVar subprocesses and auto-restart t… - #65

Merged
arine merged 1 commit into
masterfrom
marrvel2-api-crashes-14ff85
Aug 23, 2026
Merged

fix(server): harden liftOver/TransVar subprocesses and auto-restart t…#65
arine merged 1 commit into
masterfrom
marrvel2-api-crashes-14ff85

Conversation

@arine

@arine arine commented Aug 23, 2026

Copy link
Copy Markdown
Member

…he API container

TransVar and liftOver were spawned with no timeout, so a hung binary (bad input, disk stall reading the reference files) left the request hanging forever - the same failure mode just fixed for external HTTP calls in f0f33a3. Both now get a timeout with SIGKILL as the fallback.

liftover.js also leaked its temporary BED files on every error path, only cleaning up on full success; over time this fills /tmp and starves the host. Cleanup now runs in a finally block regardless of outcome.

Finally, the server container had no restart policy, so any crash left the API down until someone SSHed in to run docker compose up again. restart: unless-stopped lets Docker recover it automatically.

…he API container

TransVar and liftOver were spawned with no timeout, so a hung binary (bad
input, disk stall reading the reference files) left the request hanging
forever - the same failure mode just fixed for external HTTP calls in
f0f33a3. Both now get a timeout with SIGKILL as the fallback.

liftover.js also leaked its temporary BED files on every error path, only
cleaning up on full success; over time this fills /tmp and starves the
host. Cleanup now runs in a finally block regardless of outcome.

Finally, the server container had no restart policy, so any crash left
the API down until someone SSHed in to run docker compose up again.
restart: unless-stopped lets Docker recover it automatically.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@arine
arine merged commit c384c9b into master Aug 23, 2026
2 of 4 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