Task management method and device, storage medium and electronic device

By adding tasks to the queue to be executed based on execution time and sorting value, the problem of low efficiency of scheduled task processing in the existing technology is solved, efficient sharding management of tasks and effective utilization of computing resources are achieved, and the system processing capability is improved.

CN113806058BActive Publication Date: 2024-10-18JINGDONG TECH HLDG CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111176124.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-09
Publication Date
2024-10-18
Estimated Expiration
2041-10-09

AI Technical Summary

Technical Problem

When the existing technology processes a large number of scheduled tasks, the system processing efficiency is reduced by regularly pulling the scheduled tasks from the database, and the pull task time is increased, affecting system performance.

Method used

By adding tasks to the corresponding queue to be executed based on their execution time and sorting value, and determining the order in which tasks are sent in the queue, task processing time is reduced and processing efficiency is improved.

Benefits of technology

The efficiency of task processing is improved. Tasks are managed through sharding, which reduces the time required for task determination and improves the utilization of computing resources and task processing throughput.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113806058B_ABST
    Figure CN113806058B_ABST
Patent Text Reader

Abstract

The present invention provides a task management method and device, a storage medium and an electronic device, the method comprising: when receiving a first scheduling task, obtaining each first target task; based on the execution time of each first target task, determining the queue to be executed to which each first target task belongs in the queue database, and determining the ranking value of each first target task; based on the ranking value of each first target task, adding each first target task to the queue to be executed to which it belongs; when receiving a second scheduling task, obtaining each second target task in each queue to be executed, and sending each second target task to a task user. The present invention adds tasks to corresponding queues to be executed based on ranking values, uses ranking values, improves the speed of querying tasks, and uses queues to be executed to achieve shard management of tasks, reduces the time spent on determining tasks to be sent to task users, and improves the processing efficiency of tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a task management method and device, a storage medium and an electronic device. Background Art

[0002] A scheduled task is a task that is triggered and executed after a preset time has been reached. With the development of computer and Internet technology, scheduled tasks are applied to more and more scenarios. For example, scheduled tasks are applied in business systems to push messages to users when a certain time has been reached, or scheduled tasks are customized for the business handled by users. When the scheduled task time is reached, the corresponding business is handled for the user, thereby providing users with better services.

[0003] At present, the processing method of scheduled tasks is usually to store the scheduled tasks in the database, and to detect whether the scheduled tasks have reached the trigger time by periodically pulling the scheduled tasks from the database. As the number of scheduled tasks increases, the time spent on pulling scheduled tasks in the traditional processing method of scheduled tasks is constantly increasing, which leads to a decrease in the efficiency of the system in processing scheduled tasks. Summary of the invention

[0004] In view of this, the present invention provides a task management method and device, a storage medium and an electronic device, which determine the queue to be executed to which the task belongs according to the ranking value of the task, and add the task to the queue to be executed to which it belongs. Subsequently, the task to be sent to the designated user end can be directly determined through the queue to be executed. In this way, less time is spent on task processing, the process is more convenient, and the efficiency of task processing is improved.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] A task management method, comprising:

[0007] When receiving the first scheduling task sent by the task scheduling center, obtaining each first target task from each business task pre-generated and stored in the task database;

[0008] Based on the execution time of each of the first target tasks, determining the to-be-executed queue to which each of the first target tasks belongs in the queue database, and determining the ranking value of each of the first target tasks;

[0009] Based on the ranking value of each of the first target tasks, adding each of the first target tasks to the to-be-executed queue to which it belongs;

[0010] When the second scheduling task sent by the task scheduling center is received, each second target task is obtained in each of the to-be-executed queues, and each of the second target tasks is sent to the task user.

[0011] In the above method, optionally, the step of obtaining each first target task from each business task pre-generated and stored in the task database includes:

[0012] Determining a screening time period for the first scheduling task;

[0013] Determine the execution time of each business task;

[0014] Determine the business tasks whose execution time is within the screening time period as screening tasks;

[0015] The task status of each of the screening tasks is determined, and the screening tasks whose task status is an unexecuted state are determined as the first target tasks.

[0016] In the above method, optionally, determining the ranking value of each of the first target tasks includes:

[0017] Determine a reference time and a preset number of retries for each of the first target tasks;

[0018] Processing is performed based on the parameter time, execution time and preset number of retries of each of the first target tasks to obtain a ranking value of each of the first target tasks.

[0019] In the above method, optionally, the process of generating the business task includes:

[0020] When receiving a task creation request sent by the business system, obtaining task data corresponding to the task creation request;

[0021] generating a business task corresponding to the task creation request based on the task data;

[0022] Based on the execution time of the business task, determining whether the business task meets a preset preprocessing condition;

[0023] If the business task meets the preset preprocessing condition, determine the queue to be executed to which the business task belongs, insert the business task into the queue to be executed, determine the task state of the business task to be a preprocessing state, and save the business task with the task state in the preprocessing state into the task database;

[0024] If the business task does not meet the preset preprocessing condition, the task status of the business task is determined as an unexecuted state, and the business task is saved in the task database.

[0025] In the above method, optionally, the step of obtaining each second target task in each of the to-be-executed queues includes:

[0026] Determine a target queue in each of the queues to be executed;

[0027] Each of the first N first target tasks in the target queue is determined as the second target task.

[0028] In the above method, optionally, the sending of each of the second target tasks to the task user terminal includes:

[0029] Based on each second target task, a task message queue is obtained;

[0030] Reading the first second target task in the task message queue, and taking the second target task as the current task;

[0031] Sending the current task to the task user, and determining whether the current task is sent successfully;

[0032] If the current task is sent successfully, then the sending information indicating that the current task is sent successfully is generated, and the next second target task in the task message queue is read, and the second target task is used as the current task, and the operation of sending the current task to the task user end and determining whether the current task is sent successfully is returned until all the second target tasks in the task message queue are read;

