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

Method for determining task scheduling time, method and device for determining task execution time

A technology of scheduling time and execution time, which is applied in the field of electronic information, can solve the problems that Task2 cannot achieve correct scheduling, scheduling time dependence cannot be realized, and correct scheduling cannot be achieved

Active Publication Date: 2019-04-12
ALIBABA (CHINA) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The problem in similar task scheduling is that if there is a data dependency between multiple tasks, especially in a distributed architecture, tasks are scheduled and executed by different entities, and the existing technology can only pass time to ensure the scheduling order between tasks, which can easily lead to scheduling confusion
If a task fails, it is difficult to make its dependent tasks not execute
Moreover, it is almost impossible to achieve complex scheduling time dependence. For example, the scheduling time is 8, 96, 18*** (executed once every day at 6:08, 6:09, 18:08, 18:09) depending on the scheduling time. 1010, 20*** (executed once a day at 10:10, 20:10 each), it is almost impossible to schedule correctly according to crontab
[0012] Further, for cross-dependence tasks, crontab is helpless, such as Figure 12 As shown, Task2 depends on Task1 of Pipeline1 (scheduling time is 30 minutes per hour), and depends on Task5 of Pipeline2 (scheduling time is 10 minutes per hour), but Task4 of Pipeline2 depends on Task3 of Pipeline1 and Task5 of Pipeline2 It also depends on Task4, which causes the dependency of Task2 to be cross-dependent, so Task2 cannot achieve correct scheduling in the traditional crontab mechanism
[0013] The inventors of the present invention have realized that in task scheduling, especially in the scheduling of crontab tasks, there will be situations where tasks cannot be scheduled correctly due to cross-dependence or complex dependencies, and this problem has never been solved in the prior art has been solved, so it is urgent to propose a method and device for determining the scheduling time of tasks to solve this problem

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
  • Method for determining task scheduling time, method and device for determining task execution time
  • Method for determining task scheduling time, method and device for determining task execution time
  • Method for determining task scheduling time, method and device for determining task execution time

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0085] figure 1 A flowchart of a method for determining task scheduling time according to an embodiment of the present invention is shown.

[0086] Such as figure 1 As shown, the method starts in step S101. Then, in step 102, the dependency relationship between the first task and the second task is judged. It should be noted that the descriptions of the first task, the second task, task a, task b, etc. appearing in this embodiment and other embodiments are defined for the convenience of explanation, and are not intended to specifically refer to one, some two or Some tasks, according to various embodiments of the present invention, the tasks may refer to any tasks.

[0087] In step S103, it is determined whether the first task depends on the second task, and if the first task does not depend on the second task, the first task is scheduled according to the original scheduling time of the first task according to step S104. If in step S103, it is determined that the first ta...

no. 1 example

[0092] The first embodiment of the present invention has been described above with reference to the accompanying drawings. According to this embodiment, complex dependencies can be passed through the scheduling mechanism to make task scheduling simple, feasible, correct, and efficient.

[0093]

[0094] A specific example according to the first embodiment of the present invention will be described below. When determining the task scheduling mechanism between two tasks with dependencies, the coarse-grained task priority is higher than the fine-grained task priority, and tasks with the same granularity The first principle is that the later the scheduling time, the higher the priority.

[0095] Take crontab task scheduling as an example, the scheduling time is: task a of 10**** has a day granularity of 24, that is, the task is executed every 10 minutes, and the scheduling time is: task b of 01****, its day granularity If it is 1, it executes once every day at 1:00.

[0096] If...

Embodiment 2

[0105] The second embodiment of the present invention will be described below according to the accompanying drawings, and the same or similar parts of this embodiment and the first embodiment will not be repeated below. figure 2 A device 200 that can be used to implement the present invention is shown, and the device can be a network server, a computer host, and the like. Such as figure 2 As shown, the device 200 includes: a first judging means 201 for judging the dependency between the first task and the second task; a second judging means 202 for determining the first judging means 201 When a task depends on the second task, judge the relationship between the scheduling time granularity of the first task and the second task, and judge when the scheduling time granularity of the first task is not equal to the scheduling time granularity of the second task The result is sent to the scheduling device 203, and when the scheduling time granularity of the first task is equal to...

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 a method and equipment for determining the task dispatching time. According to the method, the relying relationship between a first task and a second task is judged; when the condition that the first task relies on the second task is determined, the dispatch time granularity relationship of the first task and the second task is judged; when the dispatching time granularity of the first task is not equal to the dispatching time granularity of the second task, the dispatching time of the task with the thicker dispatching time granularity in the first task and the second task is used for dispatching the first task; when the dispatching time granularity of the first task equals to the dispatching time granularity of the second task, the relationship of the first time dispatching time of the first task and the second task is judged; the dispatching time of the task with the later first time dispatching task in the first task and the second task is used for dispatching the first task. Meanwhile, the invention also provides a method for determining the task execution time and a method and equipment for determining the task execution time for each task in the network. Through the method and the equipment provided by the invention, the complicated relying relationship can be simplified through a dispatching mechanism, so that the task dispatching becomes simple, feasible, correct and efficient.

Description

technical field [0001] The present invention relates to electronic information technology, and more specifically, to a method for determining task scheduling time, a method and equipment for determining task execution time. Background technique [0002] Task scheduling is a common operating mechanism in operating systems and database management. In task scheduling, for example, the more commonly used method is to use crontab under the Linux system to schedule executable tasks at regular intervals. For example, the basic format of crontab is the basic format: [0003] * * * * * command [0004] Minute Hour Day Month Week Order [0005] The first column indicates the minute 1~59, expressed by * or * / 1 every minute [0006] The second column represents hours 1 to 23 (0 represents 0 o'clock) [0007] The third column represents the date 1~31 [0008] Column 4 represents the month 1 to 12 [0009] The fifth column identification number week 0~6 (0 means Sunday) [0010] Co...

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 Patents(China)
IPC IPC(8): G06F9/38
CPCG06F9/3869
Inventor 谢磊郭威
Owner ALIBABA (CHINA) CO LTD