Task processing method and apparatus

By grouping batch processing accounts and generating independent subtasks on processing nodes, the problem of long silent periods caused by batch processing tasks is solved, achieving efficient account decoupling and resource utilization, which is suitable for distributed microservice architectures.

CN115658317BActive Publication Date: 2026-12-04CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211392359.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-08
Publication Date
2026-12-04
Estimated Expiration
2042-11-08

AI Technical Summary

Technical Problem

In existing technologies, batch processing tasks cause all accounts to be unable to provide services for extended periods, resulting in high system coupling and high costs associated with relying on large mainframes with high computing power.

Method used

The batch processing account is divided into multiple account groups and assigned to their respective processing nodes to generate and execute independent subtasks, thereby decoupling between accounts and using a distributed microservice architecture for processing.

Benefits of technology

It shortens the time each account is unable to provide services externally, improves processing efficiency, reduces dependence on high-computing-capacity hosts, and is suitable for microservice architectures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115658317B_ABST
    Figure CN115658317B_ABST
Patent Text Reader

Abstract

This invention discloses a task processing method and apparatus, relating to the field of big data intelligent analysis technology. One specific embodiment of the method includes: receiving a batch processing task; determining multiple batch processing accounts corresponding to the batch processing task; dividing the multiple batch processing accounts into multiple account groups according to the number of nodes, with each account group including multiple batch processing accounts; determining a processing node corresponding to each account group; for each processing node: determining at least one target account from the account group corresponding to the processing node; and using the processing node to generate and execute sub-tasks corresponding to each target account. This embodiment can shorten the time that accounts cannot provide services externally due to the execution of batch processing tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of big data intelligent analysis technology, and in particular to a task processing method and apparatus. Background Technology

[0002] Batch processing utilizes the computing power of servers to perform large-scale batch processing. For example, in a banking system, daily processes such as calculating interest, settling interest, charging fees, processing the maturity of time deposits or loans, and disbursing loans for all accounts in the bank are all examples of batch processing.

[0003] Currently, batch processing tasks are typically executed using a batch processing mode that utilizes large mainframes with high computing power and is horizontally partitioned according to functional dimensions. In this batch processing mode, all accounts in the system are in a "batch processing" state during the execution of batch processing tasks, and none of the accounts can provide services to the outside world for a considerable period of time. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a task processing method and apparatus that can shorten the time when each account is unable to provide services to the outside world due to the execution of batch processing tasks.

[0005] In a first aspect, embodiments of the present invention provide a task processing method, including:

[0006] Receive batch processing tasks and determine the multiple batch processing accounts corresponding to the batch processing tasks;

[0007] Based on the number of nodes, the multiple batch processing accounts are divided into multiple account groups, and each account group includes multiple batch processing accounts;

[0008] Determine the processing node corresponding to each of the aforementioned account groups;

[0009] For each processing node: at least one target account is determined from the account group corresponding to the processing node; using the processing node, a subtask corresponding to each target account is generated and executed; wherein, the subtask is used to sequentially execute the functional modules of the batch processing task corresponding to the target account.

[0010] Optionally, the sub-tasks corresponding to each of the target accounts are executed, including:

[0011] The current subtask is determined from at least one of the subtasks;

[0012] Determine the current account corresponding to the current subtask, and lock the business data of the current account;

[0013] The current subtask is executed using the processing node.

[0014] Release the lock on the business data of the current account.

[0015] Optionally, the sub-tasks corresponding to each of the target accounts are executed, including:

[0016] Multiple threads are generated within the processing node;

[0017] Each subtask is assigned to a corresponding thread for processing.

[0018] Optionally, after generating and executing subtasks corresponding to each of the target accounts using the processing node, the method further includes:

[0019] At least one subsequent account is determined from the account group corresponding to the processing node;

[0020] Using the processing node, subtasks corresponding to each of the subsequent accounts are generated and executed until all batch processing accounts in the account group have been completed.

[0021] Optionally, the step of using the processing node to generate and execute sub-tasks corresponding to each of the target accounts includes:

