Batch task processing method and device, equipment, storage medium and program product

By obtaining task attribute information and failure time interval, determining the target batch task and resending the request, the problem that the batch task processing process cannot process tasks within the failure time interval is solved, and the reliability of batch task processing is improved.

CN119166294APending Publication Date: 2024-12-20BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411024529.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

The batch task processing process cannot handle tasks smoothly within the failure time interval, resulting in low processing reliability and the incomplete tasks cannot be processed again after the process is restored.

Method used

By obtaining task attribute information and failure time intervals, determining the target batch task, and generating a task processing request to send it to the server, ensuring that unfinished tasks are reprocessed when the batch task processing process is restored to valid.

Benefits of technology

Improve the reliability of batch task processing, ensure that the unfinished tasks within the failure time interval can be reprocessed after the batch task processing process is restored, and avoid task processing failures caused by process failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166294A_ABST
    Figure CN119166294A_ABST
Patent Text Reader

Abstract

The invention relates to a batch task processing method and device, equipment, a storage medium and a program product. The invention relates to the field of distributed technology. The method comprises the steps that task attribute information of each batch task is obtained, a failure time interval corresponding to a batch task processing process in a server is obtained, the task attribute information comprises task identifiers of the batch tasks, and then the batch tasks are processed according to the task attribute information and the failure time interval. At least one target batch task corresponding to the failure time interval is determined, then a task processing request is generated according to a target task identifier of the target batch task, the task processing request is sent to the server, and the task processing request is used for the server to process the batch task under the condition that the batch task processing process is valid. And processing a target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process. By adopting the method, the reliability of batch task processing can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of distributed technology, and in particular to a batch task processing method, apparatus, device, storage medium and program product. Background Art

[0002] Batch processing is also called batch job or batch task. In some business scenarios, batch task processing usually needs to process the corresponding batch tasks within a set time window.

[0003] At present, in the actual business processing process, special events sometimes occur in the batch task processing process, such as batch task processing process failure, business party suspension within the time window corresponding to the batch task, etc., resulting in the batch task cannot be processed smoothly and the reliability of batch task processing is low. Summary of the invention

[0004] Based on this, it is necessary to provide a batch task processing method, device, equipment, storage medium and program product that can improve the reliability of batch task processing in response to the above technical problems.

[0005] In a first aspect, the present application provides a batch task processing method. The method is used in a terminal, and the method includes:

[0006] Obtaining task attribute information of each batch task, and obtaining the expiration time interval corresponding to the batch task processing process in the server, the task attribute information including the task identifier of the batch task;

[0007] Determine at least one target batch task corresponding to the expiration time interval according to the attribute information of each task and the expiration time interval;

[0008] A task processing request is generated according to the target task identifier of the target batch task, and the task processing request is sent to the server; the task processing request is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid.

[0009] In one embodiment, the task attribute information further includes a task scheduling time corresponding to the batch task; and determining at least one target batch task corresponding to the expiration time interval according to each task attribute information and the expiration time interval includes:

[0010] Match the task scheduling time with the expiration time interval;

[0011] If the task scheduling time is within the invalid time interval, the batch task corresponding to the task scheduling time is determined as the target batch task.

[0012] In one embodiment, obtaining the expiration time interval corresponding to the batch task processing process in the server includes:

[0013] Receive the expiration prompt information of the batch task processing process sent by the server, and determine the expiration time interval according to the expiration prompt information.

[0014] In one embodiment, generating a task processing request according to a target task identifier of a target batch task includes:

[0015] The target task identifier is encapsulated according to the preset request message format to obtain a task processing request.

[0016] In a second aspect, the present application provides a batch task processing method. The method is used in a server, and the method includes:

[0017] A task processing request sent by a receiving terminal includes a target task identifier of a target batch task, where the target batch task is a batch task corresponding to an expiration time interval corresponding to a batch task processing process in a server;

[0018] According to the target task identifier included in the task processing request, a target batch task corresponding to the target task identifier is determined, and if the batch task processing process is valid, the target batch task is processed through the batch task processing process.

[0019] In one embodiment, the method further comprises:

[0020] Monitor the running status of the batch task processing process and obtain the running stop time and running resumption time of the batch task processing process;

[0021] The operation stop time and the operation recovery time of the batch task processing process are sent to the terminal as the failure prompt information of the batch task processing process, and the failure prompt information is used for the terminal to determine the failure time interval according to the operation stop time and the operation recovery time.

[0022] In a third aspect, the present application provides a batch task processing device. The device is used in a terminal, and the device includes:

[0023] An acquisition module is used to acquire task attribute information of each batch task and acquire the expiration time interval corresponding to the batch task processing process in the server, wherein the task attribute information includes the task identifier of the batch task;

[0024] A determination module, used to determine at least one target batch task corresponding to the expiration time interval according to the attribute information of each task and the expiration time interval;

[0025] A generation module is used to generate a task processing request based on the target task identifier of the target batch task and send the task processing request to the server; the task processing request is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid.

[0026] In a fourth aspect, the present application provides a batch task processing device. The device is used in a server, and the device includes:

[0027] A receiving module, used for receiving a task processing request sent by a terminal, the task processing request including a target task identifier of a target batch task, the target batch task being a batch task corresponding to an expiration time interval corresponding to a batch task processing process in a server;

[0028] The processing module is used to determine the target batch task corresponding to the target task identifier according to the target task identifier included in the task processing request, and process the target batch task through the batch task processing process if the batch task processing process is valid.

[0029] In a fifth aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the first aspect or the second aspect are implemented.

[0030] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0031] In a seventh aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0032] The above-mentioned batch task processing method, device, equipment, storage medium and program product obtain the task attribute information of each batch task and obtain the invalid time interval corresponding to the batch task processing process in the server, the task attribute information includes the task identifier of the batch task, then, according to each task attribute information and the invalid time interval, determine at least one target batch task corresponding to the invalid time interval, then generate a task processing request according to the target task identifier of the target batch task, and send the task processing request to the server, the task processing request is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid. In this way, the terminal determines the target batch task that has not been successfully processed within the invalid time interval corresponding to the batch task processing process, and then sends the task processing request corresponding to the target batch task to the server, so that the server uses the batch task processing process to reprocess the target batch task that has not been successfully processed when the batch task processing process is restored to validity, avoiding the problem of low reliability of batch task processing caused by the failure of the batch task processing process within the invalid time interval in the traditional technology, and the embodiment of the present application improves the reliability of batch task processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] FIG1 is an application environment diagram of a batch task processing method in one embodiment;

[0034] Figure 2 A schematic diagram of a flow chart of a batch task processing method applied to a terminal in one embodiment;

[0035] Figure 3 is a flow chart of step 202 in another embodiment;

[0036] Figure 4 is a schematic flow chart of step 201 in another embodiment;

[0037] Figure 5 is a schematic flow chart of step 203 in another embodiment;

[0038] Figure 6 A schematic diagram of a flow chart of a batch task processing method applied to a server in one embodiment;

[0039] Figure 7 A flow chart of the process of the server determining that the batch task processing process is invalid before step 601 in another embodiment;

[0040] Figure 8 A flowchart of an exemplary batch task processing method in one embodiment;

[0041] Fig. 9is a structural block diagram of a batch task processing device applied to a terminal in one embodiment;

[0042] Fig.10 is a structural block diagram of a batch task processing device applied to a server in one embodiment;

[0043] Fig.11 is an internal structure diagram of a computer device in one embodiment;

[0044] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] Batch processing programs are also called batch jobs or batch tasks. In some business scenarios, batch task processing systems usually need to process corresponding batch tasks within a set time window.

[0047] At present, in the actual business processing process, special events sometimes occur in the batch task processing process, such as batch task processing system failure, business party suspension within the time window corresponding to the batch task, etc. At this time, the batch task processing process fails, and the batch tasks whose task scheduling time is within the period of time (failure time interval) when the batch task processing process fails cannot be smoothly processed by the batch task processing process. When the batch task processing process is restored to validity, these batch tasks cannot be processed again by the batch task processing process. This traditional batch task processing method makes the batch task processing reliability low.

[0048] In view of this, the embodiment of the present application provides a batch task processing method, device, equipment, storage medium and program product, by obtaining the task attribute information of each batch task, and obtaining the invalid time interval corresponding to the batch task processing process in the server, the task attribute information includes the task identifier of the batch task, then, according to each task attribute information and the invalid time interval, determine at least one target batch task corresponding to the invalid time interval, and then generate a task processing request according to the target task identifier of the target batch task, and send the task processing request to the server; the task processing request is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid. In this way, the terminal determines the target batch task that has not been successfully processed within the invalid time interval corresponding to the batch task processing process, and then sends the task processing request corresponding to the target batch task to the server, so that the server uses the batch task processing process to reprocess the above-mentioned target batch task that has not been successfully processed when the batch task processing process is restored to validity, avoiding the problem of low reliability of batch task processing caused by the failure of the batch task processing process in the invalid time interval in the traditional technology, and the embodiment of the present application improves the reliability of batch task processing.

