How to handle SIGTERM in Cloud Run without losing work
Handle SIGTERM in Cloud Run without losing work: stop new tasks, persist state outside the container, and test the worker before 10 seconds run out in CI.
Accepting new clients
You run the business.
I handle the software.
I'm Samuel Fajreldines, a senior software engineer. Growing U.S. businesses hire my team to become their software department, not a vendor they rehire every quarter. I set the technical direction, my team builds and ships, and I stay accountable for everything that goes out.
In-depth guides, tutorials and real-world engineering write-ups by Samuel Fajreldines on JavaScript & TypeScript, Node.js, Artificial Intelligence, DevOps, Serverless, testing and software architecture.
Handle SIGTERM in Cloud Run without losing work: stop new tasks, persist state outside the container, and test the worker before 10 seconds run out in CI.
Learn when to use route.fulfill, route.fetch, or HAR in Playwright, then pair the mock with a real check so API failures stay visible in your CI suite.
Host a remote MCP server in TypeScript with Streamable HTTP, host protection, authentication, stateless scaling, independent verification, and limits.
Learn to use coding agents as teachers, partners, and reviewers in a five-step loop that preserves fundamentals, testing, and technical independence.
4 signs your AI agent needs explicit states. Model TypeScript transitions, limit tools, and test the flow without treating the model as deterministic.