[0033] If the current task is not sent successfully, the current task is resent to the task user end until the number of times the current task is sent is greater than or equal to the preset number of times the current task is sent, generating sending information indicating that the current task has failed to be sent, and reading the next second target task in the task message queue, and taking the second target task as the current task, returning to execute the operation of sending the current task to the task user end and determining whether the current task has been sent successfully, until all the second target tasks in the task message queue have been read.

[0034] The above method may optionally further include:

[0035] For each of the current tasks, if the sending information of the current task indicates that the current task has been sent successfully, the current task is determined as a successful task and the successful task is added to the success queue; if the sending information of the current task indicates that the current task has failed to be sent, the current task is determined as a failed task and the failed task is added to the failure queue.

[0036] The above method may optionally further include:

[0037] Determine each successful task in the success queue whose queue status is an unread state, and determine each successful task in the queue status is an unread state as a task to be updated;

[0038] For each of the tasks to be updated, the task status of the business task corresponding to the task to be updated in the task database is updated to a sent successfully status, and the queue status of the task to be updated is updated to a read status.

[0039] A task management device, comprising:

[0040] A first acquisition unit is used to acquire each first target task from each business task pre-generated and stored in the task database when receiving the first scheduling task sent by the task scheduling center;

[0041] a first determining unit, configured to determine, based on the execution time of each of the first target tasks, the to-be-executed queue to which each of the first target tasks belongs in the queue database, and to determine a ranking value of each of the first target tasks;

[0042] An adding unit, configured to add each first target task to a to-be-executed queue to which it belongs based on the ranking value of each first target task;

[0043] The sending unit is used to obtain each second target task in each of the to-be-executed queues when receiving the second scheduling task sent by the task scheduling center, and send each of the second target tasks to the task user end.

[0044] In the above device, optionally, the first acquisition unit includes:

[0045] A first determining subunit, configured to determine a screening time period for the first scheduling task;

[0046] The second determination subunit is used to determine the execution time of each business task;

[0047] A third determining subunit is used to determine the business tasks whose execution time is within the screening time period as screening tasks;

[0048] The fourth determining subunit is used to determine the task status of each of the screening tasks, and determine the screening tasks whose task status is an unexecuted state as the first target task.

[0049] In the above device, optionally, the first determining unit includes:

[0050] a fifth determining subunit, configured to determine a reference time and a preset number of retries for each of the first target tasks;

[0051] The first obtaining subunit is used to process based on the parameter time, execution time and preset retry times of each of the first target tasks to obtain the ranking value of each of the first target tasks.

[0052] The above device may optionally include:

[0053] A second acquisition unit, configured to, when receiving a task creation request sent by the business system, acquire task data corresponding to the task creation request;

[0054] A generating unit, configured to generate a business task corresponding to the task creation request based on the task data;

[0055] A judging unit, configured to judge whether the business task satisfies a preset preprocessing condition based on the execution time of the business task;

[0056] A first saving unit is used to determine the queue to be executed to which the business task belongs if the business task meets a preset preprocessing condition, insert the business task into the queue to be executed, and determine that the task state of the business task is a preprocessing state, and save the business task with the task state in the preprocessing state into the task database;

[0057] The second saving unit is used to determine the task status of the business task as an unexecuted state if the business task does not meet a preset preprocessing condition, and save the business task in the task database.

[0058] In the above device, optionally, the sending unit includes:

[0059] A sixth determining subunit, configured to determine a target queue in each of the queues to be executed;

[0060] The seventh determining subunit is used to determine each of the first N first target tasks in the target queue as a second target task.

[0061] In the above device, optionally, the sending unit includes:

[0062] A second obtaining subunit is used to obtain a task message queue based on each second target task;

[0063] A reading subunit, used for reading the first second target task in the task message queue, and taking the second target task as the current task;

[0064] A first sending subunit is used to send the current task to the task user and determine whether the current task is sent successfully;

[0065] A generating subunit is used for generating sending information indicating that the current task is successfully sent if the current task is successfully sent, and reading the next second target task in the task message queue, and taking the second target task as the current task, returning to execute the operation of sending the current task to the task user end, and determining whether the current task is successfully sent, until all the second target tasks in the task message queue are read;

[0066] The second sending sub-unit is used to resend the current task to the task user end if the current task is not sent successfully, until the number of times the current task is sent is greater than or equal to the preset number of times the current task is sent, generate sending information representing the failure of sending the current task, read the next second target task in the task message queue, and use the second target task as the current task, return to execute the operation of sending the current task to the task user end, and determine whether the current task is sent successfully, until all the second target tasks in the task message queue are read.

[0067] The above device may optionally include:

[0068] An adding unit is used for, for each of the current tasks, if the sending information of the current task indicates that the current task is sent successfully, determining the current task as a successful task and adding the successful task to the success queue; if the sending information of the current task indicates that the current task is sent unsuccessfully, determining the current task as a failed task and adding the failed task to the failure queue.

[0069] The above device may optionally include:

[0070] A second determining unit is used to determine each successful task in the success queue whose queue status is an unread state, and determine each successful task in the queue status is an unread state as a task to be updated;

[0071] The updating unit is used to update the task status of the business task corresponding to the task to be updated in the task database to a sent successfully status for each task to be updated, and update the queue status of the task to be updated to a read status.

[0072] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the task management method described above.

[0073] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the task management method as described above.

[0074] Compared with the prior art, the present invention has the following advantages:

[0075] The present invention provides a task management method and device, a storage medium and an electronic device. The method comprises: when receiving a first scheduling task sent by a task scheduling center, obtaining each first target task from each business task pre-generated and stored in a task database; determining the queue to be executed to which each first target task belongs in the queue database based on the execution time of each first target task, and determining the ranking value of each first target task; adding each first target task to the queue to be executed to which it belongs based on the ranking value; when receiving a second scheduling task sent by the task scheduling center, obtaining each second target task in each queue to be executed, and sending each second target task to a task user. The present invention adds tasks to corresponding queues to be executed based on ranking values, improves the efficiency of querying tasks by using ranking values, and realizes the slicing management of tasks by using queues to be executed, and can determine the tasks to be sent to the task user in the queues to be executed, and the time spent on determining tasks is short, thereby improving the processing efficiency of tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0077] Figure 1 A method flow chart of a task management method provided by an embodiment of the present invention;

