CN112035252A - Task processing method, device, equipment and medium - Google Patents

Task processing method, device, equipment and medium Download PDF

Info

Publication number
CN112035252A
CN112035252A CN202010873316.7A CN202010873316A CN112035252A CN 112035252 A CN112035252 A CN 112035252A CN 202010873316 A CN202010873316 A CN 202010873316A CN 112035252 A CN112035252 A CN 112035252A
Authority
CN
China
Prior art keywords
task
estimation
processing
evaluation
preprocessing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010873316.7A
Other languages
Chinese (zh)
Inventor
陈桂生
杨佳
马宝华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010873316.7A priority Critical patent/CN112035252A/en
Publication of CN112035252A publication Critical patent/CN112035252A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses a task processing method, a task processing device, task processing equipment and a task processing medium. Wherein, the method comprises the following steps: if the processing request of the task is detected, determining time windows of at least two estimation mechanisms for processing the task; the evaluation mechanism is used for carrying out evaluation accounting processing on the tasks; determining the priority level of the preprocessing task in each time window to obtain the priority level of each evaluation mechanism; and if the resource use early warning event of the equipment is detected, regulating and controlling the estimation accounting processing state of each estimation mechanism according to the priority level of each estimation mechanism. The embodiment of the invention regulates and controls the estimation accounting processing state of each estimation mechanism in real time through the time window of each estimation mechanism, thereby effectively improving the processing efficiency of tasks.

Description