[0049] The batch task processing method provided in the embodiment of the present application can be applied in the implementation environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0050] In one embodiment, Figure 2 As shown, a batch task processing method is provided, which is described by taking the method applied to the terminal 102 in FIG. 1 as an example, and includes the following steps:

[0051] Step 201, obtaining task attribute information of each batch task, and obtaining the expiration time interval corresponding to the batch task processing process in the server.

[0052] In some business scenarios, it is necessary to process multiple tasks at one time within a set time window (or time interval). The multiple tasks processed at one time within this time window are collectively referred to as batch tasks.

[0053] However, for some special events, for example, a batch task processing process for processing batch tasks fails, or the business system of Bank A needs to be shut down within a predetermined time window, so that the batch task processing process stops running. In these special cases, since the batch task processing process is in an invalid state, it is unable to process batch tasks, and after the batch task processing process is restored to be valid, the batch task processing process will not process the batch tasks that have not been processed within the invalid time interval again. Therefore, it is necessary to determine the batch tasks that have been processed within the invalid time interval of the batch task processing process.

[0054] In view of the above situation, the terminal needs to obtain the expiration time interval of the batch task processing process. Optionally, the terminal receives the expiration time interval of the batch task processing process sent by the server; optionally, the terminal obtains the input expiration time interval of the batch task processing process through an input device; optionally, the terminal deploys an agent on the server to monitor the running status of the batch task processing process in real time to obtain the expiration time interval of the batch task processing process. The method for the terminal to obtain the expiration time interval of the batch task processing process is not specifically limited here.

[0055] The task attribute information is the basic information corresponding to each batch task. In a possible implementation, the task attribute information includes a task identifier of the batch task. There is a one-to-one correspondence between the task identifier and the corresponding batch task.

[0056] When the terminal receives the invalidation prompt information sent by the server, the terminal will obtain the task attribute information corresponding to each batch task. Optionally, the terminal obtains the task attribute information corresponding to each batch task input through an input device; optionally, the terminal obtains the task attribute information corresponding to each batch task stored in a database. The method for the terminal to obtain the task attribute information is not specifically limited here.

[0057] Step 202: Determine at least one target batch task corresponding to the expiration time interval according to the attribute information of each task and the expiration time interval.

[0058] The target batch task, that is, the batch task that is not successfully processed when the batch task processing process fails. In one possible implementation, the task attribute information includes the task scheduling time corresponding to the batch task, and the task scheduling time of each batch task is screened based on the failure time interval, and the batch tasks whose task scheduling time is within the failure time interval are selected as the target batch tasks.

[0059] Step 203: Generate a task processing request according to the target task identifier of the target batch task, and send the task processing request to the server.

[0060] The task processing request is request information generated by the terminal according to the target task identifier corresponding to each target batch task, and is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid.

[0061] In a possible implementation, the terminal uses the target task identifier corresponding to the target batch task as the task processing request, and then sends the task processing request to the server; in a possible implementation, a message format is preset, and the terminal encapsulates the target task identifier according to the preset message format, for example, an http request message, generates a task processing request that complies with the http protocol, and then sends the task processing request to the server. The manner in which the terminal generates the task processing request according to the target task identifier is not specifically limited herein.

[0062] The terminal sends the task processing request to the server, so that the server obtains multiple target task identifiers according to the task processing request, and reprocesses the target batch tasks according to the multiple target task identifiers by restoring the valid batch task processing process.

[0063] The above-mentioned batch task processing method obtains the task attribute information of each batch task and obtains the invalid time interval corresponding to the batch task processing process in the server, the task attribute information includes the task identifier of the batch task, then, according to each task attribute information and the invalid time interval, determines at least one target batch task corresponding to the invalid time interval, and then generates a task processing request according to the target task identifier of the target batch task, and sends the task processing request to the server; the task processing request is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid. In this way, the terminal determines the target batch task that has not been successfully processed within the invalid time interval corresponding to the batch task processing process, and then sends the task processing request corresponding to the target batch task to the server, so that the server uses the batch task processing process to reprocess the target batch task that has not been successfully processed when the batch task processing process is restored to validity, avoiding the problem of low reliability of batch task processing caused by the failure of the batch task processing process within the invalid time interval in the traditional technology, and the inability to process the target batch task. The embodiment of the present application improves the reliability of batch task processing.