[0022] Obtain system information and determine whether the system information meets the pre-approval conditions;

[0023] In response to the system information meeting the pre-approval conditions, the processing node is used to generate and execute sub-tasks corresponding to each target account, thereby obtaining the pre-processing results and pre-processing time points corresponding to each target account.

[0024] Using the preprocessing results and preprocessing time points corresponding to each target account, the final processing results corresponding to each target account are generated.

[0025] Optionally, generating the final processing result for each target account using the preprocessing results and preprocessing time points corresponding to each target account includes:

[0026] Obtain the current time and determine whether the current time has reached the statistical time point;

[0027] In response to the current time reaching the statistical time point, it is determined whether the business data of the target account has been modified during the monitoring period, where the monitoring period is the time period between the preprocessing time point and the statistical time point;

[0028] If the business data of the target account is not modified during the monitoring period, the preprocessing result corresponding to the target account is determined as the final processing result corresponding to the target account.

[0029] In response to the fact that the business data of the target account has been modified during the monitoring period, the sub-task corresponding to the target account is re-executed to obtain the final processing result corresponding to the target account.

[0030] Optionally, the system information includes at least one of the following: CPU utilization, memory usage, disk usage, and number of processes.

[0031] Optionally, the sub-tasks corresponding to each of the target accounts are executed, including:

[0032] Obtain the orchestration information corresponding to the batch processing task;

[0033] Based on the orchestration information, determine the multiple service interfaces and their calling order corresponding to the batch processing task;

[0034] Using the business data of the target account as input, the multiple service interfaces are called sequentially according to the calling order to execute the sub-tasks corresponding to the target account.

[0035] Secondly, embodiments of the present invention provide a task processing apparatus, comprising:

[0036] The account determination module is used to receive batch processing tasks and determine multiple batch processing accounts corresponding to the batch processing tasks.

[0037] The grouping module is used to divide the multiple batch processing accounts into multiple account groups according to the number of nodes, and each account group includes multiple batch processing accounts;

[0038] The node determination module is used to determine the processing node corresponding to each of the account groups;

[0039] A processing module is configured to, for each processing node: determine at least one target account from the account group corresponding to the processing node; and, using the processing node, generate and execute sub-tasks corresponding to each target account; wherein the sub-tasks are configured to sequentially execute the functional modules corresponding to the batch processing task for each target account.

[0040] Optionally, the processing module is specifically used for:

[0041] The current subtask is determined from at least one of the subtasks;

[0042] Determine the current account corresponding to the current subtask, and lock the business data of the current account;

[0043] The current subtask is executed using the processing node.

[0044] Release the lock on the business data of the current account.

[0045] Optionally, the processing module is specifically used for:

[0046] Multiple threads are generated within the processing node;

[0047] Each subtask is assigned to a corresponding thread for processing.

[0048] Optionally, the processing module is further configured to:

[0049] At least one subsequent account is determined from the account group corresponding to the processing node;

[0050] Using the processing node, subtasks corresponding to each of the subsequent accounts are generated and executed until all batch processing accounts in the account group have been completed.

[0051] Thirdly, embodiments of the present invention provide an electronic device, including:

[0052] One or more processors;

[0053] Storage device for storing one or more programs.

[0054] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.

[0055] Fourthly, embodiments of the present invention provide a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the methods described in any of the above embodiments.

[0056] Fifthly, embodiments of the present invention provide a computer program product, including a computer program that, when executed by a processor, implements the methods described in any of the above embodiments.

[0057] One embodiment of the above invention has the following advantages or beneficial effects: Batch processing accounts are divided into multiple account groups, and each account group is assigned to its respective processing node. On each processing node, subtasks corresponding to each batch processing account are generated and executed. This allows the entire batch processing task to be broken down into independent subtasks, with each subtask corresponding to one batch processing account. Each batch processing account executes independently through its subtasks, achieving decoupling between batch processing accounts. Once the subtask corresponding to each batch processing account is completed, that account can provide services normally, regardless of the processing progress of other accounts, thus shortening the time when batch processing accounts cannot provide services.

