Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Automatic elastic task scheduling method

A scheduling and task technology, applied in the direction of program control design, multi-program device, program startup/switching, etc., can solve problems such as difficulty, inflexibility of timing scheduling task system, time-consuming and other problems

Inactive Publication Date: 2020-06-12
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Although it is quite fast and simple to schedule scheduled tasks through Spring annotations and xml methods, and has the advantage of not losing tasks when the service is closed, it is not easy for users to frequently change the content of scheduled tasks such as Trigger type and Trigger time. , code must be changed frequently, less flexible
[0004] The Java scheduled task tool (Scheduler) can improve the inflexibility of the Spring scheduled task system, but the loss of tasks after closing the service is its shortcoming. When restarting the service, the user must manually reset the timing again. Task scheduling, if the number of scheduled tasks is set is too large, it will be time-consuming and inefficient. Even if the database is used for persistence, if the database records the next trigger time when the service is closed, the service cannot be restarted according to the originally set trigger time calculation. trigger time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic elastic task scheduling method
  • Automatic elastic task scheduling method
  • Automatic elastic task scheduling method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be described in detail below in conjunction with the accompanying drawings and through specific embodiments. The following embodiments are explanations of the present invention, but the present invention is not limited to the following embodiments.

[0038] Such as figure 1 As shown, an automated flexible task scheduling method provided in this embodiment implements task scheduling by the Java scheduled task scheduling tool (Scheduler). Its related parameters are saved or updated to the database. When the service is restarted, in order to reschedule the saved scheduled tasks, the saved scheduled tasks are retrieved from the database. If the scheduled task is triggered next time, its rescheduled trigger will be obtained according to the saved related parameters After the time, add it to the task scheduler for rescheduling.

[0039] It should be noted that when rescheduling, the tasks that have not been rescheduled are sequentially taken out f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an automatic elastic task scheduling method, which realizes task scheduling by a Java timed task scheduling tool, and comprises the following steps of: before closing a service, storing or updating a scheduling task and related parameters thereof into a database; when the service is restarted, the stored scheduling task is taken out of the database, and if the scheduling task is triggered next time, the scheduling task is added into the task scheduler to be rescheduled after the rescheduling triggering time of the scheduling task is obtained according to the stored relevant parameters. According to the method, on the premise of ensuring the elastic scheduling, the service task can be closed without losing, and if the service is closed and the tracker is missed, thenext tracker time can also be calculated by restarting the service.

Description

technical field [0001] The invention relates to the field of task scheduling, in particular to an automatic flexible task scheduling method. Background technique [0002] Most of the current related task scheduling uses Spring's annotation technology or xml to directly write the Trigger type and Trigger time in the code, and then simply set the Trigger type and time to achieve the purpose of timing the trigger task. [0003] Although it is quite fast and simple to schedule scheduled tasks through Spring annotations and xml methods, and has the advantage of not losing tasks when the service is closed, it is not easy for users to frequently change the content of scheduled tasks such as Trigger type and Trigger time. , the code must be changed from time to time, less flexible. [0004] The Java scheduled task tool (Scheduler) can improve the inflexibility of the Spring scheduled task system, but the loss of tasks after closing the service is its shortcoming. When restarting th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48
CPCG06F9/4881
Inventor 刘柏辰
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products