Introduction to MVC architecture-self-running tasks

Source: Internet
Author: User

Example products based on the ASP. NET MVC 5.0 Framework, Source: Http://www.jinhusns.com/Products/Download

Schedule and execute some actions that need to be timed to be triggered or processed in a program by self-running tasks:
You can configure related rules to enable tasks to run at a set period or point in time.
You can record the exceptions that occur during task execution in the log.
You can easily edit the task's time rule, disable the related configuration for tasks such as enable status.

The core of our self-running task based on the Quartz.net framework is the scheduler's timing scheduling development.

Usage examples:
The implementation of each task is implemented primarily through the implementation of the ITask interface and requires a task initialization configuration in the Tn_taskdetails table, in addition to any additional work required.

The relevant initialization data needs to be added to the database.

Settings for the time expression in Quartz:
Time format: s>m>h>d>m>w (?) >y (?), respectively: sec > Min > Hour > Day > Month > Week > Year

Example:
0 59 23 * *? To start daily 23:59:00
0 11,12 * *? Perform tasks for 11:01,11:02,11:03;12:01,12:02,12:03 per day
0 0/5 14 * *? Every afternoon from 2 to 2:59 on the start of the hour, 5 points per limit trigger)
0 10,44 14? 3 WED March every Wednesday pm 2:10 and 2:44 Trigger
0 15 10? * Mon-fri from Monday to Friday every morning 10:15
0 15 10 * *? 2005 2005 Daily 10:15 Trigger
0 0-5 14 * *? Every afternoon from 2 to 2:05 per minute.

Online Generator: http://cron.qqe2.com/

Introduction to MVC architecture-self-running tasks

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.