[0064] In one embodiment, based on Figure 2 The embodiment shown, see Figure 3 In the embodiment of the present application, the task attribute information also includes the task scheduling time corresponding to the batch task, which specifically involves the process of determining at least one target batch task corresponding to the invalid time interval according to each task attribute information and the invalid time interval. Figure 3 As shown, step 202 may include Figure 3 Step 301 and step 302 are shown.

[0065] Step 301, matching the task scheduling time with the expiration time interval.

[0066] In an embodiment of the present application, the task attribute information includes the task scheduling time corresponding to the batch task. The task scheduling time can be a certain time window or a certain moment. The task scheduling time is a preset value. In some business scenarios, the batch task processing process is required to process the corresponding batch tasks at the preset task scheduling time to ensure the normal progress of the business process.

[0067] The terminal matches the task scheduling time with the expiration time interval, and selects batch tasks whose multiple task scheduling times are within the expiration time interval.

[0068] Step 302: If the task scheduling time is within the invalid time interval, the batch task corresponding to the task scheduling time is determined as the target batch task.

[0069] For batch tasks whose task scheduling time is within the invalid time interval, since the batch task processing process fails within the invalid time interval, these batch tasks, namely, the batch tasks are not processed smoothly, need to be processed again by the batch task processing process.

[0070] The terminal obtains multiple batch tasks whose task scheduling times are within the expiration time interval by matching the task scheduling time with the expiration time interval, and uses these batch tasks as target batch tasks, i.e., the batch tasks that are not successfully processed by the batch task processing process within the expiration time interval.

[0071] Thus, in the above embodiment, the terminal matches the acquired expiration time interval of the batch task processing process and the task scheduling time corresponding to each batch task to determine the target batch task whose task scheduling time is within the expiration time interval. The target batch tasks are all batch tasks that have not been successfully processed by the batch task processing process. After the terminal determines the target batch task, the server can re-process the target batch task after the batch task processing process is restored to validity. This avoids the situation in traditional technology where the batch task processing process cannot automatically process the target batch tasks that have not been processed within the expiration time interval after it fails and then becomes valid again, thereby improving the reliability of batch task processing.

[0072] In one embodiment, based on Figure 2 The embodiment shown, see Figure 4 , the embodiment of the present application specifically relates to the process of obtaining the invalidation time interval corresponding to the batch task processing process in the server. Figure 4 As shown, step 201 may include Figure 4 Step 401 is shown.

[0073] Step 401: receiving the failure prompt information of the batch task processing process sent by the server, and determining the failure time interval according to the failure prompt information.

[0074] In a possible implementation manner, the failure prompt information is prompt information sent by the server and received by the terminal, and is generated by the server after the batch task processing process fails.

[0075] Optionally, the failure prompt information includes the failure time interval corresponding to the failure of the batch task processing process. When the terminal receives the failure prompt information sent by the server, the failure time interval of the failure of the batch task processing process can be determined according to the failure prompt information; Optionally, the failure prompt information includes the time when the batch task processing process fails and the time when the batch task processing process returns to normal. After the terminal receives the failure prompt information sent by the server, the failure time interval of the batch task processing process can be determined according to the time when the batch task processing process fails and the time when the batch task processing process returns to normal. How the terminal determines the failure time interval according to the content contained in the failure prompt information is not specifically limited here.

[0076] The method of how the server generates the invalidation prompt information will be described in detail below.

[0077] In this way, in the above embodiment, the terminal determines the expiration time interval based on the expiration prompt information sent by the server, and can subsequently filter out the target batch tasks that have not been successfully processed within the expiration time interval based on the expiration time interval, so that the batch task processing process can process the target batch tasks again, thereby improving the reliability of batch task processing.

[0078] In one embodiment, based on Figure 2 The embodiment shown, see Figure 5 , the embodiment of the present application specifically relates to the process of generating a task processing request according to the target task identifier of the target batch task. Figure 5 As shown, step 203 may include Figure 5 Step 501 is shown.

[0079] Step 501: encapsulate the target task identifier according to a preset request message format to obtain a task processing request.

[0080] After the terminal determines the target task identifier corresponding to the target batch task, it needs to generate a task processing request based on the target task representation. In a possible implementation, a request message format is preset, and the request message format is the message protocol format that the task processing request needs to satisfy. Exemplarily, the request message format can be an http message format. The terminal generates a task processing request that complies with the http protocol based on the http message format for the target task representation, and then sends the task processing request to the server, so that the server can determine the target task identifier based on the task processing request.

