Skip to content
Prathamesh Kasar
Work

Production case study

A silent stop in a nightly batch job

A nightly batch job stopped partway with no error. I traced it to a blocking external call with no timeout.

Role
Developer
When
2025–2026
Where
A franchise management portal, a nightly batch job
Stack
  • ASP.NET MVC 5
  • SQL Server

10 of 42students processed before the silent stop

Context

The portal runs a nightly batch job that works through a list of students in one go. When it works, nobody thinks about it.

Problem

One night the job processed 10 students out of 42 and then simply stopped. There was no crash and no error to point at. It didn't fail loudly; it went quiet.

Investigation

A job that stops without an error is usually not failing; it is waiting. So the question changed from "what threw?" to "what is it waiting for?"

I traced the job's path for each student. Most of the work is local: reading records and preparing the request. One step is not: the call out to an external service.

Root cause

The external call was blocking and had no timeout. When the service did not answer, the job waited for it indefinitely, and every student after that point was never reached.

What the fix needs

The fix follows from the cause: a call to a system you don't control needs a timeout, and a batch needs to keep going when one item fails. Each item can then fail on its own and be reported, instead of holding up the rest of the list.

Result

A silent stop with no error became a named, explainable cause the team could act on.

What I learned

Every external call needs a timeout and a failure path. Silent failures cost more than loud ones, because nobody starts looking.