[0058] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description

[0059] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:

[0060] Figure 1 This is a schematic diagram of a batch processing mode that is horizontally segmented according to functional dimensions, provided by an embodiment of the present invention;

[0061] Figure 2 This is a flowchart illustrating a task processing method provided in the first embodiment of the present invention;

[0062] Figure 3 This is a flowchart illustrating a task processing method provided in the second embodiment of the present invention;

[0063] Figure 4 This is a flowchart illustrating a task processing method provided in the third embodiment of the present invention;

[0064] Figure 5 This is a schematic diagram of the structure of a task processing device provided in an embodiment of the present invention;

[0065] Figure 6 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation

[0066] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0067] The acquisition, storage, use, and processing of data in this application all comply with the relevant provisions of national laws and regulations.

[0068] Batch processing tasks are typically executed using a large mainframe with high computing power, and a batch processing mode that is horizontally divided according to functional dimensions. Figure 1 This is a schematic diagram of a batch processing mode that is horizontally segmented according to functional dimensions, provided by an embodiment of the present invention. For example... Figure 1As shown, 0001, 0002, 0003…000N are batch processing accounts, and interest accrual, overdue processing, fee processing…Job X is a functional module. The batch processing process is as follows: calculate interest for account 0001, calculate interest for account 0002… calculate interest for account 000N; process overdue payments for account 0001, account 0002… process overdue payments for account 000N. This continues until the last account completes the last functional module, at which point the batch processing ends.

[0069] The batch processing model described above, which is horizontally segmented by function, means that every account is in a "batch processing" state from the moment the first account executes the first functional module to the moment the last account executes the last functional module. Therefore, all batch functions across all accounts are highly coupled. If a problem occurs in any step, it can directly affect all accounts in the entire system. Furthermore, batch processing tasks have time requirements; all batch processing tasks must be completed within a specified time to ensure normal business operations. Due to limited I / O resources, the execution of batch processing tasks also needs to reduce I / O, increase concurrency, and make reasonable use of distributed horizontal scaling capabilities.

[0070] Based on this, embodiments of the present invention provide a task processing method that can solve the above problems. Figure 2 This is a flowchart illustrating a task processing method provided in the first embodiment of the present invention, as shown below. Figure 2 As shown, the method includes:

[0071] Step 201: Receive batch processing tasks and identify the multiple batch processing accounts corresponding to the batch processing tasks.

[0072] Batch processing accounts are the objects that batch processing tasks need to process. Batch processing tasks execute their corresponding functional modules on a per-account basis. A batch processing account can be all accounts of a financial company, customer accounts of a company in a specific region, or accounts selected from all accounts based on preset criteria. A batch processing task is used to execute multiple functional modules corresponding to multiple batch processing accounts to complete the preset workflow or business processing of the batch processing task.

[0073] Step 202: Based on the number of nodes, divide the multiple batch accounts into multiple account groups, with each account group containing multiple batch accounts.

[0074] Processing nodes are used to execute batch processing tasks. Processing nodes can consist of servers, clusters, and virtual machines. The number of processing nodes is determined, and account groups are generated to match the number of nodes. Specifically, if there are N processing nodes, the multiple batch processing accounts are divided into N account groups, where N is a positive integer.

[0075] Step 203: Determine the processing node corresponding to each account group.

[0076] The number of account groups is the same as the number of nodes. A one-to-one mapping relationship between account groups and processing nodes can be set, that is, each account group is assigned to only one processing node, and each processing node is assigned to only one account group.

[0077] The mapping relationship between account groups and processing nodes can be configured based on the number of accounts in the account groups and the processing capacity of the processing nodes. Account groups with more accounts are assigned to processing nodes with stronger processing capacity, while account groups with fewer accounts are assigned to processing nodes with weaker processing capacity. This better utilizes the node resources of each processing node, balances the load on each processing node, and speeds up the processing of batch tasks.

[0078] Step 204: For each processing node: Identify at least one target account from the account group corresponding to the processing node; use the processing node to generate and execute sub-tasks corresponding to each target account.