[0078] Figure 2 A flowchart of another method of a task management method provided by an embodiment of the present invention;

[0079] Figure 3 An example diagram of multiple queues to be executed provided by an embodiment of the present invention;

[0080] Figure 4 A flowchart of another method of a task management method provided by an embodiment of the present invention;

[0081] Figure 5 An example diagram of a task management method provided by an embodiment of the present invention;

[0082] Figure 6 Another method flow chart of a task management method provided by an embodiment of the present invention;

[0083] Figure 7 Another example diagram of a task management method provided by an embodiment of the present invention;

[0084] Figure 8 A schematic diagram of the structure of a task management device provided by an embodiment of the present invention;

[0085] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0087] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0088] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or devices, etc.

[0089] An embodiment of the present invention provides a task management method, which can be applied to a task management system or a task center. The execution subject of the method provided by the embodiment of the present invention is a task processor of the task management system or the task center. Specifically, the task processor can also be called a task executor, both of which are used to process tasks.

[0090] Reference Figure 1 , is a method flow chart of a task management method provided by an embodiment of the present invention, and is specifically described as follows:

[0091] S101. When a first scheduling task sent by a task scheduling center is received, each first target task is obtained from each business task generated in advance and stored in a task database.

[0092] In the method provided by the embodiment of the present invention, the task scheduling center may also be referred to as a task scheduling platform. The task scheduling center is used to generate various scheduling tasks, and the calling tasks are used to trigger the task executor to execute the corresponding task logic.

[0093] When the task executor receives the first scheduling task sent by the task scheduling center, the task executor obtains each first target task from the task database, wherein the task database stores a plurality of pre-generated business tasks.

[0094] The first scheduling task includes the logic of selecting the first target task. After the task executor executes the first scheduling task, each first target task is selected from the task database according to the logic in the first scheduling task. The task database can be a MySQL database. Figure 2 The specific process is as follows:

[0095] S201: Determine a screening time period for a first scheduling task.

[0096] In the method provided in the embodiment of the present invention, the screening time period = XT, where T is a time unit, specifically days, hours, minutes, etc.; X is a positive integer, indicating a quantity. The screening time period is used to screen out the business tasks to be executed in advance.

[0097] S202: Determine the execution time of each business task.

[0098] Scan each task data table in the task database to obtain the execution time of each business task. The task database in the embodiment of the present invention adopts a sub-library and sub-table design, where different libraries store different task data tables, and different task data tables store task data of different business tasks.

[0099] The task data table stores the task data of the business task. The specific content of the data structure of the task data is shown in Table 1:

[0100]

[0101] Table 1

[0102] Among them, the taskId field in Table 1 carries the key gene of the sub-library and sub-table of the business task. This field can be used to determine the table and library where the business task is located. A unique and non-repetitive index for the business task can be created based on the bizId field and bizType field in the data structure of the business task, which can be used to find the business task.

[0103] Preferably, in the method provided in the embodiment of the present invention, the total length of the taskId field is 24 bits, and the composition and description of the taskId field are shown in Table 2;

[0104] Location 1-4 5-10 11-18 19-24 meaning bizType Sub-library and sub-table location Year / Week / Month / Day x hashCode

[0105] Table 2

[0106] Among them, 1-4 digits: prefixed with bizType, have no special meaning, and are only used to distinguish different businesses;

[0107] 5-10 digits: 2 digits for database sub-division and 4 digits for table sub-division, confirming which database and table the data will be saved in;

[0108] 11-18 digits: the number of years, weeks, months, days from a certain date;

[0109] 19-24 bits: Anti-duplicate bits (bizType+bizUuid). The absolute value of the remainder of hashCode over 100000.

[0110] The following example illustrates the result value of the taskId field. Table 3 is a table illustrating the result value of the taskId field.

[0111] Location 1-4 5-10 11-18 19-24 Result value Example 1 TEST 03 0086 01 08 08 08 65705 TEST03008601080808657050 Example 2 ORDR 11 0198 02 48 11 30 98729 ORDR11019802481130987291 Example 3 TRSC 08 0097 01 36 10 31 76920 TRSC08009701361031769202 Example 4 OGMR 04 0002 02 20 02 28 99220 OGMR04000202200228992203

[0112] Table 3

[0113] S203: Determine the business tasks whose execution time is within the screening time period as screening tasks.

[0114] After scanning each task data table in the business database, the execution time of each business task can be determined, and the business tasks to be executed can be screened in advance by the execution time and the screening time period. For example, if the time unit of T is hours and X is 2, the screening time period is 2 hours; assuming that the current time is 9 o'clock, the screening time period specifically refers to the time from 9 o'clock to 11 o'clock, and the business tasks with execution time between 9 o'clock and 11 o'clock are determined as screening tasks.

[0115] S204: Determine the task status of each of the screening tasks, and determine the screening tasks whose task status is unexecuted as the first target task.

[0116] After the screening tasks are obtained, each screening task may have different task states. The task state of each screening task is determined through the task data in the task data table, and the screening task with the task state of not being executed is determined as the first target task. Preferably, the task state of the business task corresponding to the first target task in the task database is updated to the pre-processing state.

[0117] In the method provided by the embodiment of the present invention, the first target task is determined by the execution time and task status of the business task, which can effectively filter out some business tasks that have been processed, thereby effectively avoiding repeated acquisition of business tasks and further preventing repeated execution of business tasks, thereby improving the work efficiency of the task center and avoiding waste of computing resources.

[0118] S102: Based on the execution time of each of the first target tasks, determine the to-be-executed queue to which each of the first target tasks belongs in the queue database, and determine the ranking value of each of the first target tasks.

