Task scheduling method and device

Through task scheduling methods and devices, the priority of post-tasks is automatically adjusted using execution indicators and scheduling strategies, solving the problem of erroneous data propagation caused by manual processing delays, and improving the accuracy and efficiency of big data jobs.

CN118897720APending Publication Date: 2024-11-05HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310960661.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-05
Filing Date
2023-08-01
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

In big data operations, due to manual processing delays, wrong data flows in big data clusters, affecting the accuracy and efficiency of subsequent tasks.

Method used

Provide a task scheduling method and device, by obtaining task execution indicators and scheduling policies, automatically adjusting the execution priority of post-tasks or pausing execution, ensuring that the execution status of the pre-tasks meets expectations, thereby reducing the impact of the overall task.

Benefits of technology

Automatic scheduling of post-tasks is realized, which avoids the propagation of wrong data, improves the accuracy and efficiency of tasks, and reduces resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897720A_ABST
    Figure CN118897720A_ABST
Patent Text Reader

Abstract

The invention provides a task scheduling method and device. The method comprises the steps that an index scheduling strategy of at least one second task is obtained, and the at least one second task is a post-task of a first task; based on the execution index of the first task and the configured index scheduling strategy, the execution priority of the at least one second task is adjusted or execution of the at least one second task is paused, so that the execution state of the post-task of the first task is adjusted in time based on the execution condition of the first task; the influence of the abnormal execution state of the first task on the post-task is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China on May 5, 2023, with application number 202310497790.8 and application name “A task scheduling method, device and system”, all contents of which are incorporated by reference in this application. Technical Field

[0002] The embodiments of the present application relate to the field of computer technology, and in particular to a task scheduling method and device. Background Art

[0003] During the calculation process of big data jobs, operation and maintenance personnel need to monitor the accuracy of data in each calculation link at all times. Accordingly, operation and maintenance personnel will configure the corresponding audit indicators (also called audit tasks) for tasks (or jobs) so that operation and maintenance personnel can obtain the working status of the big data cluster and the accuracy of the job results based on the audit results. However, due to the delays in manual processing, erroneous data will continue to circulate in the big data cluster, causing subsequent tasks to continue to calculate using the erroneous data as input data. Summary of the invention

[0004] The present application provides a task scheduling method and device, which can realize automatic scheduling of post-tasks.

[0005] In the first aspect, the present application provides a task scheduling method. Among them, the tasks involved in the present application include a first task and at least one second task, and at least one second task is a post-task of the first task, and the method includes: obtaining an indicator scheduling strategy for at least one second task, and the indicator scheduling strategy is used to indicate the adjustment of the execution priority of at least one second task or to indicate the suspension of the execution of the second task. And, obtain the execution indicator of the first task. And, based on the execution indicator of the first task and the indicator scheduling strategy of at least one second task, adjust the execution priority of at least one second task or suspend the execution of at least one second task. In this way, the present application realizes automatic adjustment of the execution status of the post-task based on the execution status of the predecessor task, thereby reducing the impact of the predecessor task on the overall task.

[0006] Exemplarily, the execution indicator may optionally be the audit result of the first task.

[0007] Exemplarily, the indicator scheduling strategy may also be considered as the indicator scheduling strategy of the first task, and may be understood as being used to schedule all post-tasks of the first task.

[0008] Exemplarily, the post-task can be understood as being dependent on the execution of the pre-task, that is, the input of the post-task is the output of the pre-task.

[0009] In a possible implementation, the indicator scheduling strategy includes an indicator condition, and the indicator condition is used to match the execution indicator of the first task. In this way, the present application pre-configures the indicator condition that matches the task, so that based on the indicator condition, it can measure whether the execution status of the preceding task meets expectations.

[0010] In one possible implementation, based on the execution index of the first task and the index scheduling strategy of at least one second task, the execution priority of at least one second task is adjusted or the execution of at least one second task is suspended, including: if the execution index matches the index condition, it is determined that the execution result of the first task is abnormal. Lower the execution priority of at least one second task. In this way, the present application can determine whether the execution of the predecessor task meets expectations through the index condition. If the predecessor task is abnormal, the execution of the successor task can be delayed by lowering the priority of the successor task, thereby reserving enough time for the user to process.

[0011] In one possible implementation, based on the execution index of the first task and the index scheduling strategy of at least one second task, the execution priority of at least one second task is adjusted or the execution of at least one second task is suspended, including: if the execution index matches the index condition, it is determined that an error occurs in the execution result of the first task. Suspend the execution of at least one second task. In this way, the present application can determine whether the execution of the predecessor task meets expectations through the index condition. If an error occurs in the predecessor task, the successor task can be suspended to avoid the problem of the successor task continuing to execute based on the erroneous result of the predecessor task, thereby reducing resource waste.

[0012] In one possible implementation, based on the execution index of the first task and the index scheduling strategy of at least one second task, the execution priority of at least one second task is adjusted or the execution of at least one second task is suspended, including: if the execution index matches the index condition, it is determined that the execution time of the first task exceeds the expected time. Increase the execution priority of at least one second task. In this way, the present application monitors the execution time of the predecessor task, so that when the predecessor task exceeds the predetermined time, the priority of the successor task can be increased to reduce the impact of the predecessor task timeout on the overall task.

[0013] In a possible implementation, the method further includes: obtaining a task scheduling policy of at least one second task, the task scheduling policy is used to indicate adjustment of the execution priority of at least one second task or to indicate suspension of the execution of the second task, the task scheduling policy includes a task condition, and the task condition is used to match the execution result of the first task. Obtain the execution result of the first task. Based on the execution index of the first task matching the index scheduling policy of at least one second task, determine that the index scheduling policy of the second task is to adjust the execution priority of the second task, and based on the execution result of the first task matching the task scheduling policy of at least one second task, determine that the task scheduling policy of the second task is to adjust the execution priority of the second task. Based on the execution index of the first task and the index scheduling policy of at least one second task, adjust the execution priority of the second task. The present application can also set the task scheduling policy and the corresponding task condition to determine whether the execution time of the predecessor task meets expectations. In addition, in the case where the priority adjustment method indicated by the task scheduling policy conflicts with the priority adjustment method indicated by the index scheduling policy, the priority of the post-task is adjusted in the present application based on the method indicated by the index scheduling policy.

[0014] In a possible implementation, before adjusting the execution priority of at least one second task or suspending the execution of at least one second task, the method further includes: obtaining dependency information of the first task. Based on the dependency information, determining that at least one second task is a post-task of the first task. In this way, by analyzing the dependency, the present application can determine all post-tasks of the predecessor task, and configure a corresponding scheduling strategy for the post-task.

[0015] In a second aspect, the present application provides a task scheduling method, wherein the task includes a first task and at least one second task, wherein the at least one second task is a post-task of the first task, and the method includes: obtaining a task scheduling policy for at least one second task, wherein the task scheduling policy is used to indicate adjustment of the execution priority of at least one second task or to indicate suspension of the execution of the second task. Obtain the execution result of the first task. Based on the execution result of the first task and the task scheduling policy of at least one second task, adjust the execution priority of at least one second task or suspend the execution of at least one second task. In this way, the present application can perform task scheduling on post-tasks according to the execution result of the predecessor task by setting the task scheduling policy.

[0016] In a possible implementation, the task scheduling strategy includes a task condition, and the task condition is used to match the execution result of the first task.

[0017] In a possible implementation, based on the execution result of the first task and the task scheduling strategy of the at least one second task, adjusting the execution priority of the at least one second task or suspending the execution of the at least one second task includes: if the execution result matches the task condition, determining that the execution of the first task has failed. Suspending the execution of the at least one second task. In this way, in the case of the execution failure of the predecessor task, the successor task is immediately suspended to stop the continued execution of the entire task, thereby avoiding a long wait for the subsequent task.

[0018] In a possible implementation, before adjusting the execution priority of at least one second task or suspending the execution of at least one second task, the method further includes: obtaining dependency information of the first task. Based on the dependency information, determining that at least one second task is a post-task of the first task. In this way, by analyzing the dependency, the present application can determine all post-tasks of the predecessor task, and configure a corresponding scheduling strategy for the post-task.

[0019] In a third aspect, the present application provides a task scheduling device, which is applied to tasks, wherein the tasks include a first task and at least one second task, and the at least one second task is a post-task of the first task. The device includes: a scheduling strategy setting module, which is used to obtain an indicator scheduling strategy of at least one second task, and the indicator scheduling strategy is used to indicate adjustment of the execution priority of at least one second task or to indicate suspension of the execution of the second task; a task scheduling module, which is used to obtain the execution indicator of the first task; and the task scheduling module is also used to adjust the execution priority of at least one second task or suspend the execution of at least one second task based on the execution indicator of the first task and the indicator scheduling strategy of at least one second task.

[0020] In a possible implementation, the indicator scheduling strategy includes an indicator condition, and the indicator condition is used to match the execution indicator of the first task.

[0021] In a possible implementation, the task scheduling module includes a task priority adjustment module, the task priority adjustment module is used to: if the execution indicator matches the indicator condition, determine that the execution result of the first task is abnormal; reduce the execution priority of at least one second task;

[0022] In a possible implementation, the task scheduling module includes a task termination module, which is used to: if the execution index matches the index condition, determine that an error occurs in the execution result of the first task; and suspend the execution of at least one second task.

[0023] In a possible implementation, the task scheduling module includes a task priority adjustment module, which is used to: if the execution indicator matches the indicator condition, determine that the execution time of the first task exceeds the expected time; and increase the execution priority of at least one second task.