[0079] The number of target accounts is determined from the account groups. The number of accounts can be determined based on the resource availability or configuration information of the processing node, or it can be set based on experience or randomly. For example, if the processing node has more idle resources, the number of accounts can be larger, allowing the processing node to execute batch processing subtasks for more accounts at once.

[0080] Subtasks are used to sequentially execute the functional modules corresponding to the batch processing task for the target account, thereby completing the business processing for the target account corresponding to the batch processing task. Specifically, multiple threads are generated in the processing node; the thread corresponding to each subtask is determined and assigned to its corresponding thread for processing. Each subtask runs independently by its own thread, decoupling the processing between batch processing accounts.

[0081] The entire batch processing task is divided into multiple subtasks. Each batch processing account corresponds to an independent subtask, executing the required functions one by one. Once each batch processing account completes its own processing, its corresponding batch processing task is considered complete. This means the entire batch processing cycle for that account only occurs from the start to the end of processing; the account's silent period is almost negligible and difficult for the client to perceive. Furthermore, the processing of each of the divided batch processing accounts is independent of each other; theoretically, with sufficient resources, all accounts can execute concurrently.

[0082] Before batch processing begins, accounts are divided into several groups according to actual needs. Each subtask is executed on its own processing node. Before executing each subtask, each processing node loads common data, such as common parameters and account data. After loading, each account is processed independently via an online interface. Once all accounts have been processed, a unified update and commit are performed. This reduces I / O operations, improves I / O efficiency, and retains the "mass processing" characteristic of batch processing.

[0083] Step 205: Determine if all batch accounts have been processed.

[0084] If all batch accounts have been processed, the process ends. If not all batch accounts have been processed, proceed to step 206.

[0085] Step 206: Identify at least one processing node corresponding to the batch account that has not been processed.

[0086] Step 207: For each identified processing node: Identify at least one unprocessed account from the account group corresponding to the processing node, and generate and execute the sub-task corresponding to each unprocessed account.

[0087] Execute the subtasks corresponding to each unprocessed account, and re-execute step 205 until all batch processing accounts in the account group corresponding to each processing node have been processed.

[0088] In this embodiment of the invention, batch processing accounts are divided into multiple account groups, and these groups are assigned to their respective processing nodes. On each processing node, subtasks corresponding to each batch processing account are generated and executed. This allows the entire batch processing task to be broken down into independent subtasks, each corresponding to a batch processing account. Each batch processing account executes its subtask independently, achieving decoupling between batch processing accounts. Once the subtask corresponding to each batch processing account is completed, that account can provide services normally, regardless of the processing progress of other accounts, thus shortening the time when batch processing accounts are unable to provide services.

[0089] Furthermore, due to the high cost of mainframes with high I / O and computing capabilities, many companies are abandoning mainframes in favor of distributed microservices. This invention provides a lightweight and flexible batch task processing solution suitable for deploying microservice architectures. In this solution, data is distributed, functions are finely divided, and high concurrency compensates for insufficient processing power.

[0090] The subtasks corresponding to each target account can be executed in the following ways: determine the current subtask from at least one subtask; determine the current account corresponding to the current subtask and lock the business data of the current account; execute the current subtask using the processing node; and release the lock on the business data of the current account.

[0091] Before executing the current subtask, lock the business data of the current account. After executing the current subtask, release the lock on the business data of the current account. During the execution of the current subtask, ensure that the business data is not accessed by other applications, guarantee the security of the business data, and reduce the risk of dirty data.

[0092] In one embodiment of the present invention, executing sub-tasks corresponding to each target account includes: obtaining orchestration information corresponding to a batch processing task; determining multiple service interfaces and their calling order corresponding to the batch processing task based on the orchestration information; and using the business data of the target account as input, sequentially calling multiple service interfaces according to the calling order to execute the sub-tasks corresponding to the target account.

