We have a web app built in asp.net core 2.0 hosted on IIS. From this app we are invoking a console app which performs queued request from database.
Problem is that application is used by very less people so it and the console process performs long time taking processing. But this console app stops automatically when web application shuts down. From event log we get following output. (source: IIS AspNetCore module)
Sent shutdown HTTP message to process '3548' and received http status '202'.
We tried to set the web app's StartMode to always running in IIS application pool advanced setting. But still when no one is using the application after some time it stops.
Any solution?