[0024] In one possible implementation, the scheduling strategy setting module is also used to obtain the task scheduling strategy of at least one second task, the task scheduling strategy is used to indicate the adjustment of the execution priority of at least one second task or to indicate the suspension of the execution of the second task, and the task scheduling strategy includes a task condition, and the task condition is used to match the execution result of the first task; the task scheduling module is also used to obtain the execution result of the first task; the task scheduling module is also used to match the indicator scheduling strategy of at least one second task based on the execution indicator of the first task, and determine that the indicator scheduling strategy of the second task is to adjust the execution priority of the second task, and match the task scheduling strategy of at least one second task based on the execution result of the first task, and determine that the task scheduling strategy of the second task is to adjust the execution priority of the second task; the task scheduling module is also used to adjust the execution priority of the second task based on the execution indicator of the first task and the indicator scheduling strategy of at least one second task.

[0025] In a possible implementation, the device further includes a dependency analysis module, which is used to: obtain dependency information of the first task; and determine, based on the dependency information, that at least one second task is a subsequent task of the first task.

[0026] In a fourth aspect, the present application provides a task scheduling device, which is applied to tasks, wherein the tasks include a first task and at least one second task, and the at least one second task is a post-task of the first task. The device includes: a scheduling policy setting module, which is used to obtain the task scheduling policy of at least one second task, and the task scheduling policy is used to indicate adjustment of the execution priority of at least one second task or to indicate suspension of execution of the second task; a task scheduling module, which is used to obtain the execution result of the first task; and the task scheduling module is also used to adjust the execution priority of at least one second task or suspend execution of at least one second task based on the execution result of the first task and the task scheduling policy of at least one second task.

[0027] In a possible implementation, the task scheduling strategy includes a task condition, and the task condition is used to match the execution result of the first task.

[0028] In a possible implementation, the task scheduling module includes a task termination module, and the task termination module is used to: if the execution result matches the task condition, determine that the execution of the first task has failed; and suspend the execution of at least one second task.

[0029] In a possible implementation, the device further includes a dependency analysis module, which is used to: obtain dependency information of the first task; and determine, based on the dependency information, that at least one second task is a subsequent task of the first task.

[0030] In a fifth aspect, an embodiment of the present application provides a computing device cluster, including at least one computing device, each computing device including a processor and a memory. The processor of at least one computing device is used to execute instructions stored in the memory of at least one computing device, so that the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect.

[0031] In a sixth aspect, an embodiment of the present application provides a computing device cluster, including at least one computing device, each computing device including a processor and a memory. The processor of at least one computing device is used to execute instructions stored in the memory of at least one computing device, so that the computing device cluster executes the method in the second aspect or any possible implementation of the second aspect.

[0032] In a seventh aspect, an embodiment of the present application provides a computer program product comprising instructions, characterized in that when the instructions are executed by a computing device cluster, the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect.

[0033] In an eighth aspect, an embodiment of the present application provides a computer program product comprising instructions, characterized in that when the instructions are executed by a computing device cluster, the computing device cluster executes the method in the second aspect or any possible implementation of the second aspect.

[0034] In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that it includes computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect.

[0035] In the tenth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that it includes computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method in the second aspect or any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 The structure diagram of the cloud management platform is shown as an example;

[0037] Figure 2 A schematic diagram of a task configuration flow chart for exemplary purposes;

[0038] Figure 3 A schematic diagram of an exemplary user interface;

[0039] Figure 4 A diagram showing an exemplary task dependency relationship;

[0040] Figure 5is a schematic diagram of a priority queue shown as an example;

[0041] Figure 6 A schematic diagram of an audit task configuration process flow diagram is shown as an example;

[0042] Figure 7 A schematic diagram of a user interface for exemplarily showing audit configuration information;

[0043] Figure 8 A schematic diagram of a user interface for an exemplary task audit configuration;

[0044] Fig. 9 The following is a schematic diagram of an audit process flow diagram shown as an example;

[0045] Fig.10 is a schematic diagram of the structure of a task scheduling device shown as an example;

[0046] Fig.11 A schematic diagram of the structure of a computing device is shown as an example;

[0047] Fig.12 A schematic diagram of the structure of a computing device is shown as an example;

[0048] Fig.13 The figure is a schematic diagram of the structure of a computing device cluster shown as an example. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0050] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0051] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

[0052] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0053] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0054] Before describing the technical solution of the embodiment of the present application, the background technology involved in the embodiment of the present application is briefly introduced:

[0055] Public cloud is a cloud platform provided by third-party public cloud providers for individuals or enterprises. In the public cloud, the hardware, software and other structures are owned and managed by the third-party public cloud providers.

[0056] The cloud platform, which may also be referred to as a cloud management platform or cloud management platform in the embodiments of the present application, is a software system for cloud technology (also known as cloud computing technology) services provided by a cloud provider, and is used to provide interfaces related to cloud services for tenants to remotely access cloud services. Tenants can log in to the cloud platform on the cloud service access page using a pre-registered account and password, and after a successful login, select and purchase the corresponding cloud service on the cloud service access page, such as object storage services, virtual machine services, container services, etc. Exemplarily, the cloud management platform can provide a unified entrance (also referred to as an operation and maintenance entrance), and users can access the cloud management platform through the unified entrance, and manage the cloud resources (including hardware and software) of the corresponding cloud through the cloud management platform.

[0057] Cloud services include computing services, storage services, virtual machine services, network services, etc. Any device or function that a user device can access on a cloud platform can be considered a service provided by the cloud platform.

[0058] Cloud resources are hardware resources (also referred to as cloud infrastructure or infrastructure) and software resources (also referred to as public cloud services) used to provide services. For example, the hardware resources corresponding to software resources such as computing services, storage services or network services include computing resources, storage resources or network resources. Optionally, computing resources include central processing unit (CPU) resources, memory resources and / or hard disk resources. For example, a user (also referred to as a tenant) purchases a large number of virtual machine resources, and a large number of applications (also referred to as cloud applications) are deployed on the virtual machine resources. In this example, the virtual machine and the applications in the virtual machine belong to the cloud service (i.e., software resources), and the server and other devices to which the virtual machine belongs are the corresponding hardware resources.

[0059] The task scheduling method in the embodiment of the present application can be applied to the cloud system, and can also be applied to the computing system of other structures, and the present application does not limit it. In the embodiment of the present application, only the task scheduling method in the cloud system is used as an example for explanation, and the task scheduling method in other computing systems can also refer to the method in the embodiment of the present application, and the present application does not limit it.

[0060] Figure 1 For an exemplary schematic diagram of the cloud management platform, please refer to Figure 1 ,The cloud management platform includes but is not limited to : single task configuration module, audit rule configuration module, task ,blood relationship parsing module, automatic scheduling control module, task priority automatic adjustment module and task automatic termination module.

[0061] Single task configuration module: When a user creates a task, he needs to set the task configuration information of the task (also known as basic scheduling information, which is not limited in this application). The single task configuration module obtains and saves the task configuration information corresponding to each task. Task configuration information includes but is not limited to: basic task configuration information, period configuration information, and automatic scheduling parameter configuration information.

[0062] The basic configuration information of the task includes but is not limited to: business name, task name, etc.

[0063] The cycle configuration information includes, but is not limited to: task type information, cycle type information, cycle length information, task dependency information, etc. The task dependency information is used to indicate the predecessor task that the task depends on (detailed description will be explained below).

[0064] The automatic scheduling parameter configuration information includes but is not limited to: task priority information and startup configuration information. Among them, the task priority information is used to indicate the execution priority of each task, which can also be understood as the execution order. Task dependency information, also known as blood relationship, is used to indicate the dependency between tasks. The startup configuration information is used to indicate whether the task "adjusts the execution priority according to the audit results" and "blocks the task according to the audit results". The specific description will be explained below.

[0065] Audit rule configuration module: After creating each task, the user can configure an audit task for at least one task. Audit tasks are used to detect the results of task execution. For example, audit tasks can be used to detect the degree of fluctuation of task results. The audit rule configuration module can obtain and save the audit rule configuration information corresponding to each task. The audit rule configuration information includes but is not limited to the rule name, rule type, rule description, and rule expression.

[0066] In the embodiment of the present application, the rule types include but are not limited to: indicator audit type and task audit type. The trigger conditions and adjustment methods of priority adjustment corresponding to the indicator audit type and the task audit type are different, and specific examples will be described below.

[0067] In the embodiment of the present application, the user can also set corresponding alarm strategies and scheduling strategies for each audit task based on the audit tasks corresponding to each task. The audit rule configuration module can obtain and save the alarm strategies and scheduling strategies (also called automatic operation and maintenance strategies) corresponding to each task (also understood as an audit task).

[0068] Alarm strategies include but are not limited to: alarm trigger conditions, alarm trigger methods, etc.

[0069] The automatic operation and maintenance strategy is used to indicate the triggering conditions and adjustment methods for adjusting the execution priority of a post-task (the specific description will be explained below), and the triggering conditions for suspending a post-task.

[0070] Task lineage analysis module: This module is used to obtain the lineage relationship (also called task dependency relationship) corresponding to each task, and identify all subsequent tasks of each task based on the lineage relationship, and output the task dependency file.

[0071] Automatic scheduling control module: This module is used to determine the task scheduling strategy based on the task lineage and audit results, where the task scheduling strategy can be understood as the operation to be performed on the task, such as adjusting the priority of the task or terminating the task. Accordingly, the automatic scheduling control module can schedule the task priority automatic adjustment module and the task automatic termination module based on the confirmation results.