[0119] In the method provided in the embodiment of the present invention, the queue database may be a database constructed based on a remote dictionary service (RemoteDictionary Server, Redis). Specifically, the queue database may be called a Redis library, wherein the queue database includes multiple queues to be executed. Figure 3 , which is an example diagram of multiple queues to be executed provided by an embodiment of the present invention, such as Figure 3 As shown, there are 3 queues to be executed, where different queues to be executed correspond to different execution dates, and the queues to be executed can be named according to the execution dates, such as: Queue 1 to be executed can be named: Queue20210601, indicating that the tasks in the execution queue are all tasks that need to be executed on June 1, 2021; Queue 2 to be executed can be named Queue20210601, indicating that the tasks in the queue to be executed are all tasks that need to be executed on June 2, 2021. Preferably, the queues to be executed can also be named in hours, such as Queue2021060100-01, indicating that the tasks saved in the queue to be executed are tasks that need to be executed from 0:00 to 1:00 on June 1, 2021; such as Queue2021060101-02, indicating that the tasks saved in the queue to be executed are tasks that need to be executed from 1:00 to 2:00 on June 1, 2021. By creating queues for execution with different execution times, tasks with different execution times can be effectively isolated, task data can be isolated, tasks can be ordered, and the task processing process can be optimized.

[0120] In the queue to be executed provided by the embodiment of the present invention, each task is sorted according to the sorting value of the task. When arranging according to the sorting value of the task, it can be arranged in order from small to large according to the sorting value, that is, the smaller the sorting value, the higher the task is ranked; optionally, it can also be arranged in order from large to small according to the sorting value, that is, the larger the sorting value, the higher the task is ranked; preferably, the method provided by the embodiment of the present invention arranges in order from small to large according to the sorting value.

[0121] The process of determining the ranking value of the first target task is as follows:

[0122] Determine a reference time and a preset number of retries for each of the first target tasks;

[0123] Processing is performed based on the parameter time, execution time and preset number of retries of each of the first target tasks to obtain a ranking value of each of the first target tasks.

[0124] When determining the reference time of the first target task, the reference time may be determined based on the execution time of the first target task, for example, 0:00 on the second day after the first target task is executed is taken as the reference time. The execution time of the first target task may be obtained from the executeTime field in the task data table.

[0125] The preset number of retries of each first target task is preset and is set when the task is generated. The preset number of retries of different first target tasks may be the same.

[0126] The code for getting the ranking value of the first target task is as follows:

[0127] Long score=executeTime.getTime()-referenceTime.getTime()+number();

[0128] Among them, Long score represents the ranking value; executeTime.getTime() represents the value corresponding to the execution time; referenceTime.getTime() represents the value corresponding to the reference time; number() represents the value corresponding to the preset number of retries. Specifically, the value can be a preset value. For example, when the preset number of retries for each task is 10, number() can be set to 0.10. Furthermore, the data type of the ranking value is Double data type.

[0129] To specifically illustrate the process of obtaining the ranking value, take task A as an example: the reference time of the task is 2021-06-07 00:00:00, take its timestamp and discard the last 3 digits (that is, discard the milliseconds to seconds), and the value corresponding to the reference time is: 1622995200; the execution time of the task is 2021-06-06 10:00:00, take its timestamp and discard the last 3 digits (that is, discard the milliseconds to seconds), and the value corresponding to the execution time is: 1622944800; the preset number of retries for the task is 10 times, then number() is 0.10; the ranking value of task A = 1622995200–1622944800+0.10=50400.10; thus, the ranking value of task A can be obtained.

[0130] S103: Based on the ranking value of each of the first target tasks, add each of the first target tasks to the queue to be executed to which it belongs.

[0131] For each first target task, after determining the queue to be executed and the sorting value to which the first target task belongs, the first target task is inserted into the queue to be executed according to the sorting value and the sorting rule of the queue to be executed. Furthermore, the sorting rule can be specifically to sort the tasks in the queue to be executed in order from small to large according to the sorting value or in order from large to small according to the sorting value.

[0132] S104: When receiving the second scheduling task sent by the task scheduling center, obtaining each second target task in each of the to-be-executed queues, and sending each of the second target tasks to the task user.

[0133] The second scheduling task is used to trigger the task executor to send the task to the task user end, wherein the task user end is a terminal that performs business processing according to the logic of the task. When the task executor sends the task to the task user end, it sends it to the task user end by calling the business interface corresponding to the task.

[0134] The specific process of obtaining each second target task in each queue to be executed is as follows:

[0135] Determine a target queue in each of the queues to be executed;

[0136] Each of the first N first target tasks in the target queue is determined as the second target task.

[0137] The target queue in the method provided by the embodiment of the present invention is specifically the queue to be executed that needs to be executed currently. The target queue can be determined according to the queue name of each queue to be executed, and the queue to be executed that needs to be executed on the day is determined as the target queue. The first N first target tasks in the target queue are all determined as the second target tasks, where N is a positive integer and the value of N can be set in advance. Further, when the number of first target tasks in the target queue is less than or equal to N, all first target tasks in the target queue are determined as second target tasks; when the number of first target tasks in the target queue is greater than N, each first target task in the first N of the target queue is determined as the second target task.

[0138] By determining the target queue, the tasks that need to be sent to the task user can be quickly determined. This process is simple and uncomplicated, and can quickly improve the processing capacity of the task processor, thereby improving the processing efficiency of the task.

[0139] Reference Figure 4, which is a flow chart of a method for sending each second target task to a task user end provided by an embodiment of the present invention, is specifically described as follows:

[0140] S401. Obtain a task message queue based on each second target task.

[0141] According to the order in which the second target tasks are arranged in the target queue, the second target tasks are sequentially placed in the message queue to obtain a task message queue, wherein the tasks arranged earlier are placed in the message queue first and the tasks arranged later are placed in the message queue later.

[0142] S402: Read the first second target task in the task message queue, and use the second target task as the current task.

