Aspx runs long-time tasks and aspx long-time tasks
Recently, a service is used to break down orders, calculate available inventory, and consume daily data. It is released as a WebService and mounted on IIS, the client may close the task after it starts (wait for the next day to view the result)
The basic practice is to run the task in an independent thread and write some status/progress to the global variable (static type variable or Application) during the running process ), the client detects these variables at intervals to display the execution status/progress.
The worker process is recycled.
Settings reference:
A general rule indicates a specific collection time, and the task cannot be started before the collection time point, because the w3p.exe process is not allowed to be killed.
You need to cancel the idle time recycle option. The idle time indicates that no request is received.