[0081] In this way, in the above embodiment, the terminal generates a task processing request according to a preset request message format, so that the server determines the target task identifier according to the task processing request, so that the server can, according to the target task identifier, re-process the batch task corresponding to the target task representation by restoring the batch task processing process in a valid state, thereby improving the reliability of batch task processing.

[0082] In one embodiment, Figure 6 As shown, a batch task processing method is provided, which is described by taking the method applied to the server 104 in FIG. 1 as an example, and includes the following steps:

[0083] Step 601: receiving a task processing request sent by a terminal.

[0084] The task processing request includes a target task identifier of a target batch task, and the target batch task is a batch task corresponding to an invalidation time interval corresponding to a batch task processing process in the server.

[0085] After receiving the task processing request sent by the terminal, the server can parse the task request according to a preset message format to obtain the target task identifier.

[0086] For the process of the terminal generating a task processing request, reference may be made to the relevant description of the above embodiment, which will not be repeated here.

[0087] Step 602: determine the target batch task corresponding to the target task identifier according to the target task identifier included in the task processing request, and process the target batch task through the batch task processing process if the batch task processing process is valid.

[0088] The server determines the target batch task corresponding to the target task identifier according to the target task identifier. When the batch task processing process is restored to be effective, the server may, at the moment of determining the target batch task, immediately process the target batch task through the batch task processing process; optionally, the server may determine the idle time interval during which the batch task processing process does not process any batch task according to the task scheduling time corresponding to each batch task, and then process the target batch task during the idle time interval. There is no specific limitation on the time when the server processes the target batch task.

[0089] Thus, in the above embodiment, the server determines the target batch tasks that have not been successfully processed within the invalid time interval of the batch task processing process according to the task processing request sent by the terminal, and then, when the batch task processing process is valid, the server reprocesses the target batch tasks through the batch task processing process, thereby avoiding the situation in the traditional technology where the batch task processing process does not process the target batch tasks that have not been processed within the invalid time interval after the batch task processing process is restored to validity, thereby improving the reliability of batch task processing.

[0090] In one embodiment, based on the above Figure 6 In the embodiment shown, see Figure 7 This embodiment involves the process in which the server determines that the batch task processing process is invalid before step 601. Figure 7 As shown, the process includes step 701 and step 702.

[0091] Step 701: monitor the running status of the batch task processing process, and obtain the running stop time and running resumption time of the batch task processing process.

[0092] When the batch task processing process runs normally, it means that the batch task processing process is valid; when the batch task processing process stops running, it means that the batch task processing process is invalid.

[0093] In one possible implementation, the server monitors the running status of the batch task processing process in real time. When the batch task processing process stops running, the server determines the time when the batch task processing process stops running. Then, when the batch task processing process starts running again, the server determines the time when the batch task processing process starts running again. The time period between the time when the batch task processing process stops running and the time when it starts running again is the ineffective time interval of the batch task processing process.

[0094] Step 702: Send the operation stop time and operation recovery time of the batch task processing process as failure prompt information of the batch task processing process to the terminal.

[0095] The failure prompt information is used for the terminal to determine the failure time interval according to the operation stop time and the operation recovery time.

[0096] In a possible implementation, the server encapsulates the operation stop time and the operation resumption time of the batch task processing process according to a preset message format to generate failure prompt information, and then sends the failure prompt information to the terminal.

[0097] In this way, in the above embodiment, the server monitors the running status of the batch task processing process that processes batch tasks in real time, promptly learns the running stop time and running resumption time of the batch task processing process, and generates failure prompt information accordingly and sends it to the terminal, so that the terminal can determine the target batch tasks that have not been successfully processed within the failure time interval of the batch task processing process, so that the target batch tasks can be reprocessed, thereby improving the reliability of batch task processing.

[0098] In one embodiment, please refer to Figure 8 , which shows a flowchart of an exemplary batch task processing method provided in an embodiment of the present application, which method can be applied in the implementation environment shown in FIG. 1 .

[0099] Step 801: The terminal obtains task attribute information of each batch task.

[0100] The task attribute information includes the task identifier of the batch task; the task attribute information also includes the task scheduling time corresponding to the batch task.

[0101] Step 802: The server monitors the running status of the batch task processing process, and obtains the running stop time and running resumption time of the batch task processing process.

[0102] Step 803: The server sends the operation stop time and operation recovery time of the batch task processing process as failure prompt information of the batch task processing process to the terminal.

[0103] The failure prompt information is used for the terminal to determine the failure time interval according to the operation stop time and the operation recovery time.