Task processing method, device, equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of financial informatization, in particular to a task processing method, device, equipment and medium.
Background
In the process of estimating and calculating financial products, the number of batch Processing files and multiple entities (estimating mechanisms) for estimating and calculating every day is large, so that the use of a Central Processing Unit (CPU) and a memory of a machine is uneven, sometimes the use exceeds the operation upper limit of an equipment system, the performance of the system is reduced, and the idle resources of the equipment are difficult to reasonably plan the Processing rules of multiple tasks. At present, when multi-task processing is performed, the number of processing devices is mainly increased, so that the upper limit of operation of each device system does not exceed an upper limit threshold, and thus task concurrent processing is realized.
The defects of the scheme are as follows: when a new processing device is added, a series of requirement configuration needs to be carried out on the processing device, a long time needs to be spent in the period, and the performance bottleneck of the new processing device influences the processing efficiency of the transaction, so that the processing efficiency of the task is low.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a medium for processing tasks, which can regulate and control the estimation accounting processing state of each estimation mechanism in real time through the time window of each estimation mechanism, thereby effectively improving the processing efficiency of the tasks.
In a first aspect, an embodiment of the present invention provides a method for processing a task, including:
if the processing request of the task is detected, determining time windows of at least two estimation mechanisms for processing the task; the estimation mechanism is used for carrying out estimation accounting processing on the task;
determining the priority level of the preprocessing task in each time window to obtain the priority level of each evaluation mechanism;
and if the resource use early warning event of the equipment is detected, regulating and controlling the estimation accounting processing state of each estimation mechanism according to the priority level of each estimation mechanism.
In a second aspect, an embodiment of the present invention provides a device for processing a task, including:
the time window determining module is used for determining the time windows of the tasks processed by the at least two estimation mechanisms if the processing request of the tasks is detected; the estimation mechanism is used for carrying out estimation accounting processing on the task;
the priority level determining module is used for determining the priority level of the preprocessing task in each time window so as to obtain the priority level of each evaluation mechanism;
and the processing state regulating and controlling module is used for regulating and controlling the evaluation accounting processing state of each evaluation mechanism according to the priority level of each evaluation mechanism if the resource use early warning event of the equipment is detected.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the processing method of the task described in any of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a processing method of the task described in any one of the embodiments of the present invention.
If a processing request of a task is detected, determining time windows of at least two estimation mechanisms for processing the task; the evaluation mechanism is used for carrying out evaluation accounting processing on the tasks; determining the priority level of the preprocessing task in each time window to obtain the priority level of each evaluation mechanism; and if the resource use early warning event of the equipment is detected, regulating and controlling the estimation accounting processing state of each estimation mechanism according to the priority level of each estimation mechanism. The embodiment of the invention regulates and controls the estimation accounting processing state of each estimation mechanism in real time through the time window of each estimation mechanism, thereby effectively improving the processing efficiency of the task.
Drawings
FIG. 1 is a flowchart illustrating a task processing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a task processing method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a task processing device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device in the fourth embodiment.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart illustrating a task processing method according to a first embodiment of the present invention. The present embodiment is applicable to a case where evaluation accounting is performed on a financial product. The method of the embodiment may be performed by a processing device of a task, which may be implemented in hardware and/or software and may be configured in an electronic device. The task processing method can be realized according to any embodiment of the application. As shown in fig. 1, the method specifically includes the following steps:
s110, if a task processing request is detected, determining time windows of at least two estimation mechanisms for processing tasks; the evaluation mechanism is used for carrying out evaluation accounting processing on the tasks.
In the embodiment, the processing request of the task is generated by the server responding to the received input information and is sent to the task processing equipment; the task processing device may be a processing device in the banking system, such as a computer for data running in a background; the processing request of the task may include at least one task to be processed and a task processing type of the task to be processed. Specifically, the task in this embodiment is to perform evaluation accounting on the financial product.
Because the business system of the bank may have a plurality of entity valuation mechanisms at the same time, in order to avoid the condition that the equipment system is paralyzed when a plurality of valuation mechanisms process at the same time, in this embodiment, a time window for determining the processing tasks of each valuation mechanism can be selected, so that a plurality of tasks to be processed are concurrently processed according to the time window; wherein, the time window of each estimation mechanism is the time period of each estimation mechanism processing task; there may be repetitions of the time windows of the different evaluation mechanisms; specifically, the time windows of the evaluation mechanisms may be divided by technicians based on different regions, or the time windows of the evaluation mechanisms may be made uniformly based on latitude and longitude.
In this embodiment, optionally, determining time windows for processing tasks by at least two estimation mechanisms includes:
acquiring historical task processing lists of at least two estimation mechanisms from an estimation system;
and determining time windows of the tasks processed by the at least two estimation mechanisms according to the historical task processing lists of the at least two estimation mechanisms.
In the embodiment, the evaluation system is a processing system in a task processing device, and comprises a plurality of evaluation mechanisms and batch processing window data of each evaluation mechanism; the batch window data may be a processing list of historically processed tasks, or a processing list of in-process tasks; and searching a historical task processing list of the required estimation mechanism from batch processing window data of the estimation system, and determining a time window for processing tasks by the estimation mechanism according to the processing time in the historical task processing list. According to the embodiment, through the historical task processing list of each estimation mechanism in the estimation system, the time window of the estimation mechanism can be rapidly and accurately obtained, and an important time basis is provided for subsequent task processing.
And S120, determining the priority level of the preprocessing task in each time window to obtain the priority level of each evaluation mechanism.
Because the time windows of the tasks processed by the evaluation mechanisms may be repeated, in order to avoid the situation that the evaluation mechanisms process the tasks at the same time and cause overload carrying of the equipment, the priority level of each evaluation mechanism is determined by the priority level of the tasks preprocessed by each evaluation mechanism, so that the equipment can balance the load when processing the tasks, and the processing efficiency of the tasks is effectively improved.
And S130, if the resource use early warning event of the equipment is detected, regulating and controlling the estimation accounting processing state of each estimation mechanism according to the priority level of each estimation mechanism.
In this embodiment, when the resource usage warning event of the device occurs, it indicates that the device is running in an overload condition, and the cause of the overload event is, for example, that a plurality of estimation mechanisms are processing tasks at the same time, or that data of the tasks being processed is too large. If the device is not processed at this time, the device may be stuck, and may be damaged temporarily, which may have a serious impact on the processing of the subsequent task. When the resource usage early warning event occurs in the equipment, the estimation accounting processing states of the estimation mechanisms in the equipment are timely regulated and controlled in real time, the state of the equipment processing task can be ensured to be kept in normal operation, and the task processing efficiency is ensured.
In this embodiment, optionally, the resource usage early warning event of the device includes: the processor resource usage of the device exceeds a resource usage threshold, or the memory resource usage of the device exceeds a memory usage threshold. The resource utilization rate threshold and the memory resource utilization rate can be set by a technician for equipment management based on a machine alert value, for example, the percentages of the resource utilization rate threshold and the memory resource utilization rate threshold can be set to 80%; the specific usage threshold may be adapted to be newly adjusted based on the performance of the device processing the task, and this embodiment is not specifically limited herein.
If a processing request of a task is detected, determining time windows of at least two estimation mechanisms for processing the task; the evaluation mechanism is used for carrying out evaluation accounting processing on the tasks; determining the priority level of the preprocessing task in each time window to obtain the priority level of each evaluation mechanism; and if the resource use early warning event of the equipment is detected, regulating and controlling the estimation accounting processing state of each estimation mechanism according to the priority level of each estimation mechanism. The embodiment of the invention regulates and controls the estimation accounting processing state of each estimation mechanism in real time through the time window of each estimation mechanism, thereby effectively improving the processing efficiency of the task.
On the basis of the foregoing embodiment, optionally, before determining the priority level of the preprocessing task in each time window, the present embodiment further includes:
matching the task processing type of the task with the task processing type of each evaluation mechanism;
and determining the preprocessing tasks in the time windows of the evaluation mechanisms according to the matching result.
In this embodiment, each estimation mechanism in the estimation system has a task processing type of its processing task, and each task also has its task processing type, and the task processing types of the two are matched to determine the estimation mechanism to which each task should be allocated; if the matching degree of the task processing type of a certain task and the task processing type of a certain evaluation mechanism is the highest, the task is allocated to the time window of the evaluation mechanism based on the matching value of the task processing types.
Specifically, the time window of each estimation mechanism can limit the number of preprocessing tasks, and when the number exceeds the preset number, the allocation of new tasks is refused; the task may be assigned to another new evaluation mechanism, and the degree of matching between the task processing type of the new evaluation mechanism and the task processing type of the task is only the next time that the evaluation mechanism is full of the number of tasks. The embodiment of the invention determines the preprocessing tasks in each time window based on the matching degree of the task types, and can quickly and accurately match proper processing time for each task to be processed, thereby realizing the concurrent processing of a plurality of tasks.
On the basis of the foregoing embodiment, optionally, determining the preprocessing task in the time window of each estimation mechanism according to the matching result includes:
if the estimation mechanisms with the same task processing type are matched, generating a task processing list in a time window of the estimation mechanism;
and determining the preprocessing tasks in the time windows of the evaluation mechanisms according to the task processing list.
In this embodiment, the task processing list is composed of the matched tasks, that is, the sequence in the task processing list is formulated according to the matching time of each task, and the tasks in the task list are the preprocessing tasks in the time window; the embodiment can realize the unified management of the preprocessing tasks in the time window based on the generated task processing list.
On the basis of the foregoing embodiment, optionally, generating the task processing list in the time window of the evaluation mechanism includes:
if the matching result is detected to have the time windows of at least two valuation mechanisms for processing tasks identical, determining the generation time of a task processing list in the time window of each valuation mechanism according to the serial number identification of the valuation mechanism;
and generating the task processing list in the time window of the evaluation mechanism according to the generation time of the task processing list in the time window of each evaluation mechanism.
In this embodiment, when the task processing type of the task and the task processing type of the estimation mechanism are successfully matched, the system marks a sequence number identifier for the estimation mechanism, which is used to indicate the sequence of the estimation mechanism in the matching process, and finally counts the time of the sequence number identifier as the generation time of the task processing list in the time window of the estimation mechanism. According to the embodiment, the tasks are distributed through the generation time of the task processing list in the evaluation mechanism, so that the problem that the running load of equipment is increased due to disorder in the distribution process is effectively avoided.
For example, if it is determined that the generation time of the task processing list in the time window of the a estimation mechanism is earlier than the generation time of the task processing list in the time window of the B estimation mechanism, the task processing list is generated in the time window of the a estimation mechanism, and the task is added to the task processing list until the number of the added task processing lists of the a estimation mechanism reaches the upper limit of the list, and then the next task is added to the task processing list in the time window of the B estimation mechanism.
Example two
Fig. 2 is a flowchart illustrating a task processing method according to a second embodiment of the present invention. The embodiment is further expanded and optimized on the basis of the embodiment, and can be combined with any optional alternative in the technical scheme. As shown in fig. 2, the method includes:
s210, if a task processing request is detected, determining time windows of at least two estimation mechanisms for processing tasks; the evaluation mechanism is used for carrying out evaluation accounting processing on the tasks.
And S220, determining the priority level of the preprocessing task in each time window to obtain the priority level of each evaluation mechanism.
In this embodiment, optionally, determining the priority level of the preprocessing task in each time window to obtain the priority level of each evaluation mechanism includes:
evaluating task priority values of the preprocessing tasks in each time window;
determining the priority level of the preprocessing task in each time window according to the task priority value;
and determining the priority level of each evaluation mechanism according to the priority level of the preprocessing task in each time window.
In the embodiment, the task priority value can reflect the processing sequence of the task in the time window; determining the priority levels of the preprocessing tasks in each time window according to the task priority values, wherein the higher the priority level is, the higher the processing sequence of the preprocessing tasks is in the same time window; according to the embodiment, the processing sequence of the tasks is determined according to the priority levels of the tasks, and the high-priority tasks can be completed effectively and quickly.
S230, counting the estimation accounting processing states of the estimation mechanisms if the resource use early warning event of the equipment is detected; wherein the evaluation accounting processing state comprises working, suspending and idle.
In this embodiment, the accounting processing state represents the current operating state of the evaluation mechanism; the evaluation accounting processing state is work, and the evaluation mechanism carries out evaluation accounting processing; the estimation accounting processing state is a pause state, which indicates that the task currently processed by the estimation mechanism is in pause for subsequent indication; an estimate accounting processing state of idle indicates that a period of time has not yet elapsed during which the estimation mechanism is processing a task, or that a task has been processed and is waiting to process a new task.
And S240, if the estimation accounting processing states of the at least two estimation mechanisms are detected to be working, controlling the estimation accounting processing state of the estimation mechanism with the highest priority level in the at least two estimation mechanisms to be working, and controlling the estimation accounting processing states of other estimation mechanisms in the at least two estimation mechanisms to be suspended.
In this embodiment, in order to avoid delaying processing of the task with the high priority level, when the resource usage early warning threshold of the device is reached, it is necessary to ensure that the task with the high priority level is processed in time first, so as to implement fast processing of the task with the high priority level. When the task processing is completed, the estimation accounting processing states of other estimation mechanisms can be selected to be restored to work so as to realize the time accuracy of the required data at the downstream.
On the basis of the foregoing embodiment, optionally, the evaluating the task priority value of the preprocessing task in each time window includes:
determining the matching value of each estimation mechanism and the preprocessing task in the time window of each estimation mechanism; the matching value is a task processing type of a preprocessing task in a time window of the valuation mechanism and a matching degree value of the task processing type of the valuation mechanism;
and obtaining the task priority value of the preprocessing task in each time window according to the matching value.
In the embodiment, the preprocessing task with a higher matching value indicates a higher importance degree in the time window; specifically, the matching value and the task priority value may be values; the matching value may be quantified based on the degree of matching.
On the basis of the foregoing embodiment, optionally, determining the priority level of each evaluation mechanism according to the priority level of the preprocessing task in each time window includes:
carrying out quantization processing on the priority levels of the preprocessing tasks in each time window to obtain the quantization division of each preprocessing task;
and determining the priority level of each estimation mechanism according to the sum of the quantized scores of each preprocessing task.
In this embodiment, numerical conversion may be performed according to the degree of priority of the preprocessing task to obtain a quantization score; for example, if the priority of a certain preprocessing task is one level, the quantized score can be 10; the priority level of the preprocessing task is two levels, and the quantized point can be 8 points, so that the priority level is decreased according to the level degree. And adding and processing the quantized components of the preprocessing tasks in each time window to obtain a total quantification component of one time window, and then representing the priority level of the valuation mechanism to which the time window belongs on the basis of the total quantification component. In the embodiment, the priority level of the preprocessing task is quantized into a specific numerical value, so that the priority levels of the evaluation mechanisms can be clearly and intuitively compared according to the numerical value.
On the basis of the foregoing embodiment, optionally, the method of this embodiment further includes:
and generating a record file according to the evaluation accounting processing state of each evaluation mechanism, and performing real-time control on the evaluation accounting processing state of each evaluation mechanism.
In this embodiment, the estimation system records the estimation accounting state of each estimation mechanism in real time, so as to avoid a phenomenon of misadjustment when the estimation accounting state of a certain estimation mechanism needs to be adjusted, and can provide a reference for the estimation system to adjust and control each estimation mechanism. Meanwhile, if the estimation accounting state of an estimation mechanism is detected to be working all the time within a specified time, the estimation mechanism may have a dead-loop operation state in the calculation process, and at this time, the estimation mechanism needs to be suspended.
On the basis of the foregoing embodiment, optionally, the method of this embodiment further includes:
and if the resource use early warning event of the equipment is not detected, carrying out estimation accounting processing on the preprocessing tasks in the time windows according to the priority levels of the preprocessing tasks in the time windows.
In this embodiment, if there is no overload of the operation of the device, that is, it indicates that there is no repetition of all the processing time of the preprocessing tasks, or the amount of data of the preprocessing tasks processed simultaneously in at least two time windows is small and is not enough to affect the normal operation of the device, the estimation mechanism may perform the estimation and accounting process on the preprocessing tasks in the time windows based on each time window. The embodiment of the invention distributes a plurality of tasks to the time windows of a plurality of valuation mechanisms in sequence, thereby realizing the concurrent processing of the tasks and solving the problem of idle resources of equipment; the equipment idle resources are small time periods which are aggregated when the equipment runs, and other time periods are idle.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a task processing device in a third embodiment of the present invention, which is applicable to the evaluation and accounting of financial products. The device is configured in the electronic equipment, and can realize the task processing method in any embodiment of the application. The device specifically comprises the following steps:
a time window determining module 310, configured to determine time windows for at least two evaluation mechanisms to process a task if a processing request of the task is detected; the estimation mechanism is used for carrying out estimation accounting processing on the task;
a priority level determining module 320, configured to determine priority levels of the preprocessing tasks in the time windows to obtain priority levels of the evaluation mechanisms;
and the processing state regulating and controlling module 330 is configured to regulate and control the estimation accounting processing state of each estimation mechanism according to the priority level of each estimation mechanism if the resource usage early warning event of the device is detected.
On the basis of the foregoing embodiment, optionally, the time window determining module 310 is specifically configured to:
acquiring historical task processing lists of at least two estimation mechanisms from an estimation system;
and determining time windows of the tasks processed by the at least two estimation mechanisms according to the historical task processing lists of the at least two estimation mechanisms.
On the basis of the foregoing embodiment, optionally, the method of this embodiment further includes:
the matching module is used for matching the task processing type of the task with the task processing type of each valuation mechanism;
and the preprocessing task determining module is used for determining the preprocessing tasks in the time windows of the estimation mechanisms according to the matching result.
On the basis of the foregoing embodiment, optionally, the preprocessing task determination module is specifically configured to:
if the estimation mechanisms with the same task processing type are matched, generating a task processing list in a time window of the estimation mechanism;
and determining the preprocessing tasks in the time windows of the estimation mechanisms according to the task processing list.
On the basis of the foregoing embodiment, optionally, the preprocessing task determining module is further specifically configured to:
if the matching result is detected to have the time windows of at least two valuation mechanisms for processing tasks identical, determining the generation time of a task processing list in the time window of each valuation mechanism according to the serial number identification of the valuation mechanism;
and generating a task processing list in the time window of the evaluation mechanism according to the generation time of the task processing list in the time window of each evaluation mechanism.
On the basis of the foregoing embodiment, optionally, the priority level determining module 320 is specifically configured to:
evaluating task priority values of the preprocessing tasks in each time window;
determining the priority level of the preprocessing task in each time window according to the task priority value;
and determining the priority level of each evaluation mechanism according to the priority level of the preprocessing task in each time window.
On the basis of the foregoing embodiment, optionally, the priority level determining module 320 is further specifically configured to:
determining the matching value of each estimation mechanism and the preprocessing task in the time window of each estimation mechanism; the matching value is a task processing type of a preprocessing task in a time window of an evaluation mechanism and a matching degree value of the task processing type of the evaluation mechanism;
and obtaining the task priority value of the preprocessing task in each time window according to the matching value.
On the basis of the foregoing embodiment, optionally, the priority level determining module 320 is further specifically configured to:
quantizing the priority levels of the preprocessing tasks in the time windows to obtain quantized components of the preprocessing tasks;
and determining the priority level of each estimation mechanism according to the sum of the quantized scores of each preprocessing task.
On the basis of the foregoing embodiment, optionally, the resource usage early warning event of the device includes: the processor resource usage of the device exceeds a resource usage threshold, or the memory resource usage of the device exceeds a memory usage threshold.
On the basis of the foregoing embodiment, optionally, the processing state regulating module 330 is specifically configured to:
counting the estimation accounting processing state of each estimation mechanism; wherein the evaluation accounting processing state comprises working, suspended and idle;
and if the estimation accounting processing states of the at least two estimation mechanisms are detected to be working, controlling the estimation accounting processing state of the estimation mechanism with the highest priority level in the at least two estimation mechanisms to be working, and controlling the estimation accounting processing state of other estimation mechanisms in the at least two estimation mechanisms to be suspended.
On the basis of the foregoing embodiment, optionally, the apparatus of this embodiment further includes:
and the record file generating module is used for generating a record file according to the evaluation accounting processing states of the evaluation mechanisms and performing real-time control on the evaluation accounting processing states of the evaluation mechanisms.
On the basis of the foregoing embodiment, optionally, the apparatus of this embodiment further includes:
and the estimation accounting processing module is used for performing estimation accounting processing on the preprocessing tasks in the time windows according to the priority levels of the preprocessing tasks in the time windows if the resource use early warning event of the equipment is not detected.
By the task processing device of the third embodiment of the invention, the estimation accounting processing state of each estimation mechanism is regulated and controlled in real time based on the time window of each estimation mechanism, so that the processing efficiency of the task is effectively improved.
The task processing device provided by the embodiment of the invention can execute the task processing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, as shown in fig. 4, the electronic device includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the electronic device may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410, the memory 420, the input device 430 and the output device 440 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 4.
The memory 420 serves as a computer-readable storage medium, and may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the processing methods of tasks in the embodiments of the present invention. The processor 410 executes various functional applications of the electronic device and data processing, i.e., a processing method for realizing tasks provided by the embodiments of the present invention, by executing software programs, instructions, and modules stored in the memory 420.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to an electronic device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus, and may include a keyboard, a mouse, and the like. The output device 440 may include a display device such as a display screen.
EXAMPLE five
The present embodiments provide a storage medium containing computer-executable instructions for implementing a processing method of tasks provided by embodiments of the present invention when executed by a computer processor.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the processing method of the task provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A method for processing a task, the method comprising:
if the processing request of the task is detected, determining time windows of at least two estimation mechanisms for processing the task; the estimation mechanism is used for carrying out estimation accounting processing on the task;
determining the priority level of the preprocessing task in each time window to obtain the priority level of each evaluation mechanism;
and if the resource use early warning event of the equipment is detected, regulating and controlling the estimation accounting processing state of each estimation mechanism according to the priority level of each estimation mechanism.
2. The method of claim 1, wherein determining time windows for at least two evaluation mechanisms to process tasks comprises:
acquiring historical task processing lists of at least two estimation mechanisms from an estimation system;
and determining time windows of the tasks processed by the at least two estimation mechanisms according to the historical task processing lists of the at least two estimation mechanisms.
3. The method of claim 1, wherein prior to determining the priority level of the preprocessing task in each time window, the method further comprises:
matching the task processing type of the task with the task processing type of each evaluation mechanism;
and determining the preprocessing tasks in the time windows of the evaluation mechanisms according to the matching result.
4. The method of claim 3, wherein determining the preprocessing task in the time window of each evaluation mechanism based on the matching results comprises:
if the estimation mechanisms with the same task processing type are matched, generating a task processing list in a time window of the estimation mechanism;
and determining the preprocessing tasks in the time windows of the estimation mechanisms according to the task processing list.
5. The method of claim 4, wherein generating a task processing list within a time window of the evaluation mechanism comprises:
if the matching result is detected to have the time windows of at least two valuation mechanisms for processing tasks identical, determining the generation time of a task processing list in the time window of each valuation mechanism according to the serial number identification of the valuation mechanism;
and generating a task processing list in the time window of the evaluation mechanism according to the generation time of the task processing list in the time window of each evaluation mechanism.
6. The method of claim 1, wherein determining the priority level of the preprocessing task in each time window to obtain the priority level of each evaluation mechanism comprises:
evaluating task priority values of the preprocessing tasks in each time window;
determining the priority level of the preprocessing task in each time window according to the task priority value;
and determining the priority level of each evaluation mechanism according to the priority level of the preprocessing task in each time window.
7. The method of claim 6, wherein evaluating task priority values for the pre-processing tasks in each time window comprises:
determining the matching value of each estimation mechanism and the preprocessing task in the time window of each estimation mechanism; the matching value is a task processing type of a preprocessing task in a time window of an evaluation mechanism and a matching degree value of the task processing type of the evaluation mechanism;
and obtaining the task priority value of the preprocessing task in each time window according to the matching value.
8. The method of claim 6, wherein determining the priority of each evaluation mechanism based on the priority of the preprocessing tasks in each time window comprises:
quantizing the priority levels of the preprocessing tasks in the time windows to obtain quantized components of the preprocessing tasks;
and determining the priority level of each estimation mechanism according to the sum of the quantized scores of each preprocessing task.
9. The method of claim 1, wherein the resource usage alerting event of the device comprises: the processor resource usage of the device exceeds a resource usage threshold, or the memory resource usage of the device exceeds a memory usage threshold.
10. The method of claim 1, wherein regulating the evaluation accounting processing state of each evaluation mechanism based on the priority of each evaluation mechanism comprises:
counting the estimation accounting processing state of each estimation mechanism; wherein the evaluation accounting processing state comprises working, suspended and idle;
and if the estimation accounting processing states of the at least two estimation mechanisms are detected to be working, controlling the estimation accounting processing state of the estimation mechanism with the highest priority level in the at least two estimation mechanisms to be working, and controlling the estimation accounting processing state of other estimation mechanisms in the at least two estimation mechanisms to be suspended.
11. The method of claim 10, further comprising:
and generating a record file according to the evaluation accounting processing state of each evaluation mechanism, and performing real-time control on the evaluation accounting processing state of each evaluation mechanism.
12. The method of claim 1, further comprising:
and if the resource use early warning event of the equipment is not detected, carrying out estimation accounting processing on the preprocessing tasks in the time windows according to the priority levels of the preprocessing tasks in the time windows.
13. An apparatus for processing a task, the apparatus comprising:
the time window determining module is used for determining the time windows of the tasks processed by the at least two estimation mechanisms if the processing request of the tasks is detected; the estimation mechanism is used for carrying out estimation accounting processing on the task;
the priority level determining module is used for determining the priority level of the preprocessing task in each time window so as to obtain the priority level of each evaluation mechanism;
and the processing state regulating and controlling module is used for regulating and controlling the evaluation accounting processing state of each evaluation mechanism according to the priority level of each evaluation mechanism if the resource use early warning event of the equipment is detected.
14. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of processing a task as claimed in any one of claims 1 to 12.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for processing the tasks of any one of claims 1 to 12.
CN202010873316.7A 2020-08-26 2020-08-26 Task processing method, device, equipment and medium Pending CN112035252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010873316.7A CN112035252A (en) 2020-08-26 2020-08-26 Task processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010873316.7A CN112035252A (en) 2020-08-26 2020-08-26 Task processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN112035252A true CN112035252A (en) 2020-12-04