[0072] Task priority automatic adjustment module: This module is used to adjust the priority of tasks.

[0073] Task automatic termination module: This module is used to terminate (or interrupt) a task.

[0074] The processing flow in the embodiment of the present application may mainly include three parts, the first part is the task configuration, the second part is the audit task configuration, and the third part is the audit processing flow.

[0075] Among them, task configuration mainly includes creating tasks, setting task information, etc. Audit task configuration mainly includes creating audit tasks and setting audit configuration. The audit processing flow is mainly based on audit tasks and audit configurations, obtaining the scheduling strategy corresponding to the task, and executing the scheduling strategy.

[0076] The following are detailed descriptions of the above three parts:

[0077] Figure 2 For an example of a task configuration flow chart, please refer to Figure 2 , including but not limited to:

[0078] S201, a single task configuration module obtains task configuration information.

[0079] Exemplarily, the cloud management platform provides a user interface, and users (or tenants, which can also be understood as operation and maintenance personnel, etc., are not limited in this application) can create tasks on the user interface and set corresponding task configuration information.

[0080] Figure 3 For an exemplary user interface diagram, please refer to Figure 3 The basic configuration information of the task includes but is not limited to: business name (for example, cloud business revenue), task name (for example, daily revenue calculation for China), output Hive table, and responsible person. For example, Figure 3 The task shown is used to calculate the cloud business revenue, specifically the daily revenue in China.

[0081] In this example, the cycle configuration information includes, but is not limited to: task type information, cycle type information, cycle length information, task dependency information, and the like. Figure 3 The task type, cycle type and other information shown in are only illustrative examples and can be set according to actual needs. This application does not limit it.

[0082] Exemplarily, task dependencies are used to indicate dependencies between tasks, and can also be understood as blood relationships, which are not limited in this application. Exemplarily, dependencies include predecessor tasks and successor tasks, where the successor task depends on the predecessor task, which can be understood as the input data of the successor task being the output data of the predecessor task, that is, only after the predecessor task is completed and the execution result (i.e., output data) is transmitted to the successor task, can the successor task continue to execute its own task based on the acquired input data (i.e., the execution result of the predecessor task).

[0083] like Figure 4 As shown, the tasks in this example include Task 1 to Task 11. Task 1 is the predecessor task of Task 4 and Task 7, and Task 4 and Task 7 are the successor tasks of Task 1; Task 2 is the predecessor task of Task 5 and Task 7, and Task 5 and Task 7 are the successor tasks of Task 2; Task 3 is the predecessor task of Task 6 and Task 8, and Task 6 and Task 8 are the successor tasks of Task 3. Task 4 is the predecessor task of Task 9, and Task 9 is the successor task of Task 4.

[0084] For example, combining Figure 3 and Figure 4 Taking the currently configured task as task 4 as an example, when configuring task 4, the task dependency information in the period configuration of task 4 includes the identification information of task 1, which is used to indicate that the predecessor task of task 4 is task 1.

[0085] Still refer to Figure 3 , the automatic scheduling parameter configuration information includes but is not limited to: task priority information and startup configuration information. Among them, the task priority information is used to indicate the execution priority of each task, which can also be understood as the execution order. The startup configuration information is used to indicate whether the task "adjusts the execution priority according to the audit results" and "blocks the task according to the audit results".

[0086] In the embodiment of the present application, the priority in the embodiment of the present application may include high priority, medium priority and low priority. Among them, the high priority has the highest priority and the low priority has the lowest priority. It should be noted that the priority in the embodiment of the present application is only an illustrative example and is not limited in the present application.

[0087] like Figure 5As shown, the cloud management platform maintains priority queues corresponding to different priorities, for example, a high priority queue corresponding to a high priority, a medium priority queue corresponding to a medium priority, and a low priority queue corresponding to a low priority. Exemplarily, the same priority queue adopts a first-in-first-out method. For example, both Task 4 and Task 5 are high priority tasks. During the execution process, Task 4 first obtains the input data required for its execution and enters the high priority queue. After Task 4 enters the queue, Task 5 obtains the input data required for execution and enters the high priority queue. Task 5 and Task 4 are both high priorities, but Task 5 is executed after Task 4. In other words, the task that enters the queue first in the same queue is executed first. Different priority queues are executed according to their priority order. For example, after the tasks in the high priority queue are executed in the order in the queue, the tasks in the medium priority queue are executed respectively according to the queuing order in the medium priority queue, and then the tasks in the low priority queue are executed respectively according to the queuing order in the low priority queue. For example, after Task 4, Task 5 and Task 6 in the high priority queue are all executed, Task 7 in the medium priority queue is executed, and after Task 7 is executed, Task 8 is executed. And, after task 8 is completed, task 11 is executed.

[0088] Please continue to refer to Figure 3 , illustratively, in an embodiment of the present application, a user can configure "whether to adjust the execution priority according to the audit results" and "whether to block the task according to the audit results" for the task. Among them, "whether to adjust the execution priority according to the audit results" is used to indicate whether the automatic scheduling control module and the task priority automatic adjustment module in the embodiment of the present application are allowed to adjust the priority of the task. "Whether to block the task according to the audit results" is used to indicate whether the automatic scheduling control module and the task automatic termination module in the embodiment of the present application are allowed to block (or can be understood as interrupting or pausing) the task. Users can configure at least one of "whether to adjust the execution priority according to the audit results" and "whether to block the task according to the audit results" for at least one task according to actual needs, and this application does not limit it.

[0089] Optionally, the above two configurations are enabled by default (they can also be disabled by default, which can be set according to actual needs and is not limited in this application).

[0090] S202: The single task configuration module records the task configuration information corresponding to each task.

[0091] Exemplarily, after the cloud management platform (specifically, the single task configuration module) obtains the task configuration information of each task, the task configuration information of each task can be saved in a database.

[0092] For example, when a user needs to view the configuration information of any task, the cloud management platform (specifically, the single task configuration module) can extract the corresponding task configuration information from the database based on the user operation and display it on the user interface.

[0093] S203, the computing node executes the task.

[0094] Exemplarily, the cloud management platform generates corresponding tasks based on the task configuration information obtained by the single dance configuration module, for example, generates N tasks. The cloud management platform can add tasks to corresponding priority queues based on the priorities corresponding to each task in the task configuration information. The cloud management platform can send execution instruction information to the computing node to instruct the computing node to start executing the task. The computing node responds to the instruction of the cloud management platform, reads the task from the priority queue, and executes the task, that is, the computing node executes each task in order according to the priority of the task.

[0095] Optionally, the computing node may execute N tasks in serial or parallel, which is not limited in this application.

[0096] Figure 6 This is a diagram of the audit task configuration process for example. Figure 6 , including but not limited to the following steps:

[0097] S601, the audit rule configuration module obtains audit task information.

[0098] During the calculation process of big data jobs, operation and maintenance personnel need to monitor the accuracy of data in each calculation link at all times. Therefore, they usually configure corresponding audit indicators for the job. According to the audit alarm situation, users can understand the working status of the entire big data cluster and the correctness of the results (i.e., the task execution results). For example, the audit task can be understood as the verification of the task results. For example, for Figure 3 For the daily revenue task for China shown in the figure, users can configure the audit task to obtain the fluctuation value of the daily revenue for China, and then based on the fluctuation, detect whether the task result obtained by the daily revenue task for China executed by the computing node is abnormal.

[0099] Exemplarily, a user (or tenant, which may also be understood as an operation and maintenance personnel, etc., and is not limited in this application) can create an audit task for at least one task on the user interface and set corresponding audit rule configuration information.

[0100] In the embodiment of the present application, the audit rule configuration information includes but is not limited to: rule name, rule type, rule description, rule expression, etc.

[0101] In the embodiment of the present application, the rule types include but are not limited to: indicator audit type and task audit type. The trigger conditions and adjustment methods of the priority adjustment corresponding to the indicator audit type and the task audit type are different.

[0102] Among them, the audit task of indicator audit type is used to detect whether the task execution result is normal. The audit task of task audit type is used to detect whether the task execution time is normal.

[0103] In an embodiment of the present application, situations in which the indicator audit is abnormal / erroneous may include but are not limited to: checking whether the indicator value meets expectations; checking whether there are duplicate values ​​for the primary key in the data table; checking the data consistency of the two tables; null value check (checking whether there are null values ​​in the data column); or, negative value check (checking whether there are negative values ​​in the data column), etc.

[0104] In an embodiment of the present application, users can configure corresponding alarm strategies and automatic operation and maintenance strategies for each audit task, so that the cloud management platform can perform automatic alarms and automatic operation and maintenance (such as adjusting priorities or pausing tasks) based on the audit results corresponding to the tasks.

[0105] The alarm strategy includes but is not limited to: alarm triggering conditions, alarm triggering methods, etc.

[0106] The automatic operation and maintenance policy is used to indicate the triggering conditions and adjustment methods for adjusting the execution priority of the post-task, and the triggering conditions for pausing the post-task.

[0107] In the embodiment of the present application, there are also two automatic scheduling strategies, one is to change the priority of the post-task, and the other is to suspend the post-task. Both automatic scheduling strategies need to configure trigger conditions.

[0108] It should be noted that in the embodiments of the present application, the user sets the corresponding alarm strategy and automatic operation and maintenance strategy for each audit task as an example. In one possible implementation, the user can configure only the audit task for some tasks, which can also be understood as configuring only the audit rule configuration information. Correspondingly, in this example, the cloud management platform can obtain the audit results executed by the computing node and display the audit results. Users can make their own judgments based on the audit results, and this application does not limit this.

