Bot keeps getting SIGTERM after 5 seconds - Why?
arunabhamaity148-cell
FREEOP

5 months ago

Hi! My Python trading bot is getting killed by Railway after just 5 seconds.

**What's happening:**

- Bot starts successfully

- Health endpoint /health works (returns 200)

- After exactly 5 seconds → receives SIGTERM (signal 15)

- Container stops

**My setup:**

- Python 3.11

- railway.toml configured with health checks

- Health server on port 8080

- No crashes - just external kill signal

**Logs show:**

2026-02-02 15:39:25 - Bot starts

2026-02-02 15:39:30 - SIGTERM received (5 seconds later!)

**What I've tried:**

- Added railway.toml

- Health check endpoint working

- Port 8080 exposed

- No memory/CPU issues

**Question:** Why is Railway sending SIGTERM so quickly? Is there a timeout I'm missing?

Project: tender-adaptation (production service)

0 Replies

Welcome!

Sign in to your Railway account to join the conversation.

Loading...