Hello,
We have a web application that needs to process a large amount of data and push messages to a series of MSMQueues. This operation is likely to take upwards of 10 minutes but we want a response back (consisting of an ID) quickly. Therefore, we have implemented a system that generates the ID and starts the push process on a separate thread, then returns the ID.
This works fine, but our only concern is when IIS is restarted. We've done some testing and IISRESET kills the worker thread even if our thread hasn't finished queueing messages. Ideally, we'd like to resart IIS in a way where our thread would continue to run until it's finished.
Passing the /NOFORCE switch to IISRESET seems to have no effect.
Does anyone know a way we could ensure that IISRESET waits for our worker thread to complete its processing before restarting IIS.
Thanks,
Steve