Family

ID=73580062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010873316.7A Pending CN112035252A (en) 2020-08-26 2020-08-26 Task processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112035252A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108711069A (en) * 2018-05-03 2018-10-26 泰康保险集团股份有限公司 price estimation method and device, storage medium and electronic equipment
CN109783242A (en) * 2018-12-12 2019-05-21 平安科技(深圳)有限公司 Abroad holding valuation flow control method, device, computer equipment and storage medium
CN110059293A (en) * 2019-02-20 2019-07-26 阿里巴巴集团控股有限公司 The determination method, apparatus and server of the quality of data of fund valuation data
WO2019204898A1 (en) * 2018-04-26 2019-10-31 10518590 Canada Inc. Workload scheduling in a distributed computing environment based on an applied computational value
CN111445340A (en) * 2020-04-25 2020-07-24 中信银行股份有限公司 Method and device for estimating value of financial product, electronic equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019204898A1 (en) * 2018-04-26 2019-10-31 10518590 Canada Inc. Workload scheduling in a distributed computing environment based on an applied computational value
CN108711069A (en) * 2018-05-03 2018-10-26 泰康保险集团股份有限公司 price estimation method and device, storage medium and electronic equipment
CN109783242A (en) * 2018-12-12 2019-05-21 平安科技(深圳)有限公司 Abroad holding valuation flow control method, device, computer equipment and storage medium
CN110059293A (en) * 2019-02-20 2019-07-26 阿里巴巴集团控股有限公司 The determination method, apparatus and server of the quality of data of fund valuation data
CN111445340A (en) * 2020-04-25 2020-07-24 中信银行股份有限公司 Method and device for estimating value of financial product, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
WO2021159638A1 (en) Method, apparatus and device for scheduling cluster queue resources, and storage medium
CN109981744B (en) Data distribution method and device, storage medium and electronic equipment
CN111026553A (en) Resource scheduling method for offline mixed part operation and server system
CN115373835A (en) Task resource adjusting method and device for Flink cluster and electronic equipment
CN111625527A (en) Out-of-order data processing method, device and equipment and readable storage medium
CN112506619A (en) Job processing method, apparatus, electronic device, storage medium, and program product
CN112596985B (en) IT asset detection method, device, equipment and medium
CN113391911A (en) Big data resource dynamic scheduling method, device and equipment
CN115756812A (en) Resource adjusting method and device and storage medium
CN116501468A (en) Batch job processing method and device and electronic equipment
CN111475267A (en) System task automatic scheduling method and device, computer equipment and storage medium
CN111813548A (en) Resource scheduling method and device, electronic equipment and storage medium
CN116661960A (en) Batch task processing method, device, equipment and storage medium
CN112035252A (en) Task processing method, device, equipment and medium
CN115952054A (en) Simulation task resource management method, device, equipment and medium
CN115713395A (en) Flink-based user wind control management method, device and equipment
CN114510726A (en) Automatic vulnerability mining method and system for self-adjusting load
CN114490078A (en) Dynamic capacity reduction and expansion method, device and equipment for micro-service
CN109901931B (en) Reduction function quantity determination method, device and system
US20190138931A1 (en) Apparatus and method of introducing probability and uncertainty via order statistics to unsupervised data classification via clustering
CN112148491B (en) Data processing method and device
CN112114972B (en) Data inclination prediction method and device
CN114598705B (en) Message load balancing method, device, equipment and medium
CN112148550B (en) Method, apparatus and computer program product for managing services
CN116389499A (en) Task allocation method, device, equipment and medium based on electric power Internet of things

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220927

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.