[0093] Since batch processing tasks are broken down into multiple single-account processes, there is no difference between batch and online transactions. Therefore, for each functional module, there is no need to distinguish between online and batch processing functions. Each function of the system can provide services as an independent interface or microservice interface. Batch processing tasks and online transactions only require functional orchestration of the functional interfaces.

[0094] Specifically, multiple service interfaces are generated based on each individual function. According to the business requirements of the batch processing task, the service interfaces and their calling order are arranged to complete the business processing corresponding to the batch processing task. This embodiment of the invention provides a microservice architecture pattern, simplifying the development of various processing tasks with simple orchestration.

[0095] Figure 3 This is a flowchart illustrating a task processing method provided in the second embodiment of the present invention, as shown below. Figure 3 As shown, the method includes:

[0096] Step 301: Receive batch processing tasks and identify the multiple batch processing accounts corresponding to the batch processing tasks.

[0097] Step 302: Based on the number of nodes, divide the multiple batch processing accounts into multiple account groups, with each account group containing multiple batch processing accounts.

[0098] Step 303: Determine the processing node corresponding to each account group.

[0099] Step 304: For each processing node: Identify at least one target account from the account group corresponding to the processing node; use the processing node to generate and execute sub-tasks corresponding to each target account.

[0100] Step 305: Determine whether there are any subsequent accounts in the account group corresponding to the processing node.

[0101] If there are subsequent accounts in the account group corresponding to the processing node, proceed to step 306. If there are no subsequent accounts in the account group corresponding to the processing node, all batch processing accounts in the account group have been processed, and the process ends.

[0102] Step 306: Identify at least one subsequent account from the account group corresponding to the processing node.

[0103] Subsequent accounts are those that did not execute batch processing tasks. A number of subsequent accounts are determined from the account group. The number of accounts can be determined based on the resource availability or configuration of the processing node, or it can be set based on experience or randomly.

[0104] Step 307: Using the processing node, generate and execute the sub-tasks corresponding to each subsequent account.

[0105] After executing the subtasks corresponding to each subsequent account, continue to execute step 305. If there are still subsequent accounts in the account group corresponding to the processing node, continue to execute steps 306 and 307 until all batch processing accounts in the account group have been executed.

[0106] In the embodiment of the present invention, after executing the sub-tasks corresponding to each target account, at least one subsequent account is determined from the account group, and sub-tasks corresponding to each subsequent account are generated and executed until all batch-processed accounts in the account group have been processed. The above method can efficiently complete the processing of all batch-processed accounts in the account group.

[0107] Figure 4 This is a flowchart illustrating a task processing method provided in the third embodiment of the present invention, as shown below. Figure 4 As shown, the method includes:

[0108] Step 401: Receive batch processing tasks and identify the multiple batch processing accounts corresponding to the batch processing tasks.

[0109] Step 402: Based on the number of nodes, divide the multiple batch processing accounts into multiple account groups, with each account group containing multiple batch processing accounts.

[0110] Step 403: Determine the processing node corresponding to each account group.

[0111] Step 404: For each processing node: Identify at least one target account from the account group corresponding to the processing node.

[0112] Step 405: Obtain system information and determine whether the system information meets the pre-approval conditions.

[0113] System information includes at least one of the following: CPU utilization, memory usage, disk usage, and number of processes. Pre-approval conditions can be set according to business needs. Pre-approval conditions may include: CPU utilization less than a utilization threshold, memory usage less than a first utilization threshold, disk usage less than a second utilization threshold, and the number of processes less than a quantity threshold, etc.

[0114] Step 406: In response to the system information meeting the pre-approval conditions, use the processing node to generate and execute the sub-tasks corresponding to each target account, and obtain the pre-processing results and pre-processing time points corresponding to each target account.

[0115] When the system is relatively idle, pre-batch processing can be performed. Pre-batch processing is used to execute sub-tasks corresponding to accounts before the statistical period. The statistical time point can be a preset time point, a daily end time point, a monthly end time point, a yearly end time point, etc. For example, the preset time point can be 8:00 AM every Saturday, the daily end time point can be set to 12:00 AM every day, and the yearly end time point can be set to 12:00 AM on December 31st of each year, etc.