[0104] Step 804: the terminal receives the expiration prompt information of the batch task processing process sent by the server, and determines the expiration time interval according to the expiration prompt information.

[0105] Step 805: The terminal matches the task scheduling time with the expiration time interval.

[0106] Step 806: If the task scheduling time is within the invalid time interval, the terminal determines that the batch task corresponding to the task scheduling time is the target batch task.

[0107] Step 807: The terminal encapsulates the target task identifier according to a preset request message format to obtain a task processing request.

[0108] Step 808: The terminal sends the task processing request to the server.

[0109] The task processing request is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid.

[0110] Step 809: The server receives the task processing request sent by the terminal.

[0111] The task processing request includes a target task identifier of a target batch task, and the target batch task is a batch task corresponding to an invalidation time interval corresponding to a batch task processing process in the server.

[0112] Step 810 , the server determines the target batch task corresponding to the target task identifier according to the target task identifier included in the task processing request, and processes the target batch task through the batch task processing process if the batch task processing process is valid.

[0113] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0114] The embodiment of the present application also provides a batch task processing device for implementing the batch task processing method applied to the terminal 102. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more batch task processing device embodiments provided below can refer to the limitations of the batch task processing method above, and will not be repeated here.

[0115] In one embodiment, Fig. 9 As shown, a batch task processing device 900 is provided, including: an acquisition module 901, a determination module 902 and a generation module 903, wherein:

[0116] The acquisition module 901 is used to acquire the task attribute information of each batch task and acquire the expiration time interval corresponding to the batch task processing process in the server.

[0117] The task attribute information includes the task identifier of the batch task;

[0118] A determination module 902, configured to determine at least one target batch task corresponding to the expiration time interval according to the attribute information of each task and the expiration time interval;

[0119] The generating module 903 is used to generate a task processing request according to the target task identifier of the target batch task, and send the task processing request to the server.

[0120] The task processing request is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid.

[0121] In one embodiment, the task attribute information also includes the task scheduling time corresponding to the batch task; according to each task attribute information and the expiration time interval, in this embodiment, the determination module 902 includes:

[0122] A matching unit, used to match the task scheduling time with the expiration time interval;

[0123] The target batch task determination unit is used to determine the batch task corresponding to the task scheduling time as the target batch task if the task scheduling time is within the invalid time interval.

[0124] In one embodiment, the acquisition module 901 includes:

[0125] The failure time interval determination unit is used to receive the failure prompt information of the batch task processing process sent by the server, and determine the failure time interval according to the failure prompt information.

[0126] In one embodiment, the generating module 903 includes:

[0127] The encapsulation unit is used to encapsulate the target task identifier according to a preset request message format to obtain a task processing request.

[0128] Each module in the batch task processing device 900 can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0129] The embodiment of the present application also provides a batch task processing device for implementing the batch task processing method applied to the server 104. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more batch task processing device embodiments provided below can refer to the limitations of the batch task processing method above, and will not be repeated here.

[0130] In one embodiment, Fig.10 As shown, a batch task processing device 1000 is provided, comprising: a receiving module 1001 and a processing module 1002, wherein:

[0131] The receiving module 1001 is used to receive a task processing request sent by a terminal.

[0132] The task processing request includes a target task identifier of a target batch task, and the target batch task is a batch task corresponding to an invalidation time interval corresponding to a batch task processing process in the server;

[0133] The processing module 1002 is used to determine the target batch task corresponding to the target task identifier according to the target task identifier included in the task processing request, and process the target batch task through the batch task processing process if the batch task processing process is valid.

[0134] In one embodiment, the apparatus further comprises:

[0135] The detection module is used to monitor the running status of the batch task processing process and obtain the running stop time and running resumption time of the batch task processing process.

[0136] The sending module is used to send the operation stop time and the operation recovery time of the batch task processing process as the failure prompt information of the batch task processing process to the terminal.

[0137] The failure prompt information is used for the terminal to determine the failure time interval according to the operation stop time and the operation recovery time.

[0138] Each module in the batch task processing device 1000 can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0139] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.11As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store batch task processing data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a batch task processing method is implemented.

[0140] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.12 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a batch task processing method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0141] Those skilled in the art will understand that Fig.11 and Fig.12The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0142] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory. In a possible implementation manner, the computer device is a terminal, and when the processor executes the computer program, the following steps are implemented:

[0143] Obtaining task attribute information of each batch task, and obtaining the expiration time interval corresponding to the batch task processing process in the server, the task attribute information including the task identifier of the batch task;

