Users Pricing

forum

Home Forums Can an overlapped IIS app pool recycle run my background job twice? – MindStick

Can an overlapped IIS app pool recycle run my background job twice?

SundarLal Sharma 224 06 Oct 2026

We have a scheduled background task hosted inside an IIS application. When its app pool recycles, the new worker process can start before the old one has finished shutting down. That makes me wonder whether both processes can briefly run the same job.

Has anyone dealt with duplicate work during an overlapped recycle? I’m especially interested in what happens to jobs that take longer than the app’s shutdown time limit, and whether the answer changes with the recycle reason.

The job updates shared database records, so I’d rather understand the edge cases before relying on IIS lifecycle events to coordinate it.


2 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md