[0109] In the embodiment of the present application, the audit rule configuration information, the alarm strategy and the automatic operation and maintenance strategy may be referred to as the audit configuration information. Figure 7 For an exemplary user interface diagram of audit configuration information, please refer to Figure 7, the audit rule configuration information includes but is not limited to: rule name, rule type, rule description, rule expression, etc. In this example, the rule name is "China daily revenue fluctuation audit", the rule type is "indicator audit", the rule description is "the indicator is the percentage of the daily revenue of the China region compared to yesterday, used to monitor abnormal revenue fluctuations" and the rule expression is "sql1".

[0110] Exemplarily, the alarm strategy includes an alarm triggering condition and an alarm method. For example, in this example, the alarm triggering condition is "abs(sql1)>0.2", where "sql" is the daily revenue fluctuation value of the Chinese region. "abs" is the absolute value. This condition is used to indicate that an alarm is issued when the absolute value of the daily revenue fluctuation value of the Chinese region is greater than 0.2.

[0111] Still refer to Figure 3 In this example, the alarm method is a telephone alarm. That is, when the condition of "abs(sql1)>0.2" is met, the cloud management platform alarms the user by phone.

[0112] Please continue to refer to Figure 3 In this example, the automatic operation and maintenance strategy includes but is not limited to: reducing the priority of post-tasks and their corresponding trigger conditions (hereinafter referred to as the first trigger conditions) and suspending post-tasks and their corresponding trigger conditions (hereinafter referred to as the second trigger conditions). Among them, the first trigger condition is "abs(sql1)>0.2and abs(sql1)<0.5". That is to say, when the daily revenue fluctuation value of the Chinese region is greater than 0.2 and less than 0.5, the priority of the post-task is reduced. The second trigger condition is "abs(sql1)>0.5".

[0113] It can be understood that the audit results of the indicators of the audit task in the embodiment of the present application can be divided into normal, abnormal and error. Among them, the normal audit result means that the audit result is within the preset range (i.e., the trigger condition corresponding to the reduction of the post-task priority), and it can also be understood that the result of the corresponding task execution is normal. For example, still taking the daily income of the Chinese region as an example, the computing node can obtain the daily income value of the Chinese region based on the task configuration. The computing node can audit the daily income value of the Chinese region based on the audit task, and obtain the audit result, which is the daily income fluctuation value of the Chinese region. Among them, if the daily income value of the Chinese region is less than or equal to 0.2, the audit result is confirmed to be normal, and the task execution result is normal. In other words, the fluctuation of the daily income value of the Chinese region is small, and no abnormality occurs. Accordingly, the task result obtained by the computing node is normal. Exemplarily, if the daily income value of the Chinese region is greater than 0.2 and less than 0.5, the audit result is confirmed to be abnormal, and the task execution result is abnormal. In other words, the fluctuation of the daily income value of the Chinese region is large, and an abnormality occurs. Accordingly, the task result obtained by the computing node may also be abnormal. In the embodiment of the present application, the abnormal audit result and the abnormal task result can be understood as exceeding the normal range, but the excess is small. For example, the audit result or task result may be abnormal due to some occasional reasons. In this case, the task result may be normal, but the user needs to make a judgment. For example, under normal circumstances, the daily income change in the Chinese region cannot exceed 20% (i.e. 0.2). Therefore, when it exceeds 20%, it is necessary to trigger the alarm strategy and the automatic operation and maintenance strategy at the same time. When the volatility exceeds 20% but is less than 50%, it may be due to the sudden and substantial change in income caused by marketing means such as festivals and activities. At this time, it is uncertain whether the income data is wrong, so the priority of the post-task can be reduced, and the execution of the post-task can be delayed to buy time for the operation and maintenance personnel to confirm whether the data is correct. Exemplarily, when the volatility exceeds 50%, the amplitude beyond the normal range is large, and the calculation result is determined to be wrong, then the operation and maintenance strategy is automatically triggered, that is, the execution of the post-task is suspended.

[0114] like Figure 8 The following is a user interface diagram of task audit configuration. Figure 8 The audit rule configuration information includes but is not limited to: rule name (for example, daily revenue calculation task combination for China), rule type (for example, task audit), task name (for example, daily revenue calculation for China), rule description (for example, "this indicator is to monitor whether the calculation task is completed at the expected time"), expected completion time (t1) and actual completion time (t2), etc.

[0115] The triggering condition of the corresponding alarm strategy is "t2>t1", and the alarm mode is "telephone alarm". That is, in this example, if the actual completion time of the audit task exceeds the expected completion time, an alarm is issued by telephone.

[0116] Still refer to Figure 8 , the automatic operation and maintenance strategy corresponding to the task audit is the trigger conditions corresponding to "increasing the priority of post-tasks and suspending post-tasks", among which the trigger condition for increasing the priority of post-tasks (hereinafter referred to as the third trigger condition) includes "t2-t1>30min". The trigger condition for suspending post-tasks (hereinafter referred to as the fourth trigger condition) is "task failure". In other words, when the difference between the actual completion time and the expected completion time is greater than 30min (can be set according to actual needs, and this application does not limit it), that is, when the third trigger condition is met, the cloud management platform can increase the priority of post-tasks to ensure that post-tasks can be executed first. When the task fails (for example, the computing node reports task failure indication information), that is, when the fourth trigger condition is met, the execution of the post-task is suspended. Among them, task failure can optionally be the failure of the computing node to obtain the audit result. For example, the corresponding task may fail to be executed, and thus the corresponding audit result cannot be obtained.

[0117] Exemplarily, the audit rule configuration module may store the audit task information corresponding to each task in a database.

[0118] It should be noted that, in the embodiments of the present application, only the method of setting the task audit configuration and the indicator audit configuration is used as an example for explanation. In other embodiments, the user can set fewer or more audit configuration categories to determine the execution status of the task for different dimensions. For example, in the embodiments of the present application, all configurations of the task audit can also be included in the indicator audit configuration, and the present application does not limit it.

[0119] S603, the audit configuration rule module sends the audit task to the computing node.

[0120] S604, the computing node executes the audit task and obtains the audit result.

[0121] Exemplarily, the audit configuration rule module sends an audit task to the computing node. Optionally, the computing node that performs the audit task and the computing node that performs the task can be the same node or a different node, which is not limited in this application. For example, computing node 1 is used to perform task 1, such as obtaining the daily revenue value of the Chinese region. Computing node 2 is used to perform the audit task 1 corresponding to task 1, that is, based on the result obtained by computing node 1, obtain the corresponding fluctuation value of the daily revenue value of the Chinese region.

[0122] Fig. 9 For an exemplary audit process flow diagram, please refer to Fig. 9 , including but not limited to the following steps:

[0123] S901, the automatic scheduling control module obtains the audit results from the computing node.

[0124] Exemplarily, as described above, the computing node can execute the corresponding task based on the task configuration information. Furthermore, during the execution of the task, the computing node audits the task based on the audit task information and obtains the audit result.

[0125] Each time a computing node obtains an audit result, it can send the audit result to the automatic scheduling control module.

[0126] S902a, the task blood relationship analysis module obtains blood relationship information from the single task configuration module.

[0127] S902b, the automatic scheduling control module obtains the blood relationship information from the task blood relationship module.

[0128] Exemplarily, as described above, the single task configuration module can obtain task configuration information corresponding to each task, wherein the task configuration information includes task dependencies, specifically indicating the predecessor tasks of the task (described above).

[0129] The task lineage analysis module can obtain the dependency relationship corresponding to each task from the single task configuration module, and based on the dependency relationship corresponding to each task, obtain the lineage information of each task, wherein the lineage information is used to indicate the predecessor task and / or successor task of a single task. Optionally, some tasks may not have a predecessor task, such as Task 1. Some tasks may not have a successor task, such as Task 10.

[0130] For example, combining Figure 4 The task blood relationship analysis module can determine the predecessor and successor tasks of each task based on the dependency relationship of each task (i.e., the identification information of the predecessor task), and record the acquired blood relationship information into the blood relationship list. The blood relationship list in the embodiment of the present application is only an illustrative example, and in other embodiments, it can be stored in other forms, which is not limited by the present application.

[0131] In this example, the blood relationship list is shown in Table 1:

[0132] Table 1

[0133]

[0134] The description of specific dependency and blood relationships can be found above and will not be repeated here.

[0135] Exemplarily, the automatic scheduling control module can obtain the blood relationship information from the mission-college relationship module.

[0136] S903a, the automatic scheduling control module obtains the audit task information and task configuration information from the audit rule configuration module.

[0137] Exemplarily, after the audit rule configuration module obtains the audit task information, it can send the audit task information to the automatic scheduling control module. Optionally, the audit task information corresponding to each audit task in the embodiment of the present application can be changed at any time point during the execution process. After the audit rule configuration module updates the audit task information in response to the received user instruction, it can send the updated audit task information to the automatic scheduling control module.

[0138] S903b, the automatic scheduling control module obtains startup configuration information from the single task configuration module.

[0139] Exemplarily, as described above, the task configuration information includes startup configuration information, wherein the startup configuration information is used to indicate whether to adjust the execution priority of the task according to the audit result and whether to block the task according to the audit result.

[0140] The automatic scheduling control module may obtain the startup configuration information to determine whether the task supports priority adjustment and / or supports blocking the task based on the startup configuration information.

[0141] In one example, if the task does not support priority adjustment but supports blocking the task, the automatic scheduling control module can execute S904 and S909 only based on the suspend task trigger condition of the indicator audit (i.e., the second trigger condition) and the suspend task trigger condition of the task audit (i.e., the fourth trigger condition).

