Aspx runs long-time tasks and aspx long-time tasks

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.