Unlock instant, AI-driven research and patent intelligence for your innovation.

Task scheduling method and device

A task scheduling and task technology, applied in multi-programming devices, resource allocation, special data processing applications, etc., can solve problems such as inaccuracy and missing tasks, and achieve the effect of avoiding inaccuracy and missing tasks

Active Publication Date: 2018-09-21
CHINA UNIONPAY
View PDF2 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a task scheduling method and device to solve the problems of inaccurate processing task time and missing tasks in the prior art

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
  • Task scheduling method and device
  • Task scheduling method and device
  • Task scheduling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments . Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0025] figure 1 A schematic diagram of the architecture of a distributed scheduling system applying the embodiment of the present invention is shown. Such as figure 1 As shown, the distributed scheduling system architecture may include a task database 101 , a scheduling cluster 102 and a business cluster 103 . The communication between each cluster is based on a custom protocol or based on a TCP / IP network communication protocol. In the...

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 embodiment of the invention relates to the task scheduling field, in particular to a task scheduling method and device. The task scheduling method and device are used for solving the problem of inaccuracy of the task generation moment in the prior art. According to the embodiment, a scheduling node acquires a current record corresponding to a to-be-processed task in a task database; the current record comprises a task generation identifier and an optimistic lock version number; when the scheduling node determines that the task generation identifier is consistent with a local task generation identifier locally stored in the scheduling node, the optimistic lock version number and the task generation identifier are updated; the scheduling node sends an update message to the task database,wherein the update message comprises the updated optimistic lock version number and the updated task generation identifier; the update message is used for making the task database determine whether to update the current record; the scheduling node receives an update response sent by the task database; and whether the to-be-processed task is triggered is determined according to the update response. Through the task scheduling method and device, the problems of inaccuracy of the task generation moment and task missing in the prior art can be avoided.

Description

technical field [0001] The embodiments of the present invention relate to the field of task scheduling, and in particular, to a task scheduling method and device. Background technique [0002] At present, there are often many tasks that need to be processed regularly. For example, the task of generating weekly reports needs to be executed once a week, the task of sending emails needs to be executed once every day at 3:00 am, the task of analyzing logs needs to be executed once every day at 1:00 am, and the task of cleaning logs needs to be executed every day at 12:00 am Once; the task of information collection needs to be performed every two hours, etc. [0003] These tasks have something in common: they need to be executed periodically. For such tasks that need to be periodically and regularly executed, there are generally two commonly used methods in the prior art. The first way is to generate the next task one cycle after the completion of the scheduling node generatio...

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/50G06F17/30
CPCG06F9/5016G06F9/5083
Inventor 田龙辉李松倪向远田丰
Owner CHINA UNIONPAY