[0142] In another example, if the task does not support blocking tasks but supports adjusting priorities, that is, the post-task corresponding to the task cannot be suspended, the automatic scheduling control module can execute S904 and S909 only based on the first trigger condition of the indicator audit and the third trigger condition of the task audit.

[0143] In another example, if the task supports adjusting the priority and blocking the task, it can be processed normally according to S904 and S909.

[0144] In another example, if a task does not support priority adjustment and blocking tasks, there is no need to execute the task. Fig. 9 S904~S915 in.

[0145] That is, in the embodiment of the present application, the automatic scheduling control module can determine the scope of the operation (i.e., task) for automatic scheduling based on the startup configuration information. In actual applications, the demand of some tasks may be to present the calculation results in time (even if the calculation results are wrong, they must be calculated in time). Under such requirements, the two automatic adjustment options (such as Figure 3 ), the system will not adjust the priority of the task and its subsequent tasks and block the execution of the task. Exemplarily, the unchecked state is valid for both the task and its subsequent tasks.

[0146] It should be noted that steps S901, S902a and S903a are not sequenced in any particular order and are not limited in this application.

[0147] S904, the automatic scheduling control module determines the task audit scheduling strategy based on the audit results.

[0148] Exemplarily, the automatic scheduling control module determines the audit scheduling strategy for the corresponding task based on the audit result corresponding to the single audit task (specifically, the acquisition time of the audit result). Specifically, the audit result may include the execution time, and the automatic scheduling control module detects whether the execution time of the audit result meets the third trigger condition or the fourth trigger condition to determine whether it is necessary to adjust the priority or suspend the post-task.

[0149] In one example, if the automatic scheduling control module detects that the audit result does not meet the third trigger condition (i.e., the trigger condition corresponding to increasing the task priority) and the fourth trigger condition (i.e., the trigger condition corresponding to pausing the task), that is, the audit task corresponding to the audit result is obtained within the scheduled time and is within the normal range. It can be understood that the execution time of the task corresponding to the audit task is also within the normal range, and there is no need to schedule the post-task of the task.

[0150] In another example, if the automatic scheduling control module detects that the audit result meets the third trigger condition, it can also be understood that the execution time of the audit task is not within the normal range, but the delay time is short, and the scheduling strategy corresponding to the task can be determined to increase the priority of the post-task, that is, execute S905a. In the embodiment of the present application, the execution time of the audit task can also be considered to be approximately equal to the execution time of the corresponding task. Normally, the execution time of the audit task is short. After the task is completed, it can be audited in a short time and the corresponding audit result can be obtained, which will not be repeated below.

[0151] In another example, if the automatic scheduling control module detects that the audit result meets the fourth trigger condition, that is, the task execution fails (for example, the task execution failure indication information sent by the computing node is received), the scheduling strategy corresponding to the task can be determined to be to suspend the post-task, that is, to execute S907a. Optionally, the fourth trigger condition can also be set to a duration greater than the third trigger condition, for example, greater than 30 minutes, that is, if the audit result is not obtained for more than 30 minutes, it can be considered that the task execution has failed.

[0152] It should be noted that the task audit in the embodiment of the present application is to audit the execution time of the task and the audit task. Correspondingly, if the audit task is not completed and has exceeded the time set by the third trigger condition, the automatic scheduling control module can determine that the acquisition time of the audit result (i.e., the execution time of the audit task) has satisfied the third trigger condition. In other words, the automatic scheduling control module first performs the task audit and then performs the indicator audit.

[0153] In a possible implementation, the automatic scheduling control module may also execute S904 and S909 simultaneously, which is not limited in this application.

[0154] S905a, the automatic scheduling control module instructs the task priority automatic adjustment module to increase the priority of the post-task.

[0155] Exemplarily, after the automatic scheduling control module determines that the task audit scheduling strategy corresponding to a single task is to increase the priority of post-tasks, the automatic scheduling control module searches for post-tasks corresponding to the task based on the acquired blood relationship information.

[0156] For example, taking Task 1 as an example, the automatic scheduling control module determines that the task audit scheduling strategy corresponding to Task 1 needs to be adjusted to increase the priority of the post-task based on the audit result of the audit task 1 corresponding to Task 1. The automatic scheduling control module determines that the post-tasks corresponding to Task 1 include but are not limited to: Task 4, Task 7, Task 9 and Task 10 based on the lineage relationship list (such as shown in Table 1).

[0157] The automatic scheduling control module sends indication information to the task priority automatic adjustment module, the indication information including but not limited to identification information of post-tasks (e.g. identification information of task 4, task 7, task 9 and task 10) and indication information for increasing task priority, wherein the indication information for increasing priority is used to indicate increasing the priority of specified tasks (e.g. task 4, task 7, task 9 and task 10).

[0158] S905b, the task priority automatic adjustment module adjusts the task priority.

[0159] Exemplarily, as described above, the cloud management platform maintains priority queues corresponding to different priorities, such as a high priority queue corresponding to a high priority, a medium priority queue corresponding to a medium priority, and a low priority queue corresponding to a low priority.

[0160] The task priority automatic adjustment module responds to the received indication information and determines the post-tasks that need to be adjusted and the adjustment method (also called scheduling strategy). For example, the task priority can determine that the post-tasks that need to be adjusted include task 4, task 7, task 9 and task 10, and the adjustment method is to increase the priority.

[0161] The task priority automatic adjustment module can increase the priority of the post-task to be adjusted (also called to be scheduled). Specifically, the task priority automatic adjustment module searches for the priority queue where the post-task to be adjusted is currently located, wherein, if the priority of a single post-task is currently low priority (i.e., in the low priority queue), it is increased to high priority, i.e., placed in the high priority queue. If the priority of a single post-task is currently medium priority (i.e., in the medium priority queue), it is increased to high priority, i.e., placed in the high priority queue. If the priority of a single post-task is currently high priority (i.e., already in the high priority queue), no processing is required.

[0162] It should be noted that the priority increase in the embodiment of the present application is to raise the priority of the task to the highest, for example, to raise both the medium priority and low priority tasks to high priority. In other embodiments, it can also be to raise a gear, for example, to raise the low priority task to medium priority, which can be set according to actual needs and is not limited in the present application.

[0163] That is to say, in the case where the execution delay of the predecessor task is relatively large, the priority of the successor task can be increased in the embodiment of the present application, so as to balance the execution time of the overall task.

[0164] S905c, the automatic dispatch control module issues an alarm.

[0165] Exemplarily, the automatic scheduling control module determines that an alarm needs to be executed based on the alarm triggering condition, and issues an alarm through a preset alarm method (the concept can be referred to above).

[0166] It should be noted that the alarm trigger conditions in the embodiments of the present application correspond to the trigger conditions corresponding to the task audit. For example, the trigger condition for adjusting the priority of the task audit is that the daily revenue fluctuation in the Chinese region is greater than 0.2. Correspondingly, the alarm trigger condition is also that the daily revenue fluctuation in the Chinese region is greater than 0.2. In this way, a timely alarm is issued while adjusting the priority or suspending the task, so that the user can troubleshoot errors in time.

[0167] S906 , the task priority automatic adjustment module instructs the single task configuration module to update the post-task priority.

[0168] Exemplarily, the task priority automatic adjustment module determines that the priority of the designated post-task (e.g., task 4, task 7, task 9, and task 10) needs to be increased based on the instruction of the automatic scheduling control module, and the task priority automatic adjustment module instructs the single task configuration module to update the post-task priority. Specifically, the task priority automatic adjustment module sends task configuration update instruction information to the single task configuration module, and the task configuration update instruction information includes the identification information of the post-task whose priority needs to be adjusted (e.g., task 4, task 7, task 9, and task 10) and the task priority increase instruction information, wherein the priority increase instruction information is used to indicate the increase of the priority of the designated task (e.g., task 4, task 7, task 9, and task 10).

[0169] Exemplarily, the single task configuration module instructs to update the priority of the post-task. Specifically, the single task configuration module responds to the instruction of the task priority automatic adjustment module and finds the corresponding task configuration information based on the identification information of the post-task. The single task configuration module can update the priority corresponding to the task configuration information corresponding to the post-task, that is, increase the priority of the post-task. Among them, if the priority of a single post-task is currently low priority, it is increased to high priority; if the priority of a single post-task is currently medium priority, it is increased to high priority; if the priority of a single post-task is currently high priority, no processing is required.

[0170] It should be noted that the update of the priority of the task by the single task configuration module refers to the update of the priority in the task configuration information. For example, the single task configuration module adjusts the low priority originally set by the user for task 1 to a high priority. Correspondingly, when the user views the task configuration information of task 1 through the user interface of the cloud management platform, the single task configuration module responds to the user's instructions and reads the task configuration information of task 1 currently cached in the database, wherein the current task configuration information may include the priority pre-set by the user (e.g., a low priority) and the adjusted priority (e.g., a high priority). Optionally, a prompt message may be displayed corresponding to the adjusted priority to prompt that the priority is adjusted based on the automatic scheduling rules.

[0171] S907a, the automatic scheduling control module instructs the task automatic termination module to suspend the priority of the post-task.

[0172] Exemplarily, after the automatic scheduling control module determines that the task audit scheduling strategy corresponding to a single task is to suspend (ie, interrupt) the priority of a post-task, the automatic scheduling control module searches for the post-task corresponding to the task based on the acquired blood relationship information.