[0143] The task message queue is a first-in-first-out queue. The second target task that enters first is the first second target task in the task message queue, and the second target task that enters later is the last target task in the task message queue. Read the first second target task in the task message queue and use the second target task as the current task.

[0144] S403, sending the current task to the task user, and determining whether the current task is sent successfully; if the current task is sent successfully, executing S404; if the current task is not sent successfully, executing S405.

[0145] S404: Generate sending information indicating that the current task is sent successfully.

[0146] In the method provided by the embodiment of the present invention, after generating the sending information indicating that the current task is successfully sent, S406 is continued to be executed. When the current task is successfully sent to the task user, the task status of the business task corresponding to the current task in the task database is updated to be sent successfully.

[0147] S405: resend the current task to the task user until the number of times the current task is sent is greater than or equal to the preset number of times the current task is sent, and then generate sending information indicating that the current task fails to be sent.

[0148] The preset number of times provided in the embodiment of the present invention is the number of times the current task is sent to the task user end. When the number of times the current task is sent to the task user end is greater than the preset number of times, it can be directly determined that the current task has failed to be sent; the preset number of times can be set according to actual needs, wherein the preset number of times here is the same as the preset number of retries mentioned above, both of which are the maximum number of times the current task can be sent. In the process of resending the current task to the task user end, the task status of the business task corresponding to the current task in the task database is updated to retrying.

[0149] In the method provided by the embodiment of the present invention, after executing S405, continue to execute S406.

[0150] S406, determining whether all second target tasks in the task message queue have been read; if all second target tasks in the task message queue have not been read, executing S407; if all second target tasks in the task message queue have been read, executing S408.

[0151] Determining whether all the second target tasks in the task message queue have been read is to determine whether all the second target tasks in the task message queue have been read.

[0152] S407: Read the next second target task in the task message queue, and use the second target task as the current task.

[0153] In the method provided by the embodiment of the present invention, after executing S407, the process returns to executing S403.

[0154] S408: Delete the task message queue.

[0155] After all second target tasks in the task message queue are read, the process of sending the second target tasks to the task user is terminated, and the task message queue is deleted.

[0156] In the method provided by the embodiment of the present invention, by generating a task message queue, each second target task can be sent to the task user end in an orderly manner, thereby ensuring the orderliness of task sending, and in the process of sending tasks, the tasks can be sent multiple times, thereby improving the fault tolerance rate of errors in the sending process and further improving the probability of successful task sending.

[0157] Further, for each current task, if the sending information of the current task indicates that the current task is successfully sent, the current task is determined as a successful task and the successful task is added to the success queue; if the sending information of the current task indicates that the current task fails to be sent, the current task is determined as a failed task and the failed task is added to the failure queue. Figure 5 , provides a scenario example diagram of task enqueuing for an embodiment of the present invention. As shown in the figure, after selecting a task from a target queue, a task message queue is generated, and tasks that are successfully sent in the task message queue are added to a success queue, and tasks that fail to be sent in the task message queue are added to a failure queue.

[0158] By adding successfully sent tasks to a successful queue and failing to send tasks to a failed queue, successfully sent tasks and failing to send tasks can be distinguished. For each failed task in the failed queue, the system can send an alarm to the staff so that the staff can process the failed task; for the successful queue, each successful task in the successful queue with a queue status of unread is determined, and each successful task with a queue status of unread is determined as a task to be updated; for each task to be updated, the task status of the business task corresponding to the task to be updated in the task database is updated to a successfully sent status, and the queue status of the task to be updated is updated to a read status. It can be seen that the task status of the business tasks in the task database is synchronized, and the task status of each business task in the task database can be updated in time to prevent repeated execution of business tasks.

[0159] In the method provided by the embodiment of the present invention, when the first scheduling task sent by the task scheduling center is received, each first target task is obtained from each business task pre-generated and stored in the task database; based on the execution time of each first target task, the queue to be executed of each first target task in the queue database is determined, and the ranking value of each first target task is determined; based on the ranking value of each first target task, each first target task is added to the queue to be executed to which it belongs; when the second scheduling task sent by the task scheduling center is received, each second target task is obtained in each queue to be executed, and each second target task is sent to the task user. Each first target task obtained from the task database is added to the queue to be executed to which it belongs, so that the task is processed in pieces. It is only necessary to determine each second target task that needs to be sent to the task user in the queue to be executed, which effectively reduces the time required to determine the task. By managing tasks in pieces, the efficiency of task processing can be effectively improved, and computing resources can be effectively utilized, thereby improving the throughput of task processing.

[0160] Reference Figure 6 , a flowchart of a method for generating a business task is provided for an embodiment of the present invention, and the specific description is as follows:

[0161] S601. When a task creation request sent by a business system is received, task data corresponding to the task creation request is acquired.

[0162] The business system can send task creation instructions to the task executor through the scheduling center. The task data includes task business data, execution time, execution status, number of retries, and other data of the task.

[0163] S602: Generate a business task corresponding to the task creation request based on the task data.

[0164] Business tasks can specifically be scheduled tasks. For example, unpaid orders submitted by users in the mall will be automatically closed after 1 hour. A task will be pre-generated to execute the order closing after 1 hour. This task is a business task. For example, the unused points in the user's membership account will expire and become invalid at 2021-12-31 23:59:59. A task will be pre-generated to be executed at 2021-12-31 23:59:59 to invalidate the user's unused membership points. This task is a business task.

[0165] S603. Based on the execution time of the business task, determine whether the business task meets the preset preprocessing conditions; if the business task meets the preset preprocessing conditions, execute S604; if the business task does not meet the preset preprocessing conditions, execute S605.

[0166] The situation where a business task meets the preprocessing condition is: the execution time of the business task is within the preprocessing time period of the preprocessing condition, where the time unit of the preprocessing time period can be expressed in days, hours or minutes; for example, the preprocessing time period is within 2 hours, assuming that the current time is 10 am, the specific time corresponding to the preprocessing time period is 10 am to 12 pm, when the execution time of the business task is 10:10 am, it is determined that the business task meets the preprocessing condition; when the execution time of the business task is 13:00 pm, it is determined that the business task does not meet the preprocessing condition.