[0116] Many companies typically process various types of data on a daily basis. End-of-day batch processing tasks perform the final business processing at the end of the day, requiring that the account has no other data to process after the batch processing. The account date is then updated after the batch processing task is completed.

[0117] The preprocessing time point is the start time of the subtask corresponding to the target account. The preprocessing results and the preprocessing time point can be stored in a temporary table.

[0118] Step 407: Using the preprocessing results and preprocessing time points corresponding to each target account, generate the final processing results corresponding to each target account.

[0119] The final processing results for each target account can be generated in the following ways: Obtain the current time and determine whether the current time has reached the statistical time point; in response to the current time reaching the statistical time point, determine whether the business data of the target account has been modified during the monitoring period, which is the time period between the preprocessing time point and the statistical time point; in response to the target account's business data not being modified during the monitoring period, determine the preprocessing result corresponding to the target account as the final processing result corresponding to the target account; in response to the target account's business data being modified during the monitoring period, re-execute the sub-task corresponding to the target account to obtain the final processing result corresponding to the target account.

[0120] If the account's business data has not been modified between the preprocessing and statistical time points, the preprocessing result will be used as the final result. Otherwise, the subtask corresponding to the account will be re-executed to obtain the account's final result.

[0121] After decoupling accounts, each account executes through an independent subtask, and each account can be batched independently. Traditional batch processing methods are largely limited by the batch time window. The solution in this embodiment of the invention, because it does not have the limitations of a "batch processing" state or a quiet period, allows subtasks to be executed without waiting for a specific statistical time point, but rather distributed across other idle times. For example, execution can be carried out in the early morning, when there are no online transactions and no time window pressure, allowing for full utilization of resources in account batch processing.

[0122] Although account subtasks can be distributed across different times outside the statistical time point and run independently, it cannot be guaranteed that the account's business data is in its final state. Therefore, account batch processing performed before the statistical time point is called "pre-batch," and the pre-batch processing content is consistent with the batch processing content at the statistical time point. The pre-batch results are stored in a temporary table and retrieved directly when the statistical time point arrives. If the account has other operations or data changes before the statistical time point, the pre-batch results in the temporary table are discarded, and the corresponding subtask for that account is re-executed.

[0123] The entire batch processing is broken down into a series of completely independent subtasks, decoupling accounts. Each batch processing account corresponds to one subtask, which can be distributed throughout the day or used to increase concurrency during off-peak online periods. The subtasks can be combined or separated, offering flexibility and eliminating the batch processing's quiet period, mitigating its impact, and making efficient use of resources at each processing node.

[0124] Figure 5 This is a schematic diagram of the structure of a task processing device provided in one embodiment of the present invention, as shown below. Figure 5 As shown, the device includes:

[0125] The account determination module 501 is used to receive batch processing tasks and determine multiple batch processing accounts corresponding to the batch processing tasks.

[0126] Grouping module 502 is used to divide the multiple batch processing accounts into multiple account groups according to the number of nodes, and each account group includes multiple batch processing accounts;

[0127] The node determination module 503 is used to determine the processing node corresponding to each of the account groups;

[0128] The processing module 504 is configured to, for each processing node,: determine at least one target account from the account group corresponding to the processing node; and use the processing node to generate and execute sub-tasks corresponding to each target account; wherein the sub-tasks are used to sequentially execute the functional modules corresponding to the batch processing task for each target account.

[0129] Optionally, the processing module 504 is specifically used for:

[0130] The current subtask is determined from at least one of the subtasks;

[0131] Determine the current account corresponding to the current subtask, and lock the business data of the current account;

[0132] The current subtask is executed using the processing node.

[0133] Release the lock on the business data of the current account.

[0134] Optionally, the processing module 504 is specifically used for:

[0135] Multiple threads are generated within the processing node;

[0136] Each subtask is assigned to a corresponding thread for processing.

[0137] Optionally, the processing module 504 is further configured to:

[0138] At least one subsequent account is determined from the account group corresponding to the processing node;