[0173] For example, taking Task 1 as an example, the automatic scheduling control module determines that the task audit scheduling strategy corresponding to Task 1 needs to be adjusted to increase the priority of the post-task based on the audit result of the audit task 1 corresponding to Task 1. The automatic scheduling control module determines that the post-tasks corresponding to Task 1 include but are not limited to: Task 4, Task 7, Task 9 and Task 10 based on the lineage relationship list (such as shown in Table 1).

[0174] The automatic scheduling control module sends indication information to the task priority automatic adjustment module, the indication information including but not limited to the identification information of the post-task (for example, the identification information of task 4, task 7, task 9 and task 10) and the pause task indication information, wherein the pause task indication information is used to indicate the suspension of the execution of the specified task (for example, task 4, task 7, task 9 and task 10).

[0175] S907b, the task automatic termination module instructs the computing node to suspend the post-task.

[0176] Exemplarily, the task automatic termination module responds to the instruction of the automatic scheduling control module and determines the post-tasks that need to be suspended, such as tasks 4, 7, 9, and 10. The task automatic termination module can delete the post-tasks that need to be suspended from the priority queue. In this way, after the task is removed from the priority queue, the computing node will no longer execute the task, that is, the post-task is interrupted.

[0177] It should be noted that after a task is removed from the priority queue, the task still exists and is only removed from the priority queue.

[0178] S907c, the automatic dispatch control module issues an alarm.

[0179] The specific description can be found above and will not be repeated here.

[0180] S908, the automatic scheduling control module determines the task audit scheduling strategy based on the audit results.

[0181] Exemplarily, the automatic scheduling control module determines the corresponding indicator audit scheduling strategy based on the audit result corresponding to a single audit task. Specifically, the automatic scheduling control module detects whether the audit result meets the first trigger condition (i.e., the trigger condition corresponding to lowering the task priority) or the second trigger condition (i.e., the trigger condition corresponding to suspending the task), that is, determines whether it is necessary to adjust the priority or suspend the post-task.

[0182] In one example, if the automatic scheduling control module detects that the audit result does not meet the first trigger condition and the second trigger condition, that is, the audit result is within the preset normal range, and accordingly, the task result corresponding to the task corresponding to the audit task is also normal, then there is no need to schedule the post-task of the task.

[0183] In another example, if the automatic scheduling control module detects that the audit result meets the first trigger condition, it can determine that the audit scheduling strategy corresponding to the task is to reduce the priority of the post-task, that is, execute S909a.

[0184] In another example, if the automatic scheduling control module detects that the audit result meets the second trigger condition, it can determine that the scheduling strategy corresponding to the task is to suspend the post-task, that is, execute S911a.

[0185] S909a, the automatic scheduling control module instructs the task priority automatic adjustment module to increase the priority of the post-task.

[0186] Exemplarily, after the automatic scheduling control module determines that the task audit scheduling strategy corresponding to a single task is to increase the priority of post-tasks, the automatic scheduling control module searches for post-tasks corresponding to the task based on the acquired blood relationship information.

[0187] For example, taking Task 1 as an example, the automatic scheduling control module determines that the task audit scheduling strategy corresponding to Task 1 needs to be adjusted to increase the priority of the post-task based on the audit result of the audit task 1 corresponding to Task 1. The automatic scheduling control module determines that the post-tasks corresponding to Task 1 include but are not limited to: Task 4, Task 7, Task 9 and Task 10 based on the lineage relationship list (such as shown in Table 1).

[0188] The automatic scheduling control module sends indication information to the task priority automatic adjustment module, the indication information including but not limited to identification information of post-tasks (e.g. identification information of task 4, task 7, task 9 and task 10) and indication information for increasing task priority, wherein the indication information for increasing priority is used to indicate increasing the priority of specified tasks (e.g. task 4, task 7, task 9 and task 10).

[0189] S909b, the task priority automatic adjustment module adjusts the task priority.

[0190] Exemplarily, as described above, the cloud management platform maintains priority queues corresponding to different priorities, such as a high priority queue corresponding to a high priority, a medium priority queue corresponding to a medium priority, and a low priority queue corresponding to a low priority.

[0191] The task priority automatic adjustment module responds to the received indication information and determines the post-tasks that need to be adjusted and the adjustment method (also called scheduling strategy). For example, the task priority can determine that the post-tasks that need to be adjusted include task 4, task 7, task 9 and task 10, and the adjustment method is to reduce the priority.

[0192] The task priority automatic adjustment module can lower the priority of the post-task to be adjusted (also called to be scheduled). Specifically, the task priority automatic adjustment module searches for the priority queue where the post-task to be adjusted is currently located, wherein, if the priority of a single post-task is currently low priority (i.e., in the low priority queue), no processing is required. If the priority of a single post-task is currently medium priority (i.e., in the medium priority queue), it is lowered to low priority, i.e., placed in the low priority queue. If the priority of a single post-task is currently high priority (i.e., already in the high priority queue), it is lowered to low priority, i.e., placed in the low priority queue.

[0193] It should be noted that the priority increase in the embodiment of the present application is to raise the priority of the task to the lowest, for example, to raise both the medium priority and high priority tasks to low priority. In other embodiments, it can also be to lower a gear, for example, to lower the high priority task to the medium priority, which can be set according to actual needs and is not limited in the present application.

[0194] It should be further explained that if the automatic scheduling control module determines that the priority of the post-task needs to be increased based on the task audit scheduling strategy, and determines that the priority of the post-task needs to be lowered based on the indicator audit scheduling strategy, the automatic scheduling control module will make adjustments according to the instructions of the indicator audit scheduling strategy, that is, lower the priority of the post-task.

[0195] S909c, the automatic dispatching control module issues an alarm.

[0196] Exemplarily, the automatic scheduling control module determines the need to execute an alarm based on the indicator audit alarm trigger condition corresponding to the task, and issues an alarm through a preset alarm method (the concept can be referred to above).

[0197] It should be noted that the alarm trigger conditions in the embodiments of the present application correspond to the trigger conditions corresponding to the indicator audit. For example, the trigger condition for adjusting the priority of the indicator audit is that the daily revenue fluctuation in the Chinese region is greater than 0.2. Correspondingly, the alarm trigger condition is also that the daily revenue fluctuation in the Chinese region is greater than 0.2. In this way, timely alarms are issued while adjusting the priority or suspending the task, so that users can troubleshoot errors in a timely manner.

[0198] S910 , the task priority automatic adjustment module instructs the single task configuration module to update the post-task priority.

[0199] Exemplarily, the task priority automatic adjustment module determines that the priority of the designated post-task (e.g., task 4, task 7, task 9, and task 10) needs to be lowered based on the instruction of the automatic scheduling control module, and the task priority automatic adjustment module instructs the single task configuration module to update the post-task priority. Specifically, the task priority automatic adjustment module sends task configuration update instruction information to the single task configuration module, and the task configuration update instruction information includes the identification information of the post-task whose priority needs to be adjusted (e.g., task 4, task 7, task 9, and task 10) and the task priority increase instruction information, wherein the priority increase instruction information is used to indicate the reduction of the priority of the designated task (e.g., task 4, task 7, task 9, and task 10).

[0200] Exemplarily, the single task configuration module instructs to update the priority of the post-task. Specifically, the single task configuration module responds to the instruction of the task priority automatic adjustment module and finds the corresponding task configuration information based on the identification information of the post-task. The single task configuration module can update the priority corresponding to the task configuration information corresponding to the post-task, that is, lower the priority of the post-task. Among them, if the priority of a single post-task is currently low priority, it does not need to be updated; if the priority of a single post-task is currently medium priority, it is reduced to low priority; if the priority of a single post-task is currently high priority, it is reduced to low priority.

[0201] It should be noted that the update of the priority of the task by the single task configuration module refers to the update of the priority in the task configuration information. For example, the single task configuration module adjusts the high priority originally set by the user for task 1 to a low priority. Correspondingly, when the user views the task configuration information of task 1 through the user interface of the cloud management platform, the single task configuration module responds to the user's instructions and reads the task configuration information of task 1 currently cached in the database, wherein the current task configuration information may include the priority pre-set by the user (e.g., a high priority) and the adjusted priority (e.g., a low priority). Optionally, a prompt message may be displayed corresponding to the adjusted priority to prompt that the priority is adjusted based on the automatic scheduling rules.

[0202] That is to say, if an exception occurs in the predecessor task, that is, the audit result meets the first trigger condition, the present application can lower the priority of the post-task to suspend the execution of the post-task, thereby leaving the user with enough time to troubleshoot the error and avoid the post-task continuing to execute based on the abnormal task result, which will cause the task result of the post-task to also become abnormal.

[0203] S911a, the automatic scheduling control module instructs the task automatic termination module to suspend the post-task priority.

[0204] Exemplarily, after the automatic scheduling control module determines that the task audit scheduling strategy corresponding to a single task is to suspend (ie, interrupt) the priority of a post-task, the automatic scheduling control module searches for the post-task corresponding to the task based on the acquired blood relationship information.

[0205] For example, taking Task 1 as an example, the automatic scheduling control module determines that the task audit scheduling strategy corresponding to Task 1 needs to be adjusted to increase the priority of the post-task based on the audit result of the audit task 1 corresponding to Task 1. The automatic scheduling control module determines that the post-tasks corresponding to Task 1 include but are not limited to: Task 4, Task 7, Task 9 and Task 10 based on the lineage relationship list (such as shown in Table 1).

[0206] The automatic scheduling control module sends indication information to the task priority automatic adjustment module, the indication information including but not limited to the identification information of the post-task (for example, the identification information of task 4, task 7, task 9 and task 10) and the pause task indication information, wherein the pause task indication information is used to indicate the suspension of the execution of the specified task (for example, task 4, task 7, task 9 and task 10).