[0167] S604: Determine the queue to be executed to which the business task belongs, insert the business task into the queue to be executed, determine that the task status of the business task is a pre-processing status, and save the business task with the task status of the pre-processing status into the task database.

[0168] In the method provided by an embodiment of the present invention, after determining that a business task meets a preprocessing condition, the queue to be executed of the business task in the queue database is determined, and the arrangement value of the business task is determined, and based on the arrangement value of the business task, the business task is inserted into the queue to be executed. The process of determining the arrangement value of the business task can be referred to the above description and will not be repeated here.

[0169] The task status of the business task is determined to be a pre-processing status, and the business task with the task status of the pre-processing status is saved in the task database to ensure that all task data is recorded in the task database, ensuring the integrity and comprehensiveness of the data in the task database.

[0170] S605: Determine the task status of the business task as an unexecuted state, and save the business task in the task database.

[0171] When it is determined that the business task does not satisfy the preprocessing condition, the task status of the business task is determined as an unexecuted state, and the business task is saved in a task database.

[0172] In the method provided by the embodiment of the present invention, after generating a business task, it is determined whether the business data meets the preprocessing conditions. If so, the business task is inserted into the corresponding queue to be processed, and the business task is saved in the task database; if not, the business task is saved in the task database. After generating a business task, if the business task meets the preprocessing conditions, the business task is inserted into the queue to be processed, so that the business task can be processed in time to prevent the business task from being missed.

[0173] Reference Figure 7 , is a flowchart of a task management method provided by an embodiment of the present invention, and is specifically described as follows:

[0174] like Figure 7 As shown, the diagram includes a scheduling center, a task executor, a task database, a queue database, a message queue middleware, and a task user; the diagram includes three parts, one is the process of generating tasks, one is the process of enqueuing tasks, and the other is the process of sending tasks.

[0175] In the process of generating tasks, the task executor receives the task creation instruction sent by the business system through the scheduling center. The task executor queries the task database, obtains the task data and generates the task. After generating the task, it is also necessary to determine whether the task needs to be queued. If the task needs to be queued, the task will be stored in the queue to be executed and the task database. If the task does not need to be queued, the task will be saved in the task database.

[0176] During the task enqueuing process, after the task executor receives the scheduled task sent by the scheduling center, it queries the task database for tasks to be executed, thereby obtaining the tasks to be executed returned by the task database and storing the tasks to be executed in the corresponding queue to be executed.

[0177] During the task sending process, after the task executor receives the scheduling task sent by the scheduling center, it queries the task to be executed in the queue database to obtain the task to be executed from the queue database; the acquired task to be executed is sent to the message queue middleware, so that the message queue middleware sends the task to the task user, and the task user executes the processing business logic corresponding to the task after receiving the task.

[0178] In the method provided by the embodiment of the present invention, when the first scheduling task sent by the task scheduling center is received, each first target task is obtained from each business task pre-generated and stored in the task database; based on the execution time of each first target task, the queue to be executed to which each first target task belongs in the queue database is determined, and the ranking value of each first target task is determined; based on the ranking value of each first target task, each first target task is added to the queue to be executed to which it belongs; when the second scheduling task sent by the task scheduling center is received, each second target task is obtained in each queue to be executed, and each second target task is sent to the task user. The present invention adds each first target task obtained from the task database to the queue to be executed corresponding to it, and when the first target task is added to the queue to be executed, it is added according to the ranking value of the first target task, so that the task can be quickly and accurately queried, thereby improving the efficiency of querying tasks, and first processing some tasks, adding some tasks to the queue to be executed first, realizing the block management of tasks, making the management of tasks more orderly, thereby improving the efficiency of task processing.

[0179] and Figure 1 Corresponding to the method shown in the figure, an embodiment of the present invention provides a task management device, which can be applied to a task processing center. The device is used to support the application of the method provided by the present invention in real life. The structural diagram of the device is shown in FIG. Figure 8 The specific instructions are as follows:

[0180] The first acquisition unit 801 is used to acquire each first target task from each business task pre-generated and stored in the task database when receiving the first scheduling task sent by the task scheduling center;

[0181] A first determining unit 802 is used to determine, based on the execution time of each of the first target tasks, the to-be-executed queue to which each of the first target tasks belongs in the queue database, and to determine the ranking value of each of the first target tasks;

[0182] An adding unit 803 is used to add each first target task to the to-be-executed queue to which it belongs based on the ranking value of each first target task;

[0183] The sending unit 804 is used to obtain each second target task in each of the to-be-executed queues when receiving the second scheduling task sent by the task scheduling center, and send each of the second target tasks to the task user.

[0184] In the device provided by the embodiment of the present invention, when receiving the first scheduling task sent by the task scheduling center, each first target task is obtained from each business task pre-generated and stored in the task database; based on the execution time of each first target task, the queue to be executed to which each first target task belongs in the queue database is determined, and the ranking value of each first target task is determined; based on the ranking value of each first target task, each first target task is added to the queue to be executed to which it belongs; when receiving the second scheduling task sent by the task scheduling center, each second target task is obtained in each queue to be executed, and each second target task is sent to the task user. The present invention adds each first target task obtained from the task database to the queue to be executed corresponding to it. When adding the first target task to the queue to be executed, it is added according to the ranking value of the first target task, so that the task can be queried quickly and accurately in the future, thereby improving the efficiency of querying tasks. The present invention first processes some tasks and adds some tasks to the queue to be executed first, realizing the block management of tasks, making the management of tasks more orderly, reducing the processing pressure of the system and thus increasing the throughput of the system processing tasks, and also effectively improving the efficiency of task processing.

[0185] In the apparatus provided in the embodiment of the present invention, the first acquiring unit 801 may be configured as follows:

[0186] A first determining subunit, configured to determine a screening time period for the first scheduling task;