[0144] Determine at least one target batch task corresponding to the expiration time interval according to the attribute information of each task and the expiration time interval;

[0145] A task processing request is generated according to the target task identifier of the target batch task, and the task processing request is sent to the server; the task processing request is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid.

[0146] In one embodiment, the task attribute information also includes the task scheduling time corresponding to the batch task, and the processor further implements the following steps when executing the computer program:

[0147] Match the task scheduling time with the expiration time interval;

[0148] If the task scheduling time is within the invalid time interval, the batch task corresponding to the task scheduling time is determined as the target batch task.

[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0150] Receive the expiration prompt information of the batch task processing process sent by the server, and determine the expiration time interval according to the expiration prompt information.

[0151] In one embodiment, when the processor executes the computer program, the processor further implements the following steps: encapsulating the target task identifier according to a preset request message format to obtain a task processing request.

[0152] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory. In a possible implementation manner, the computer device is a server, and when the processor executes the computer program, the following steps are implemented:

[0153] A task processing request sent by a receiving terminal includes a target task identifier of a target batch task, where the target batch task is a batch task corresponding to an expiration time interval corresponding to a batch task processing process in a server;

[0154] According to the target task identifier included in the task processing request, a target batch task corresponding to the target task identifier is determined, and if the batch task processing process is valid, the target batch task is processed through the batch task processing process.

[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0156] Monitor the running status of the batch task processing process and obtain the running stop time and running resumption time of the batch task processing process;

[0157] The operation stop time and the operation recovery time of the batch task processing process are sent to the terminal as the failure prompt information of the batch task processing process, and the failure prompt information is used for the terminal to determine the failure time interval according to the operation stop time and the operation recovery time.

[0158] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. In a possible implementation manner, the computer-readable storage medium is applied to a terminal, and when the computer program is executed by a processor, the following steps are implemented:

[0159] Obtaining task attribute information of each batch task, and obtaining the expiration time interval corresponding to the batch task processing process in the server, the task attribute information including the task identifier of the batch task;

[0160] Determine at least one target batch task corresponding to the expiration time interval according to the attribute information of each task and the expiration time interval;

[0161] A task processing request is generated according to the target task identifier of the target batch task, and the task processing request is sent to the server; the task processing request is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid.

[0162] In one embodiment, the task attribute information also includes the task scheduling time corresponding to the batch task, and when the computer program is executed by the processor, the following steps are also implemented:

[0163] Match the task scheduling time with the expiration time interval;

[0164] If the task scheduling time is within the invalid time interval, the batch task corresponding to the task scheduling time is determined as the target batch task.

[0165] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0166] Receive the expiration prompt information of the batch task processing process sent by the server, and determine the expiration time interval according to the expiration prompt information.

[0167] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0168] The target task identifier is encapsulated according to the preset request message format to obtain a task processing request.

[0169] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. In a possible implementation, the computer-readable storage medium is applied to a server, and when the computer program is executed by a processor, the following steps are implemented:

[0170] A task processing request sent by a receiving terminal includes a target task identifier of a target batch task, where the target batch task is a batch task corresponding to an expiration time interval corresponding to a batch task processing process in a server;

[0171] According to the target task identifier included in the task processing request, a target batch task corresponding to the target task identifier is determined, and if the batch task processing process is valid, the target batch task is processed through the batch task processing process.

[0172] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0173] Monitor the running status of the batch task processing process and obtain the running stop time and running resumption time of the batch task processing process;

[0174] The operation stop time and the operation recovery time of the batch task processing process are sent to the terminal as the failure prompt information of the batch task processing process, and the failure prompt information is used for the terminal to determine the failure time interval according to the operation stop time and the operation recovery time.

[0175] In one embodiment, a computer program product is provided, including a computer program. In a possible implementation manner, the computer program product is applied to a terminal, and when the computer program is executed by a processor, the following steps are implemented:

[0176] Obtaining task attribute information of each batch task, and obtaining the expiration time interval corresponding to the batch task processing process in the server, the task attribute information including the task identifier of the batch task;

[0177] Determine at least one target batch task corresponding to the expiration time interval according to the attribute information of each task and the expiration time interval;

[0178] A task processing request is generated according to the target task identifier of the target batch task, and the task processing request is sent to the server; the task processing request is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid.

[0179] In one embodiment, the task attribute information also includes the task scheduling time corresponding to the batch task, and when the computer program is executed by the processor, the following steps are also implemented:

[0180] Match the task scheduling time with the expiration time interval;

[0181] If the task scheduling time is within the invalid time interval, the batch task corresponding to the task scheduling time is determined as the target batch task.

[0182] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0183] Receive the expiration prompt information of the batch task processing process sent by the server, and determine the expiration time interval according to the expiration prompt information.

[0184] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0185] The target task identifier is encapsulated according to the preset request message format to obtain a task processing request.

[0186] In one embodiment, a computer program product is provided, including a computer program. In a possible implementation, the computer program product is applied to a server, and when the computer program is executed by a processor, the following steps are implemented:

[0187] A task processing request sent by a receiving terminal includes a target task identifier of a target batch task, where the target batch task is a batch task corresponding to an expiration time interval corresponding to a batch task processing process in a server;

[0188] According to the target task identifier included in the task processing request, a target batch task corresponding to the target task identifier is determined, and if the batch task processing process is valid, the target batch task is processed through the batch task processing process.

[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0190] Monitor the running status of the batch task processing process and obtain the running stop time and running resumption time of the batch task processing process;

[0191] The operation stop time and the operation recovery time of the batch task processing process are sent to the terminal as the failure prompt information of the batch task processing process, and the failure prompt information is used for the terminal to determine the failure time interval according to the operation stop time and the operation recovery time.

[0192] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0193] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0194] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0195] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A batch task processing method, It is characterized in that For a terminal, the method comprises: Obtaining task attribute information of each batch task, and obtaining an expiration time interval corresponding to a batch task processing process in a server, wherein the task attribute information includes a task identifier of the batch task; Determine at least one target batch task corresponding to the expiration time interval according to each of the task attribute information and the expiration time interval; A task processing request is generated according to the target task identifier of the target batch task, and the task processing request is sent to the server; the task processing request is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid.

2. The method according to claim 1, It is characterized in that The task attribute information also includes the task scheduling time corresponding to the batch task; and determining at least one target batch task corresponding to the expiration time interval according to each of the task attribute information and the expiration time interval includes: Matching the task scheduling time with the expiration time interval; If the task scheduling time is within the invalid time interval, the batch task corresponding to the task scheduling time is determined as the target batch task.

3. The method according to claim 1, It is characterized in that The obtaining of the expiration time interval corresponding to the batch task processing process in the server includes: Receive the failure prompt information of the batch task processing process sent by the server, and determine the failure time interval according to the failure prompt information.

4. The method according to claim 1, It is characterized in that The generating a task processing request according to the target task identifier of the target batch task includes: The target task identifier is encapsulated according to a preset request message format to obtain the task processing request.

5. A batch task processing method, It is characterized in that For a server, the method comprises: A task processing request sent by a receiving terminal is included in the task processing request, wherein the target batch task is a batch task corresponding to an invalidation time interval corresponding to a batch task processing process in the server; The target batch task corresponding to the target task identifier is determined according to the target task identifier included in the task processing request, and the target batch task is processed by the batch task processing process if the batch task processing process is valid.

6. The method according to claim 5, It is characterized in that The method further comprises: Monitor the running status of the batch task processing process, and obtain the running stop time and running resumption time of the batch task processing process; The operation stop time and the operation resumption time of the batch task processing process are sent to the terminal as failure prompt information of the batch task processing process, and the failure prompt information is used for the terminal to determine the failure time interval according to the operation stop time and the operation resumption time.

7. A batch task processing device, It is characterized in that The device is used for a terminal, and the device includes: An acquisition module, used to acquire task attribute information of each batch task and acquire an expiration time interval corresponding to a batch task processing process in a server, wherein the task attribute information includes a task identifier of the batch task; A determination module, configured to determine at least one target batch task corresponding to the expiration time interval according to each of the task attribute information and the expiration time interval; A generation module is used to generate a task processing request according to the target task identifier of the target batch task, and send the task processing request to the server; the task processing request is used for the server to process the target batch task corresponding to the target task identifier included in the task processing request through the batch task processing process when the batch task processing process is valid.

8. A batch task processing device, It is characterized in that The device is used for a server, and the device comprises: A receiving module, configured to receive a task processing request sent by a terminal, wherein the task processing request includes a target task identifier of a target batch task, and the target batch task is a batch task corresponding to an expiration time interval corresponding to a batch task processing process in the server; The processing module is used to determine the target batch task corresponding to the target task identifier according to the target task identifier included in the task processing request, and process the target batch task through the batch task processing process if the batch task processing process is valid.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

11. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.