Method for determining task dispatching time, and method and equipment for determining task execution time
A technology for scheduling time and execution time, applied in the field of electronic information, can solve problems such as scheduling confusion, Task2 cannot achieve correct scheduling, and cannot be correctly scheduled.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 at 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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