[0139] Using the processing node, subtasks corresponding to each of the subsequent accounts are generated and executed until all batch processing accounts in the account group have been completed.

[0140] Optionally, the processing module 504 is further configured to:

[0141] Obtain system information and determine whether the system information meets the pre-approval conditions;

[0142] In response to the system information meeting the pre-approval conditions, the processing node is used to generate and execute sub-tasks corresponding to each target account, thereby obtaining the pre-processing results and pre-processing time points corresponding to each target account.

[0143] Using the preprocessing results and preprocessing time points corresponding to each target account, the final processing results corresponding to each target account are generated.

[0144] Optionally, the processing module 504 is further configured to:

[0145] Obtain the current time and determine whether the current time has reached the statistical time point;

[0146] In response to the current time reaching the statistical time point, it is determined whether the business data of the target account has been modified during the monitoring period, where the monitoring period is the time period between the preprocessing time point and the statistical time point;

[0147] If the business data of the target account is not modified during the monitoring period, the preprocessing result corresponding to the target account is determined as the final processing result corresponding to the target account.

[0148] In response to the fact that the business data of the target account has been modified during the monitoring period, the sub-task corresponding to the target account is re-executed to obtain the final processing result corresponding to the target account.

[0149] Optionally, the system information includes at least one of the following: CPU utilization, memory usage, disk usage, and number of processes.

[0150] Optionally, the processing module 504 is specifically used for:

[0151] Obtain the orchestration information corresponding to the batch processing task;

[0152] Based on the orchestration information, determine the multiple service interfaces and their calling order corresponding to the batch processing task;

[0153] Using the business data of the target account as input, the multiple service interfaces are called sequentially according to the calling order to execute the sub-tasks corresponding to the target account.

[0154] This invention provides an electronic device, comprising:

[0155] One or more processors;

[0156] Storage device for storing one or more programs.

[0157] When one or more programs are executed by one or more processors, the one or more processors implement the methods of any of the above embodiments.

[0158] This invention provides a computer program product, including a computer program that, when executed by a processor, implements the enterprise risk assessment method of this invention.

[0159] The following is for reference. Figure 6 It shows a schematic diagram of the structure of a computer system 600 suitable for implementing a terminal device of the present invention. Figure 6The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0160] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 602 or programs loaded from storage section 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of the system 600. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0161] The following components are connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.

[0162] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs the functions defined above in the system of this invention.

[0163] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0164] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0165] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be located in a processor, and for example, can be described as: an account determination module, a grouping module, a node determination module, and a processing module. The names of these modules do not necessarily limit the module itself; for example, the account determination module can also be described as "a module that receives batch processing tasks and determines multiple batch processing accounts corresponding to the batch processing tasks."

[0166] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to include:

[0167] Receive batch processing tasks and determine the multiple batch processing accounts corresponding to the batch processing tasks;

[0168] Based on the number of nodes, the multiple batch processing accounts are divided into multiple account groups, and each account group includes multiple batch processing accounts;

[0169] Determine the processing node corresponding to each of the aforementioned account groups;

[0170] For each processing node: at least one target account is determined from the account group corresponding to the processing node; using the processing node, a subtask corresponding to each target account is generated and executed; wherein, the subtask is used to sequentially execute the functional modules of the batch processing task corresponding to the target account.

[0171] According to the technical solution of this invention, batch processing accounts are divided into multiple account groups, and these groups are assigned to their respective processing nodes. On each processing node, subtasks corresponding to each batch processing account are generated and executed. This allows the entire batch processing task to be broken down into completely independent subtasks, each corresponding to one batch processing account. Each batch processing account executes independently through its subtasks, achieving decoupling between batch processing accounts. Once the subtask corresponding to each batch processing account is completed, that account can provide services normally, regardless of the processing progress of other accounts, thus shortening the time when batch processing accounts are unable to provide services.

[0172] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Citation Information

Patent Citations

  • Data processing method and system

    CN111680080A

  • Task processing method and device

    CN114185658A