[0187] The second determination subunit is used to determine the execution time of each business task;

[0188] A third determining subunit is used to determine the business tasks whose execution time is within the screening time period as screening tasks;

[0189] The fourth determining subunit is used to determine the task status of each of the screening tasks, and determine the screening tasks whose task status is an unexecuted state as the first target task.

[0190] In the apparatus provided in the embodiment of the present invention, the first determining unit 802 may be configured as follows:

[0191] a fifth determining subunit, configured to determine a reference time and a preset number of retries for each of the first target tasks;

[0192] The first obtaining subunit is used to process based on the parameter time, execution time and preset retry times of each of the first target tasks to obtain the ranking value of each of the first target tasks.

[0193] The device provided in the embodiment of the present invention may also be configured as:

[0194] A second acquisition unit, configured to, when receiving a task creation request sent by the business system, acquire task data corresponding to the task creation request;

[0195] A generating unit, configured to generate a business task corresponding to the task creation request based on the task data;

[0196] A judging unit, configured to judge whether the business task satisfies a preset preprocessing condition based on the execution time of the business task;

[0197] A first saving unit is used to determine the queue to be executed to which the business task belongs if the business task meets a preset preprocessing condition, insert the business task into the queue to be executed, and determine that the task state of the business task is a preprocessing state, and save the business task with the task state in the preprocessing state into the task database;

[0198] The second saving unit is used to determine the task status of the business task as an unexecuted state if the business task does not meet a preset preprocessing condition, and save the business task in the task database.

[0199] In the apparatus provided in the embodiment of the present invention, the sending unit 804 may be configured as follows:

[0200] A sixth determining subunit, configured to determine a target queue in each of the queues to be executed;

[0201] The seventh determining subunit is used to determine each of the first N first target tasks in the target queue as a second target task.

[0202] In the apparatus provided in the embodiment of the present invention, the sending unit 804 may be configured as follows:

[0203] A second obtaining subunit is used to obtain a task message queue based on each second target task;

[0204] A reading subunit, used for reading the first second target task in the task message queue, and taking the second target task as the current task;

[0205] A first sending subunit is used to send the current task to the task user and determine whether the current task is sent successfully;

[0206] A generating subunit is used for generating sending information indicating that the current task is successfully sent if the current task is successfully sent, and reading the next second target task in the task message queue, and taking the second target task as the current task, returning to execute the operation of sending the current task to the task user end, and determining whether the current task is successfully sent, until all the second target tasks in the task message queue are read;

[0207] The second sending sub-unit is used to resend the current task to the task user end if the current task is not sent successfully, until the number of times the current task is sent is greater than or equal to the preset number of times the current task is sent, generate sending information representing the failure of sending the current task, read the next second target task in the task message queue, and use the second target task as the current task, return to execute the operation of sending the current task to the task user end, and determine whether the current task is sent successfully, until all the second target tasks in the task message queue are read.

[0208] The device provided in the embodiment of the present invention may also be configured as:

[0209] An adding unit is used for, for each of the current tasks, if the sending information of the current task indicates that the current task is sent successfully, determining the current task as a successful task and adding the successful task to the success queue; if the sending information of the current task indicates that the current task is sent unsuccessfully, determining the current task as a failed task and adding the failed task to the failure queue.

[0210] The device provided in the embodiment of the present invention may also be configured as:

[0211] A second determining unit is used to determine each successful task in the success queue whose queue status is an unread state, and determine each successful task in the queue status is an unread state as a task to be updated;

[0212] The updating unit is used to update the task status of the business task corresponding to the task to be updated in the task database to a sent successfully status for each task to be updated, and update the queue status of the task to be updated to a read status.

[0213] An embodiment of the present invention further provides a storage medium, wherein the storage medium includes stored instructions, wherein when the instructions are executed, a device where the storage medium is located is controlled to perform the following operations:

[0214] When receiving the first scheduling task sent by the task scheduling center, obtaining each first target task from each business task pre-generated and stored in the task database;

[0215] Based on the execution time of each of the first target tasks, determining the to-be-executed queue to which each of the first target tasks belongs in the queue database, and determining the ranking value of each of the first target tasks;

[0216] Based on the ranking value of each of the first target tasks, adding each of the first target tasks to the to-be-executed queue to which it belongs;

[0217] When the second scheduling task sent by the task scheduling center is received, each second target task is obtained in each of the to-be-executed queues, and each of the second target tasks is sent to the task user.

[0218] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Fig. 9 As shown, it specifically includes a memory 901 and one or more instructions 902, wherein the one or more instructions 902 are stored in the memory 901 and are configured to be executed by one or more processors 903 to perform the following operations:

[0219] When receiving the first scheduling task sent by the task scheduling center, obtaining each first target task from each business task pre-generated and stored in the task database;

[0220] Based on the execution time of each of the first target tasks, determining the to-be-executed queue to which each of the first target tasks belongs in the queue database, and determining the ranking value of each of the first target tasks;

[0221] Based on the ranking value of each of the first target tasks, adding each of the first target tasks to the to-be-executed queue to which it belongs;

[0222] When the second scheduling task sent by the task scheduling center is received, each second target task is obtained in each of the to-be-executed queues, and each of the second target tasks is sent to the task user.

[0223] The specific implementation processes and derivative methods of the above-mentioned embodiments are all within the protection scope of the present invention.