[0207] S911b, the task automatic termination module instructs the computing node to suspend the post-task.

[0208] Exemplarily, the task automatic termination module responds to the instruction of the automatic scheduling control module and determines the post-tasks that need to be suspended, such as tasks 4, 7, 9, and 10. The task automatic termination module can delete the post-tasks that need to be suspended from the priority queue. In this way, after the task is removed from the priority queue, the computing node will no longer execute the task, that is, the post-task is interrupted.

[0209] It should be noted that after a task is removed from the priority queue, the task still exists and is only removed from the priority queue.

[0210] S911c, automatic dispatch control module alarm.

[0211] The specific description can be found above and will not be repeated here.

[0212] S912, the computing node executes the post-task according to the priority.

[0213] Exemplarily, after the task priority automatic adjustment module adjusts the post-task to be adjusted (or scheduled) to the corresponding priority queue, the computing node can read the tasks in sequence from the priority queue (also called the execution queue) when executing the task and execute the corresponding task.

[0214] For example, taking Task 5 as an example, assuming that Task 5 was originally placed in the low priority queue, under normal circumstances, the computing node may need to complete Task 4 (assuming that Task 4 is in the low priority queue and before Task 5) before executing Task 5. After the task priority automatic adjustment module adjusts Task 5 to the high priority queue, the computing node obtains Task 5 from the high priority queue and executes Task 5. In other words, Task 5 in the high priority queue will be executed before Task 4.

[0215] In one possible implementation, as described above, the cloud management platform will issue an alarm when adjusting the task priority or pausing the task. After receiving the alarm, the user can check the task. For example, if the abnormal audit result may be caused by some unexpected reasons and is within the normal acceptable range, the user can eliminate the alarm. Optionally, the task is executed again (i.e., the execution Fig. 9 The priority is restored to the initial setting (i.e. Figure 3 The interrupted tasks are also restored to the priority queue initially set. For example, the priorities of tasks 4, 5, and 9 are lowered, that is, placed after the low priority, and tasks 4, 5, and 9 are all delayed. After receiving the alarm, the user promptly checks the anomaly and eliminates the alarm. The cloud management platform can determine that the alarm is eliminated in response to the received user operation. Optionally, the automatic scheduling control module can restore the original priorities of tasks 4, 5, and 9 (i.e. Figure 3 The priority is set through the user interface). For example, task 4 is a high priority, task 5 is a medium priority, and task 9 is a low priority. Accordingly, the automatic scheduling control module can send an indication message to the task priority automatic adjustment module to indicate that the priority of task 4 is adjusted to a high priority, the priority of task 5 is adjusted to a medium priority, and the priority of task 9 is adjusted to a low priority. The task priority automatic adjustment module can adjust task 4, task 5, and task 9 to the corresponding priority queues based on the received indication message. The specific adjustment method can refer to the above and will not be repeated here. In this example, the automatic scheduling control module sends an indication message to the task configuration module to update the priority in the task configuration information. The specific details can refer to the above and will not be repeated here.

[0216] In another possible implementation, the scheduling method in the embodiment of the present application may also be directly based on the execution result of the task, without being based on the audit result. For example, the conditions corresponding to each scheduling strategy in the embodiment of the present application may be set for the execution result of the task itself, and the corresponding scheduling strategy is determined based on the result of the task itself. The implementation method is the same as the processing method based on the audit result, and will not be repeated here.

[0217] In another possible implementation, the scheduling strategy involved in the embodiments of the present application can be considered as a scheduling strategy corresponding to the predecessor task, or it can be considered as a scheduling strategy corresponding to the successor task. In essence, both are used to adjust the execution status (including priority and whether to pause) of the successor task corresponding to the predecessor task.

[0218] An embodiment of the present application provides a task scheduling device. Fig.10 This is a schematic diagram of the structure of an exemplary task scheduling device. Fig.10 The device includes but is not limited to: a scheduling strategy setting module 1001 and a task scheduling module 1002.

[0219] In one example, the scheduling strategy setting module 1001 is used to obtain the indicator scheduling strategy of at least one second task, and the indicator scheduling strategy is used to indicate the adjustment of the execution priority of at least one second task or to indicate the suspension of the execution of the second task. The task scheduling module 1002 is used to obtain the execution indicator of the first task. In addition, the task scheduling module 1002 is also used to adjust the execution priority of at least one second task or suspend the execution of at least one second task based on the execution indicator of the first task and the indicator scheduling strategy of at least one second task.

[0220] In a possible implementation, the indicator scheduling strategy includes an indicator condition, and the indicator condition is used to match the execution indicator of the first task.

[0221] In a possible implementation, the task scheduling module 1002 includes a task priority adjustment module 1003, and the task priority adjustment module 1003 is used to: if the execution index matches the index condition, determine that the execution result of the first task is abnormal; and reduce the execution priority of at least one second task.

[0222] In a possible implementation, the task scheduling module 1002 includes a task termination module 1004, and the task termination module 1004 is used to: if the execution index matches the index condition, determine that an error occurs in the execution result of the first task; and suspend the execution of at least one second task.

[0223] In a possible implementation, the task scheduling module 1002 includes a task priority adjustment module 1003, and the task priority adjustment module 1003 is used to: if the execution index matches the index condition, determine that the execution time of the first task exceeds the expected time; and increase the execution priority of at least one second task.

[0224] In one possible implementation, the scheduling strategy setting module 1001 is also used to obtain the task scheduling strategy of at least one second task, the task scheduling strategy is used to indicate the adjustment of the execution priority of at least one second task or to indicate the suspension of the execution of the second task, and the task scheduling strategy includes a task condition, and the task condition is used to match the execution result of the first task; the task scheduling module 1002 is also used to obtain the execution result of the first task; the task scheduling module 1002 is also used to match the indicator scheduling strategy of at least one second task based on the execution indicator of the first task, and determine that the indicator scheduling strategy of the second task is to adjust the execution priority of the second task, and match the task scheduling strategy of at least one second task based on the execution result of the first task, and determine that the task scheduling strategy of the second task is to adjust the execution priority of the second task; the task scheduling module is also used to adjust the execution priority of the second task based on the execution indicator of the first task and the indicator scheduling strategy of at least one second task.

[0225] In a possible implementation, the device further includes a dependency analysis module 1005, which is used to: obtain dependency information of the first task; and determine, based on the dependency information, that at least one second task is a subsequent task of the first task.

[0226] In another example, the scheduling policy setting module 1001 is used to obtain a task scheduling policy of at least one second task, and the task scheduling policy is used to indicate adjustment of the execution priority of at least one second task or to indicate suspension of the execution of the second task. The task scheduling module 1002 is used to obtain the execution result of the first task. The task scheduling module 1002 is also used to adjust the execution priority of at least one second task or suspend the execution of at least one second task based on the execution result of the first task and the task scheduling policy of at least one second task.

[0227] In a possible implementation, the task scheduling strategy includes a task condition, and the task condition is used to match the execution result of the first task.

[0228] In a possible implementation, the task scheduling module 1002 includes a task termination module 1004, and the task termination module 1004 is used to: if the execution result matches the task condition, determine that the execution of the first task has failed; and suspend the execution of at least one second task.

[0229] In a possible implementation, the device further includes a dependency analysis module 1005, which is used to: obtain dependency information of the first task; and determine, based on the dependency information, that at least one second task is a subsequent task of the first task.

[0230] Among them, the above modules can all be implemented by software, or can be implemented by hardware. Among them, the module is an example of a software functional unit, and the above module may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above computing instance may be one or more. For example, the task scheduling module may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region (region) or in different regions. Further, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with similar geographical locations. Among them, usually a region may include multiple AZs.

[0231] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0232] As an example of a hardware functional unit, the module may include at least one computing device, such as a server, etc. Alternatively, the module may also be a device implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0233] The multiple computing devices included in the above modules can be distributed in the same region or in different regions. The multiple computing devices included in the above modules can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the above modules can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0234] It should be noted that, in other embodiments, the above modules can be used to execute Fig. 9 To realize the full functions of the cloud management platform, follow the corresponding steps in

[0235] The present application also provides a computing device 1100. Fig.11 As shown, the computing device 1100 includes: a bus 1102, a processor 1104, a memory 1106, and a communication interface 1108. The processor 1104, the memory 1106, and the communication interface 1108 communicate through the bus 1102. The computing device 1100 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 1100.

[0236] The bus 1102 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 The bus 1102 may include a path for transmitting information between various components of the computing device 1100 (eg, the memory 1106, the processor 1104, and the communication interface 1109).

[0237] The processor 1104 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0238] The memory 1106 may include a volatile memory, such as a random access memory (RAM). The processor 1104 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0239] The memory 1106 stores executable program codes, and the processor 1104 executes the executable program codes to respectively implement the functions of the aforementioned modules, thereby achieving Fig. 9 That is, the memory 1106 stores instructions for executing the task scheduling method.

[0240] The communication interface 1108 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1100 and other devices or a communication network.

[0241] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.

[0242] like Fig.12 As shown, the computing device cluster includes at least one computing device 1200. The memory 1206 in one or more computing devices 1200 in the computing device cluster may store the same Fig.12 The instructions of the task scheduling method are shown.

[0243] In some possible implementations, the memory 1206 of one or more computing devices 1200 in the computing device cluster may also store partial instructions for executing the task scheduling method. In other words, the combination of one or more computing devices 1200 may jointly execute instructions for executing the task scheduling method.