[0224] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0225] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0226] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A task management method, characterized in that: include: When receiving the first scheduling task sent by the task scheduling center, obtaining each first target task from each business task pre-generated and stored in the task database, including: determining the screening time period of the first scheduling task; determining the execution time of each business task; determining the business task whose execution time is within the screening time period as the screening task; determining the task status of each of the screening tasks, and determining the screening task whose task status is unexecuted as the first target task; Based on the execution time of each of the first target tasks, determine the queue to be executed in the queue database to which each of the first target tasks belongs, and determine the ranking value of each of the first target tasks; the determining of the ranking value of each of the first target tasks includes: determining the reference time and the preset number of retries of each of the first target tasks; processing based on the parameter time, execution time and the preset number of retries of each of the first target tasks to obtain the ranking value of each of the first target tasks; Based on the ranking value of each of the first target tasks, each of the first target tasks is added to the queue to be executed to which it belongs; each task in the queue to be executed is sorted in the order of the ranking value of the task; When receiving the second scheduling task sent by the task scheduling center, determining the target queue in each of the to-be-executed queues, and determining each of the first N first target tasks in the target queue as the second target task; According to the order in which the second target tasks are arranged in the target queue, the second target tasks are sequentially placed in the message queue to obtain a task message queue; wherein the tasks arranged earlier are placed in the message queue first, and the tasks arranged later are placed in the message queue later; Reading the first second target task in the task message queue, and taking the second target task as the current task; Sending the current task to the task user, and determining whether the current task is sent successfully; If the current task is sent successfully, then the sending information indicating that the current task is sent successfully is generated, and the next second target task in the task message queue is read, and the second target task is used as the current task, and the operation of sending the current task to the task user end and determining whether the current task is sent successfully is returned until all the second target tasks in the task message queue are read; If the current task is not sent successfully, the current task is resent to the task user end until the number of times the current task is sent is greater than or equal to the preset number of times the current task is sent, generating sending information indicating that the current task has failed to be sent, and reading the next second target task in the task message queue, and taking the second target task as the current task, returning to execute the operation of sending the current task to the task user end and determining whether the current task has been sent successfully, until all the second target tasks in the task message queue have been read.

2. The method according to claim 1, characterized in that The process of generating business tasks includes: When receiving a task creation request sent by the business system, obtaining task data corresponding to the task creation request; generating a business task corresponding to the task creation request based on the task data; Based on the execution time of the business task, determining whether the business task meets a preset preprocessing condition; If the business task meets the preset preprocessing condition, determine the queue to be executed to which the business task belongs, insert the business task into the queue to be executed, determine the task state of the business task to be a preprocessing state, and save the business task with the task state in the preprocessing state into the task database; If the business task does not meet the preset preprocessing condition, the task status of the business task is determined as an unexecuted state, and the business task is saved in the task database.

3. The method according to claim 1, characterized in that Also includes: For each of the current tasks, if the sending information of the current task indicates that the current task has been sent successfully, the current task is determined as a successful task and the successful task is added to the success queue; if the sending information of the current task indicates that the current task has failed to be sent, the current task is determined as a failed task and the failed task is added to the failure queue.

4. The method according to claim 3, characterized in that Also includes: Determine each successful task in the success queue whose queue status is an unread state, and determine each successful task in the queue status is an unread state as a task to be updated; For each of the tasks to be updated, the task status of the business task corresponding to the task to be updated in the task database is updated to a sent successfully status, and the queue status of the task to be updated is updated to a read status.

5. A task management device, characterized in that: include: A first acquisition unit is used to acquire each first target task from each business task pre-generated and stored in the task database when receiving the first scheduling task sent by the task scheduling center; The first acquisition unit includes: a first determination subunit, a second determination subunit, a third determination subunit and a fourth determination subunit; The first determining subunit is used to determine a screening time period for the first scheduling task; The second determining subunit is used to determine the execution time of each business task; The third determining subunit is used to determine the business tasks whose execution time is within the screening time period as screening tasks; The fourth determining subunit is used to determine the task status of each of the screening tasks, and determine the screening tasks whose task status is unexecuted as the first target task; a first determining unit, configured to determine, based on the execution time of each of the first target tasks, the to-be-executed queue to which each of the first target tasks belongs in the queue database, and to determine a ranking value of each of the first target tasks; The first determining unit includes: a fifth determining subunit and a first obtaining subunit; The fifth determining subunit is used to determine the reference time and the preset number of retries of each of the first target tasks; The first obtaining subunit is used to process based on the parameter time, execution time and preset number of retries of each of the first target tasks to obtain the ranking value of each of the first target tasks; An adding unit, configured to add each first target task to a to-be-executed queue to which it belongs based on the ranking value of each first target task; each task in the to-be-executed queue is sorted in order of the ranking value of the task; The sending unit includes: a sixth determining subunit, a seventh determining subunit, a second obtaining subunit, a reading subunit, a first sending subunit, a generating subunit, and a second sending subunit; The sixth determining subunit is configured to determine a target queue in each of the to-be-executed queues when receiving a second scheduling task sent by the task scheduling center; The seventh determining subunit is used to determine each of the first N first target tasks in the target queue as the second target task; The second obtaining subunit is used to put each of the second target tasks into the message queue in sequence according to the order in which the second target tasks are arranged in the target queue, so as to obtain a task message queue; wherein the tasks arranged earlier are put into the message queue first, and the tasks arranged later are put into the message queue later; The reading subunit is used to read the first second target task in the task message queue and use the second target task as the current task; The first sending subunit is used to send the current task to the task user end and determine whether the current task is sent successfully; The generating subunit is used for generating sending information indicating that the current task is successfully sent if the current task is successfully sent, and reading the next second target task in the task message queue, and taking the second target task as the current task, returning to execute the operation of sending the current task to the task user end, and determining whether the current task is successfully sent, until all the second target tasks in the task message queue are read; The second sending subunit is used to resend the current task to the task user end if the current task is not sent successfully, until the number of times the current task is sent is greater than or equal to the preset number of times the current task is sent, generate sending information indicating the failure of the current task to send, read the next second target task in the task message queue, and use the second target task as the current task, return to execute the operation of sending the current task to the task user end, and determine whether the current task is sent successfully, until all the second target tasks in the task message queue are read.

6. A storage medium, characterized in that: The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the task management method according to any one of claims 1 to 4.

7. An electronic device, characterized in that: The system comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the task management method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Task scheduling management method and device, and operation and maintenance management server

    CN109634733A

  • Timed task distribution method, device, system and equipment

    CN109766167A

  • Task scheduling execution method and device

    CN113448712A