[0244] It should be noted that the memory 1206 in different computing devices 1200 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the device. That is, the instructions stored in the memory 1206 in different computing devices 1200 can implement the functions of one or more modules in the above modules.

[0245] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.13 A possible implementation is shown. Fig.13 As shown, two computing devices 1300A and 1300B are connected via a network. Specifically, they are connected to the network via the communication interface in each computing device. In this type of possible implementation, the memory 1306 in the computing device 1300A stores instructions for executing the functions of the scheduling strategy setting module. At the same time, the memory 1306 in the computing device 1300B stores instructions for executing the functions of the task scheduling module and the dependency analysis module.

[0246] It should be understood that Fig.13 The functions of the computing device 1300A shown in FIG. 1300A may also be completed by multiple computing devices 1300. Similarly, the functions of the computing device 1300B may also be completed by multiple computing devices 1300.

[0247] The present application embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to that of Fig.10 and Fig.11 The connection mode of the computing device cluster is different in that the memory 1306 in one or more computing devices 1300 in the computing device cluster may store the same instructions for executing the task scheduling method.

[0248] In some possible implementations, the memory 1306 of one or more computing devices 1300 in the computing device cluster may also store some instructions for executing the task scheduling method. In other words, the combination of one or more computing devices 1300 may jointly execute the instructions for executing the task scheduling method.

[0249] It should be noted that the memory 1306 in different computing devices 1300 in the computing device cluster may store different instructions for executing some functions of the cloud management platform. That is, the instructions stored in the memory 1306 in different computing devices 1300 may implement the functions of one or more devices in the cloud management platform.

[0250] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the task scheduling method in the above embodiment.

[0251] The present application embodiment also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the task scheduling method in the above embodiment.

[0252] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A task scheduling method, It is characterized in that The task includes a first task and at least one second task, wherein the at least one second task is a subsequent task of the first task, and the method includes: Acquire an indicator scheduling policy of the at least one second task, where the indicator scheduling policy is used to indicate adjustment of an execution priority of the at least one second task or to indicate suspension of execution of the second task; Obtaining an execution indicator of the first task; Based on the execution index of the first task and the index scheduling policy of the at least one second task, the execution priority of the at least one second task is adjusted or the execution of the at least one second task is suspended.

2. The method according to claim 1, It is characterized in that The indicator scheduling strategy includes an indicator condition, and the indicator condition is used to match the execution indicator of the first task.

3. The method according to claim 2, It is characterized in that The adjusting the execution priority of the at least one second task or suspending the execution of the at least one second task based on the execution indicator of the first task and the indicator scheduling strategy of the at least one second task includes: If the execution indicator matches the indicator condition, determining that an execution result of the first task is abnormal; The execution priority of the at least one second task is reduced.

4. The method according to claim 2, It is characterized in that The adjusting the execution priority of the at least one second task or suspending the execution of the at least one second task based on the execution indicator of the first task and the indicator scheduling strategy of the at least one second task includes: If the execution indicator matches the indicator condition, determining that an error occurs in the execution result of the first task; The execution of the at least one second task is suspended.

5. The method according to claim 2, It is characterized in that The adjusting the execution priority of the at least one second task or suspending the execution of the at least one second task based on the execution indicator of the first task and the indicator scheduling strategy of the at least one second task includes: If the execution indicator matches the indicator condition, determining that the execution time of the first task exceeds the expected time; The execution priority of the at least one second task is increased.

6. The method according to any one of claims 2 to 5, It is characterized in that The method further comprises: Acquire a task scheduling policy for the at least one second task, where the task scheduling policy is used to indicate adjustment of the execution priority of the at least one second task or to indicate suspension of execution of the second task, where the task scheduling policy includes a task condition, where the task condition is used to match the execution result of the first task; Obtaining the execution result of the first task; Based on the execution indicator of the first task matching the indicator scheduling policy of the at least one second task, determining that the indicator scheduling policy of the second task is to adjust the execution priority of the second task, and based on the execution result of the first task matching the task scheduling policy of the at least one second task, determining that the task scheduling policy of the second task is to adjust the execution priority of the second task; Based on the execution index of the first task and the index scheduling policy of the at least one second task, the execution priority of the second task is adjusted.

7. The method according to any one of claims 1 to 6, It is characterized in that Before adjusting the execution priority of the at least one second task or suspending the execution of the at least one second task, the method further includes: Obtaining dependency information of the first task; Based on the dependency information, determine that the at least one second task is a subsequent task of the first task.

8. A task scheduling method, It is characterized in that The task includes a first task and at least one second task, wherein the at least one second task is a subsequent task of the first task, and the method includes: Acquire a task scheduling policy for the at least one second task, where the task scheduling policy is used to indicate adjustment of an execution priority of the at least one second task or to indicate suspension of execution of the second task; Obtaining the execution result of the first task; Based on the execution result of the first task and the task scheduling policy of the at least one second task, the execution priority of the at least one second task is adjusted or the execution of the at least one second task is suspended.

9. The method according to claim 8, It is characterized in that The task scheduling strategy includes a task condition, and the task condition is used to match the execution result of the first task.

10. The method according to claim 9, It is characterized in that The adjusting the execution priority of the at least one second task or suspending the execution of the at least one second task based on the execution result of the first task and the task scheduling policy of the at least one second task includes: If the execution result matches the task condition, determining that the execution of the first task has failed; The execution of the at least one second task is suspended.

11. The method according to any one of claims 8 to 10, It is characterized in that Before adjusting the execution priority of the at least one second task or suspending the execution of the at least one second task, the method further includes: Obtaining dependency information of the first task; Based on the dependency information, determine that the at least one second task is a subsequent task of the first task.

12. A task scheduling device, It is characterized in that Applied to a task, the task comprising a first task and at least one second task, the at least one second task being a post-task of the first task, the device comprising: A scheduling strategy setting module, used to obtain an indicator scheduling strategy of the at least one second task, wherein the indicator scheduling strategy is used to indicate adjustment of the execution priority of the at least one second task or to indicate suspension of execution of the second task; A task scheduling module, used to obtain the execution index of the first task; The task scheduling module is further used to adjust the execution priority of the at least one second task or suspend the execution of the at least one second task based on the execution index of the first task and the index scheduling strategy of the at least one second task.

13. The device according to claim 12, It is characterized in that The indicator scheduling strategy includes an indicator condition, and the indicator condition is used to match the execution indicator of the first task.

14. The device according to claim 13, It is characterized in that The task scheduling module includes a task priority adjustment module, and the task priority adjustment module is used to: If the execution indicator matches the indicator condition, determining that an execution result of the first task is abnormal; The execution priority of the at least one second task is reduced.

15. The device according to claim 13, It is characterized in that The task scheduling module includes a task termination module, and the task termination module is used to: If the execution indicator matches the indicator condition, determining that an error occurs in the execution result of the first task; The execution of the at least one second task is suspended.

16. The device according to claim 13, It is characterized in that The task scheduling module includes a task priority adjustment module, and the task priority adjustment module is used to: If the execution indicator matches the indicator condition, determining that the execution time of the first task exceeds the expected time; The execution priority of the at least one second task is increased.

17. The device according to any one of claims 13 to 16, It is characterized in that The scheduling strategy setting module is further used to obtain a task scheduling strategy for the at least one second task, the task scheduling strategy is used to indicate adjustment of the execution priority of the at least one second task or to indicate suspension of execution of the second task, the task scheduling strategy includes a task condition, and the task condition is used to match the execution result of the first task; The task scheduling module is further used to obtain the execution result of the first task; The task scheduling module is further used to match the indicator scheduling strategy of the at least one second task based on the execution indicator of the first task, determine that the indicator scheduling strategy of the second task is to adjust the execution priority of the second task, and match the task scheduling strategy of the at least one second task based on the execution result of the first task, and determine that the task scheduling strategy of the second task is to adjust the execution priority of the second task; The task scheduling module is further used to adjust the execution priority of the second task based on the execution indicator of the first task and the indicator scheduling strategy of the at least one second task.

18. The device according to any one of claims 12 to 17, It is characterized in that The device also includes a dependency analysis module, which is used to: Obtaining dependency information of the first task; Based on the dependency information, determine that the at least one second task is a subsequent task of the first task.

19. A task scheduling device, It is characterized in that Applied to the task, the task includes a first task and at least one second task, the at least one second task is a post-task of the first task, the device includes: a scheduling policy setting module, used for acquiring a task scheduling policy for the at least one second task, wherein the task scheduling policy is used for indicating adjustment of the execution priority of the at least one second task or for indicating suspension of execution of the second task; A task scheduling module, used to obtain the execution result of the first task; The task scheduling module is further used to adjust the execution priority of the at least one second task or suspend the execution of the at least one second task based on the execution result of the first task and the task scheduling policy of the at least one second task.

20. The device according to claim 19, It is characterized in that The task scheduling strategy includes a task condition, and the task condition is used to match the execution result of the first task.

21. The device according to claim 20, It is characterized in that The task scheduling module includes a task termination module, and the task termination module is used to: If the execution result matches the task condition, determining that the execution of the first task has failed; The execution of the at least one second task is suspended.

22. The device according to any one of claims 19 to 21, It is characterized in that The device also includes a dependency analysis module, which is used to: Obtaining dependency information of the first task; Based on the dependency information, determine that the at least one second task is a subsequent task of the first task.

23. A computing device cluster, It is characterized in that comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 7 or the method according to any one of claims 8 to 11.

24. A computer program product comprising instructions, It is characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 7 or the method according to any one of claims 8 to 11.

25. A computer-readable storage medium, It is characterized in that The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 7 or the method according to any one of claims 8 to 11.