CN109542591A - Task compensation deals method, apparatus, computer equipment and storage medium - Google Patents
Task compensation deals method, apparatus, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109542591A CN109542591A CN201811208031.0A CN201811208031A CN109542591A CN 109542591 A CN109542591 A CN 109542591A CN 201811208031 A CN201811208031 A CN 201811208031A CN 109542591 A CN109542591 A CN 109542591A
- Authority
- CN
- China
- Prior art keywords
- task
- time
- reason
- target operation
- processing
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000003860 storage Methods 0.000 title claims abstract description 17
- 230000008030 elimination Effects 0.000 claims description 19
- 238000003379 elimination reaction Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 18
- 238000001514 detection method Methods 0.000 claims description 10
- 239000000284 extract Substances 0.000 claims description 3
- 238000004140 cleaning Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 230000004044 response Effects 0.000 description 4
- 238000009825 accumulation Methods 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 3
- 239000000203 mixture Substances 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses task compensation deals method, apparatus, computer equipment and storage mediums, are applied to technical field of data processing, for solving the problems, such as the task inefficiency of cleaning processing failure.The method include that in automatic regular polling task state record table processing failure task, the reason of task state record table is used to record the processing result of each task after goal systems handles each task and leads to the processing result, the processing result includes processing failure;Obtain the mission failure reason of each target operation task and each target operation task processing failure that are polled to;It detects whether each mission failure reason has been eliminated, and determines the target operation task for having eliminated mission failure reason;It controls the goal systems and re-executes the target operation task determined.
Description
Technical field
The present invention relates to technical field of data processing more particularly to task compensation deals method, apparatus, computer to set
Standby and storage medium.
Background technique
System may cause the task of part to handle in batch processing task due to varied
The reasons such as failure, such as network interruption, interconnected system exception.
Currently, generally handled by the way of manual intervention after task processing failure occurs in system, for example, by
The task and these task processing failures of processing failure are found out in special staff's manual screening system log
The reason of, after elimination leads to the factor of processing failure, task is executed again and carrys out processing failure in cleaning system one by one
Task, inefficiency and higher cost.
Summary of the invention
The embodiment of the present invention provides a kind of task compensation deals method, apparatus, computer equipment and storage medium, with
Solve the problems, such as the task inefficiency of cleaning processing failure.
A kind of task compensation deals method, comprising:
The task of processing failure in automatic regular polling task state record table, the task state record table
For recording the processing result of each task after goal systems handles each task and leading to the processing
As a result the reason of, the processing result include processing failure;
Obtain the mission failure reason of each target operation task and each target operation task processing failure that are polled to;
Whether eliminated according to each mission failure reason of the feedback information detection of the source side of each mission failure reason,
And determining the target operation task for having eliminated mission failure reason, the feedback information refers to losing about task for source side's feedback
The information whether reason has been eliminated is lost, the source side of the mission failure reason extracts in the field by the mission failure reason
It obtains;
It controls the goal systems and re-executes the target operation task determined.
A kind of task compensation deals device, comprising:
Automatic regular polling module, it is described for the task of processing failure in automatic regular polling task state record table
Task state record table is used to record the processing of each task after goal systems handles each task
As a result the reason of and leading to the processing result, the processing result includes processing failure;
Task obtains module, for obtaining at each target operation task and each target operation task being polled to
Manage the mission failure reason of failure;
Task determining module, for according to feedback information detection each of the source side of each mission failure reason
Whether business failure cause has been eliminated, and determines the target operation task for having eliminated mission failure reason, and the feedback information refers to
The information of source side's feedback whether eliminated about mission failure reason, the source side of the mission failure reason is by described
It extracts and obtains in the field of failure cause of being engaged in;
Module is re-executed, re-executes the target operation task determined for controlling the goal systems.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing
The computer program run on device, the processor realize above-mentioned task compensation deals side when executing the computer program
The step of method.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter
The step of calculation machine program realizes above-mentioned task compensation deals method when being executed by processor.
Above-mentioned task compensation deals method, apparatus, computer equipment and storage medium, firstly, automatic regular polling works
The task of processing failure in task status record sheet, the task state record table are used for each in goal systems processing
The reason of recording the processing result of each task after a task and leading to the processing result, the processing knot
Fruit includes processing failure;Then, each target operation task and each target operation task processing failure being polled to are obtained
Mission failure reason;Then, it detects whether each mission failure reason has been eliminated, and determines the mesh for having eliminated mission failure reason
Mark task;Finally, controlling the goal systems re-executes the target operation task determined.As it can be seen that the present invention passes through
Task state record table reduces inspection system day without checking that system log can get the task of processing failure
The workload of will;In addition, being not necessarily to manual intervention, the task of processing failure can be re-executed, improve and processing is lost
The treatment effeciency of the task lost, reduces costs.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is an application environment schematic diagram of task compensation deals method in one embodiment of the invention;
Fig. 2 is a flow chart of task compensation deals method in one embodiment of the invention;
Fig. 3 be in one embodiment of the invention task compensation deals method handled under an application scenarios do not eliminate appoint
The flow diagram of the task of business failure cause;
Fig. 4 is stream of the task compensation deals method and step 202 under an application scenarios in one embodiment of the invention
Journey schematic diagram;
Fig. 5 be in one embodiment of the invention task compensation deals method and step 202 under another application scenarios
Flow diagram;
Fig. 6 is that the determination under an application scenarios of task compensation deals method need to compensate place in one embodiment of the invention
The flow diagram of the task of reason;
Fig. 7 is stream of the task compensation deals method and step 501 under an application scenarios in one embodiment of the invention
Journey schematic diagram;
Fig. 8 is that task compensation deals method is limited under an application scenarios and repeated in one embodiment of the invention
The flow diagram of number;
Fig. 9 is the structural schematic diagram of task compensation deals device in one embodiment of the invention;
Figure 10 is a schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Task compensation deals method provided by the present application, can be applicable in the application environment such as Fig. 1, wherein carrying
The equipment of goal systems is communicated by network with server.Wherein, the equipment can be, but not limited to various personal computers,
Laptop, smart phone, tablet computer and portable wearable device.Server can be with independent server either
The server cluster of multiple servers composition is realized.
In one embodiment, it as shown in Fig. 2, providing a kind of task compensation deals method, is applied in this way in Fig. 1
In server for be illustrated, include the following steps:
101, in automatic regular polling task state record table processing failure task, task state note
Record table is used to record the processing result of each task after goal systems handles each task and causes described
The reason of processing result, the processing result include processing failure;
In the present embodiment, server can be preset with task state record table, which uses
In the processing result for recording each task after goal systems handles each task and the processing is caused to be tied
The reason of fruit, wherein the processing result includes at least processing failure, it is of course also possible to include handling successfully.It is understood that
It is that after handling each task, goal systems by the processing result of each task and can cause at this goal systems
The reason of managing result feeds back to the server, and server can record these processing results and reason to the task state
In record sheet.
It is understood that by the task state record table, when the processing knot for needing to inquire some task
When fruit or failure cause, the huge system log of inquiry data volume is no longer needed to, it can be directly in the task state recording
It is inquired in table, search efficiency is higher and takes up less resources.
Server checks the task of processing failure in the task state record table by the way of automatic regular polling,
Realize which task of regular check needs to compensate processing.
102, the mission failure of each target operation task and each target operation task processing failure that are polled to is obtained
Reason;
In the present embodiment, the task that step 101 is polled to is denoted as target operation task, appoints being polled to target operation
After business, it is also necessary to obtain the mission failure reason of each target operation task processing failure together.
103, it detects whether each mission failure reason has been eliminated, and determines the target operation for having eliminated mission failure reason
Task;
It is understood that some task processing failure causes its mistake at this time when goal systems handles task
The reason of losing may have been eliminated later.For example, when the reason of some task processing failure is the processing task,
The goal systems is carrying out version updating.Come over a period of time, after the completion of goal systems version updating, the reason is naturally also
It eliminates the need for.Therefore, after getting mission failure reason, it can detecte whether each mission failure reason has been eliminated, and
And determine to have eliminated the target operation task of mission failure reason.
It should be noted that executing step 103 detects whether each mission failure reason has been eliminated, can specifically include:
The source square cards for learning characters section in each mission failure reason is extracted, the source square cards for learning characters section characterizes the mistake for leading to task processing failure
The source side of information;The mailing address of each source side is obtained according to each source square cards for learning characters section extracted;For each
The mailing address of mission failure reason, the corresponding source side of Xiang Suoshu mission failure reason sends feedback request, so that described next
Source root feeds back the information whether eliminated about the mission failure reason according to the feedback request;If receiving the source
The information eliminated about the mission failure reason just fed back, it is determined that the mission failure reason has been eliminated;If receiving
The information that do not eliminated about the mission failure reason fed back to the source side, it is determined that the mission failure reason does not disappear
It removes.
It is understood that therefrom having eliminated for the task can be lost after determining that some mission failure reason has been eliminated
The corresponding target operation task of reason is lost to determine.For example, it is assumed that the reason of task A processing failure is to handle the work
When task, which is carrying out version updating, and after a period of time, server can send feedback to the goal systems and ask
It asks, is finished if the goal systems has updated, the feedback request can be responded and update is completed in the tell the server goal systems,
Reason has been eliminated.To which server can determine that the mission failure reason of task A has been eliminated, and the work is appointed
Business A is determined as target operation task.
Further, when whether each mission failure reason of detection has been eliminated, in addition to detecting to have eliminated mission failure
Other than the target operation task of reason, in general, the target operation task for not eliminating mission failure reason also can detecte out,
For these target operation tasks, the reason of this method first eliminates its processing failure, it then re-execute the steps the target operation
Task, or handled when waiting automatic regular polling next time.Specifically, as shown in figure 3, this method can also include:
201, for the target operation task for not eliminating mission failure reason detected, according to default reason elimination pair
It should be related to and determine that the elimination for eliminating the mission failure reason operates, the reason eliminates corresponding relationship and has recorded elimination behaviour
Make and corresponding relationship the reason of task processing failure;
202, the elimination operation determined is executed, the goal systems is then controlled and re-executes the elimination operation correspondence
Target operation task, alternatively, waiting poll next time.
For step 201, for not eliminating the target operation task of mission failure reason, server can be according to preset
Reason eliminates corresponding relationship and determines that the elimination for eliminating the mission failure reason operates.Wherein, which eliminates corresponding close
System, which has recorded, eliminates operation and corresponding relationship the reason of task processing failure.It is understood that reason elimination pair
It should be related to that the administrator for being equivalent to server is directed to various the reason of being likely to occur in advance and sets corresponding processing scheme, service
Device realizes these processing schemes by executing elimination operation.Such as, it is assumed that some leads to the reason of task processing failure
It is " temporary password mistake ", corresponding elimination operation can be with specifically: server reacquires temporary password, this is interim
Password is supplied to goal systems and is verified, and after verifying, then eliminates and operates successfully namely the reason has been eliminated.
For step 202, it is known that, server can execute elimination operation after determining to eliminate operation, not disappear at this
Except mission failure reason target operation task the reason of be eliminated after, server can execute following step 104, re-execute
The target operation task;Alternatively, automatic regular polling next time can be waited, it is known that, in automatic regular polling next time, the target operation
Task will be confirmed as having eliminated the target operation task of mission failure reason.
Further, in practical application scene, the mission failure reason of task processing failure is caused to common are
Two kinds, the affiliated party's system failure and goal systems respectively docked with goal systems are just in version updating.Therefore, for this two
Kind reason, this method propose solution in detail below respectively:
When the mission failure reason is the affiliated party's system failure docked with the goal systems, as shown in figure 4, step
Rapid 202 can specifically include:
301, heartbeat detection is carried out to the association method, system;
If 302, receiving the response message for being directed to heartbeat detection from the association method, system, it is determined that the task is lost
Reason is lost to have eliminated.
For step 301, it is to be understood that when affiliated party's system failure, server persistently can carry out the heart to it
Detection is jumped, so that after association method, system restores, server can receive the response message of other side's feedback at the first time.
For step 302, if server receives the response message for being directed to heartbeat detection from the association method, system,
Then illustrate that the association method, system has restored, the mission failure reason for being equivalent to target operation task has been eliminated, therefore can be true
The fixed mission failure reason has been eliminated.
When the mission failure reason is the goal systems just in version updating, as shown in figure 5, step 202 is specific
Include:
401, detect whether the goal systems is completed version updating;
If 402, version updating is completed in the goal systems, it is determined that the mission failure reason has been eliminated.
For step 401 and 402, when the mission failure reason is the goal systems just in version updating, service
Device can detecte whether the goal systems is completed version updating, if goal systems is completed version updating, server can be with
The response message for receiving goal systems feedback, so that it is determined that the mission failure reason has been eliminated.
104, it controls the goal systems and re-executes the target operation task determined.
After determining that the mission failure reason of some or certain target operation tasks has been eliminated, server can control described
Goal systems re-executes these target operation tasks, and in general, after eliminating the reason of processing failure, these target operations are appointed
Business can smoothly execute completion.It is understood that after the completion of the processing of these target operation tasks, task state note
The processing result of these target operation tasks of record table record is also correspondingly revised as handling successfully.
It needs to illustrate, server can be directly used when re-executing the target operation task determined
The mode of the normal handling target operation task handle again to the target operation task.Wherein, server process
The normal handling mode of task specifically may be set according to actual conditions, for example, execution " counting daily customer flow "
Task when, server can detecte the traffic log of system, and from extracted in the traffic log user name, on spread
The information such as amount, downloading flow are simultaneously arranged, and are lost when if executing the task for being somebody's turn to do " counting daily customer flow " at that time
It loses, after failure cause is eliminated, when server executes the task for being somebody's turn to do " counting daily customer flow " again, can also use
Same mode.In this regard, the present embodiment is not especially limited.
In the present embodiment, in order to avoid consuming excessively for system resource, and in view of having many work in goal systems
Task is the task that historical accumulation gets off, these tasks are difficult to complete or no longer need to due to various
It completes, therefore, server can also set compensation deals model before control goal systems compensates processing to task
It encloses, the task for falling into compensation deals range just needs to compensate processing.For example, server can set the compensation deals
Range be processing failure after in 2 days, and/or daily compensation 2 times, that is to say, that the time gap current system of processing failure
Task of the time no more than 2 days is just included in the range re-executed, and carries out weight to these tasks in goal systems
When new execution, these tasks are only re-executed daily 2 times.Further, aiming at the problem that compensation deals range, this implementation
Example is in order to enable compensation deals range is more reasonable, and the compensation deals range of each target operation task is according to its mission failure original
Because of determination.Specifically, as shown in fig. 6, before step 104, this method can also include:
501, it is determined according to the time and present system time that the mission failure reason eliminated occurs for the first time pending
Time interval;
502, the record time that processing failure is rejected from the target operation task for eliminated mission failure reason does not fall within
The task of the time interval obtains the new target operation task determined.
For step 501, can be determined according to the time that the mission failure reason eliminated occurs for the first time pending
Time interval, which is exactly above-mentioned described compensation deals range, namely falls into the work of the time interval
The target operation task that step 104 needs to re-execute is only as task.
Further, as shown in fig. 7, step 501 can specifically include following steps 601-604:
601, the task state record table is inquired, it is former to obtain processing failure in the task state record table
Because of each task of the mission failure reason eliminated;
602, the task processing time of each task inquired is obtained;
603, the time earliest in the task processing time is determined as the mission failure reason eliminated to go out for the first time
The existing time;
604, true as interval limit value, present system time as section upper limit value using the time of first time appearance
Fixed pending time interval.
The task is obtained firstly, server can inquire the task state record table for step 601
Processing failure reason is each task of the mission failure reason eliminated in state record table.It is understood that
It is that for the same mission failure reason, it is multiple that it causes the task of processing failure often to have, in order to determine this
The time that mission failure reason starts, can handle the time by the task of first job task caused by it determine, because
This, can inquire these first leads to the task of processing failure due to the mission failure.
For step 602, lead to the work of processing failure inquiring these due to the mission failure eliminated
After making task, the task of these available tasks of server handles the time.
For step 603, it can be seen from the above, the time earliest in these tasks processing time can consider that this has disappeared
The time that the mission failure reason removed occurs for the first time.
It can be with institute after the time that the mission failure reason for determining to have eliminated occurs for the first time for step 604
The time for stating appearance for the first time determines pending time zone as section upper limit value as interval limit value, present system time
Between.For example, it is assumed that the time occurred for the first time is September 2nd, present system time is September 4th, then can determine that this is pending
Time interval be September 2 days to September 4th.
For step 502, it is to be understood that in the target operation task, it is understood that there may be partially beyond at compensation
The task of range is managed, as described above, these tasks are difficult to carry out or without executing, therefore can be appointed from having eliminated
These tasks are rejected in the target operation task of failure cause of being engaged in, that is, the record time for rejecting processing failure does not fall within
The task of the time interval, so that remaining target operation task is the new target operation task determined, this
A little new target operation tasks determined will be re-executed by goal systems.
Further, it is contemplated that the resource of goal systems is limited, and certain tasks possibly can not be performed success, if
Persistently these tasks are re-executed, will greatly waste the resource of goal systems.Therefore, in the present embodiment, for every
The number that re-executes of a task has restriction, when it is more than some threshold value, then it is assumed that the task can not be automatic
Completion is executed, the means for needing to be added manual intervention are handled.Specifically, as shown in figure 8, in the present embodiment, step is being executed
After rapid 104, this method can also include:
701, the processing that the goal systems re-executes the target operation task after the target operation task is obtained
As a result;
702, the number that re-executes for adding up the target operation task adds 1;
If the processing result for 703, re-executing the rear target operation task is processing failure, and it is super to re-execute number
Preset threshold is crossed, then alert.
For step 701, it is known that, after goal systems re-executes the target operation task, goal systems can be to
The processing result of the server feedback target operation task.
For step 702, since step 104 has re-executed the primary target operation task, which appoints
Business re-executes number accumulation plus 1.
For step 703, if the processing result for re-executing the rear target operation task is processing failure and again
Executing number is more than preset threshold, then representing the target operation task, this re-executes processing failure, and the target operation is appointed
It is excessive that business re-executes number, it is therefore contemplated that the target operation task can not be processed automatically success, server can be with
Alert.It, can be taking human as the processing target operation task, the present embodiment pair after designated person receives the warning message
This is without limitation.
In the embodiment of the present invention, firstly, in automatic regular polling task state record table processing failure task, institute
Task state record table is stated for recording the place of each task after goal systems handles each task
Reason result and the reason of leading to the processing result, the processing result includes processing failure;Then, obtain be polled to it is each
The mission failure reason of target operation task and each target operation task processing failure;Then, it is former to detect each mission failure
Because whether having eliminated, and determine the target operation task for having eliminated mission failure reason;Finally, controlling the goal systems again
Execute the target operation task determined.As it can be seen that the present invention is by task state record table without checking system log i.e.
The task of processing failure can be got, the workload for checking system log is reduced;In addition, it is not necessarily to manual intervention, it can be right
The task of processing failure re-executes, and improves the treatment effeciency to the task of processing failure, reduces costs.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
In one embodiment, a kind of task compensation deals device is provided, the task compensation deals device with it is upper
Task compensation deals method in embodiment is stated to correspond.As shown in figure 9, the task compensation deals device includes fixed
When poller module 801, task obtain module 802, task determining module 803 and re-execute module 804.Each function
Detailed description are as follows for module:
Automatic regular polling module 801, for the task of processing failure in automatic regular polling task state record table, institute
Task state record table is stated for recording the place of each task after goal systems handles each task
Reason result and the reason of leading to the processing result, the processing result includes processing failure;
Task obtains module 802, appoints for obtaining each target operation task being polled to and each target operation
The mission failure reason for processing failure of being engaged in;
Task determining module 803, the feedback information detection for the source side according to each mission failure reason are each
Whether a mission failure reason has been eliminated, and determines the target operation task for having eliminated mission failure reason, the feedback information
Refer to the information of source side's feedback whether eliminated about mission failure reason, the source side of the mission failure reason is by institute
It states to extract in the field of mission failure reason and obtain;
Module 804 is re-executed, re-executes the target operation task determined for controlling the goal systems.
Further, the task compensation deals device can also include:
Time interval determining module, time and current system for being occurred for the first time according to the mission failure reason eliminated
The system time determines pending time interval;
Task rejects module, for rejecting processing failure from the target operation task for having eliminated mission failure reason
The record time do not fall within the task of the time interval, obtain the new target operation task determined.
Further, the time interval determining module may include:
Record sheet query unit obtains the task state note for inquiring the task state record table
Processing failure reason is each task of the mission failure reason eliminated in record table;
Time acquisition unit is handled, the task for obtaining each task inquired handles the time;
Time determination unit is first appeared, for the task to be handled what earliest time in the time was determined as having eliminated
The time that mission failure reason occurs for the first time;
Interval determination unit, for making using the time that the first time occurs as interval limit value, present system time
Pending time interval is determined for section upper limit value.
Further, the task compensation deals device can also include:
Operation determining module is eliminated, for the target operation task for not eliminating mission failure reason for detecting, root
Corresponding relationship, which is eliminated, according to default reason determines that the elimination for eliminating the mission failure reason operates, the reason elimination pair
Relation record is answered to eliminate operation and corresponding relationship the reason of task processing failure;
Operation executing module is eliminated, for executing the elimination determined operation, the goal systems is then controlled and holds again
The row elimination operates corresponding target operation task, alternatively, waiting poll next time.
Further, the task compensation deals device can also include:
Processing result obtains module, re-executes the mesh after the target operation task for obtaining the goal systems
Mark the processing result of task;
Number accumulation module is executed, the number that re-executes for adding up the target operation task adds 1;
Alarm module, if the processing result for re-executing the rear target operation task is processing failure, and again
Executing number is more than preset threshold, then alert.
Specific restriction about task compensation deals device may refer to above for task compensation deals
The restriction of method, details are not described herein.Modules in above-mentioned task compensation deals device can be fully or partially through
Software, hardware and combinations thereof are realized.Above-mentioned each module can be embedded in the form of hardware or independently of the place in computer equipment
It manages in device, can also be stored in a software form in the memory in computer equipment, in order to which processor calls execution or more
The corresponding operation of modules.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 10.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment is for storing the data being related in task compensation deals method.The network of the computer equipment connects
Mouth with external terminal by network connection for being communicated.To realize that a kind of work is appointed when the computer program is executed by processor
Business compensation deals method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor realize task in above-described embodiment when executing computer program
The step of compensation deals method, such as step 101 shown in Fig. 2 is to step 104.Alternatively, when processor executes computer program
Realize above-described embodiment in task compensation deals device each module/unit function, such as module 801 shown in Fig. 9 to
The function of module 804.To avoid repeating, which is not described herein again.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program realizes the step of task compensation deals method in above-described embodiment when being executed by processor, such as shown in Fig. 2
Step 101 is to step 104.Alternatively, being realized when computer program is executed by processor in above-described embodiment at task compensation
The function of each module/unit of device, such as module 801 shown in Fig. 9 are managed to the function of module 804.To avoid repeating, here not
It repeats again.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of task compensation deals method characterized by comprising
The task of processing failure in automatic regular polling task state record table, the task state record table are used for
The processing result of each task is recorded after goal systems handles each task and leads to the processing result
The reason of, the processing result includes processing failure;
Obtain the mission failure reason of each target operation task and each target operation task processing failure that are polled to;
Whether eliminated according to each mission failure reason of the feedback information detection of the source side of each mission failure reason, and really
The fixed target operation task for having eliminated mission failure reason, the feedback information refer to the former about mission failure of source side's feedback
Because of the information whether eliminated, the source side of the mission failure reason extracts in the field by the mission failure reason
It arrives;
It controls the goal systems and re-executes the target operation task determined.
2. task compensation deals method according to claim 1, which is characterized in that controlling the goal systems weight
Before newly executing the target operation task determined, further includes:
Pending time zone is determined according to the time and present system time that the mission failure reason eliminated occurs for the first time
Between;
The record time that processing failure is rejected from the target operation task for eliminated mission failure reason does not fall within the time
The task in section obtains the new target operation task determined.
3. task compensation deals method according to claim 2, which is characterized in that the task that the basis has been eliminated
The time and present system time that failure cause occurs for the first time determine that pending time interval includes:
The task state record table is inquired, it is described for obtaining processing failure reason in the task state record table
The each task for the mission failure reason eliminated;
Obtain the task processing time of each task inquired;
The task is handled into the time that the mission failure reason that the time earliest in the time is determined as having eliminated occurs for the first time;
The time occurred using the first time determines pending as interval limit value, present system time as section upper limit value
Time interval.
4. task compensation deals method according to claim 1, which is characterized in that the task compensation deals
Method further include:
For the target operation task for not eliminating mission failure reason detected, it is true that corresponding relationship is eliminated according to default reason
The fixed elimination for eliminating the mission failure reason operates, and the reason eliminates corresponding relationship and has recorded elimination operation and work
The corresponding relationship of the reason of task processing failure;
The elimination operation determined is executed, the goal systems is then controlled and re-executes the corresponding target work of the elimination operation
Make task, alternatively, waiting poll next time.
5. task compensation deals method according to any one of claim 1 to 4, which is characterized in that in control institute
It states after goal systems re-executes the target operation task determined, further includes:
Obtain the processing result that the goal systems re-executes the target operation task after the target operation task;
The number that re-executes for adding up the target operation task adds 1;
If the processing result for re-executing the rear target operation task is processing failure, and re-executing number is more than default threshold
It is worth, then alert.
6. a kind of task compensation deals device characterized by comprising
Automatic regular polling module, for the task of processing failure in automatic regular polling task state record table, the work
Task status record sheet is used to record the processing result of each task after goal systems handles each task
The reason of with the processing result is caused, the processing result include processing failure;
Task obtains module, loses for obtaining each target operation task being polled to and the processing of each target operation task
The mission failure reason lost;
Task determining module, each task of feedback information detection for the source side according to each mission failure reason are lost
It loses whether reason has been eliminated, and determines the target operation task for having eliminated mission failure reason, the feedback information refers to source
The source side of the information whether eliminated about mission failure reason just fed back, the mission failure reason is lost by the task
It loses to extract in the field of reason and obtain;
Module is re-executed, re-executes the target operation task determined for controlling the goal systems.
7. task compensation deals device according to claim 6, which is characterized in that the task compensation deals
Device further include:
When time interval determining module, time for being occurred for the first time according to the mission failure reason eliminated and current system
Between determine pending time interval;
Task rejects module, for rejecting the note of processing failure from the target operation task for eliminated mission failure reason
The record time does not fall within the task of the time interval, obtains the new target operation task determined.
8. task compensation deals device according to claim 7, which is characterized in that the time interval determining module
Include:
Record sheet query unit obtains the task state record table for inquiring the task state record table
Middle processing failure reason is each task of the mission failure reason eliminated;
Time acquisition unit is handled, the task for obtaining each task inquired handles the time;
Time determination unit is first appeared, for the time earliest in the task processing time to be determined as having eliminated for task
The time that failure cause occurs for the first time;
Interval determination unit, for using the time that the first time occurs as interval limit value, present system time as area
Between upper limit value determine pending time interval.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor
The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to
Described in any one of 5 the step of task compensation deals method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realization task compensation deals as described in any one of claims 1 to 5 when the computer program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811208031.0A CN109542591A (en) | 2018-10-17 | 2018-10-17 | Task compensation deals method, apparatus, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811208031.0A CN109542591A (en) | 2018-10-17 | 2018-10-17 | Task compensation deals method, apparatus, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109542591A true CN109542591A (en) | 2019-03-29 |
Family
ID=65844341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811208031.0A Pending CN109542591A (en) | 2018-10-17 | 2018-10-17 | Task compensation deals method, apparatus, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109542591A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110096436A (en) * | 2019-04-12 | 2019-08-06 | 深圳壹账通智能科技有限公司 | Test method, device, medium and equipment based on data-pushing compensation function |
CN110688206A (en) * | 2019-09-05 | 2020-01-14 | 平安科技(深圳)有限公司 | Timing task scheduling method and device, computer equipment and storage medium |
CN110716943A (en) * | 2019-09-06 | 2020-01-21 | 中国平安财产保险股份有限公司 | Missing data additional recording method and device, computer equipment and storage medium |
CN111818178A (en) * | 2020-07-28 | 2020-10-23 | 南方电网数字电网研究院有限公司 | Data acquisition method and device, computer equipment and storage medium |
CN113421120A (en) * | 2021-06-24 | 2021-09-21 | 广州欢网科技有限责任公司 | Android system-based method and device for secondary display after advertisement display failure |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484167A (en) * | 2014-12-05 | 2015-04-01 | 广州华多网络科技有限公司 | Task processing method and device |
CN105553760A (en) * | 2015-12-11 | 2016-05-04 | 中国科学院信息工程研究所 | Heartbeat-based software module fault processing method and system |
CN105893225A (en) * | 2015-08-25 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Automatic error processing method and device |
CN107707392A (en) * | 2017-09-26 | 2018-02-16 | 厦门集微科技有限公司 | Passage restorative procedure and device, terminal |
CN107797896A (en) * | 2017-06-16 | 2018-03-13 | 平安科技(深圳)有限公司 | A kind of data on flows self- recoverage processing method and server |
CN107908487A (en) * | 2017-11-08 | 2018-04-13 | 中国平安人寿保险股份有限公司 | Task control management method, device, equipment and computer-readable recording medium |
-
2018
- 2018-10-17 CN CN201811208031.0A patent/CN109542591A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484167A (en) * | 2014-12-05 | 2015-04-01 | 广州华多网络科技有限公司 | Task processing method and device |
CN105893225A (en) * | 2015-08-25 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Automatic error processing method and device |
CN105553760A (en) * | 2015-12-11 | 2016-05-04 | 中国科学院信息工程研究所 | Heartbeat-based software module fault processing method and system |
CN107797896A (en) * | 2017-06-16 | 2018-03-13 | 平安科技(深圳)有限公司 | A kind of data on flows self- recoverage processing method and server |
CN107707392A (en) * | 2017-09-26 | 2018-02-16 | 厦门集微科技有限公司 | Passage restorative procedure and device, terminal |
CN107908487A (en) * | 2017-11-08 | 2018-04-13 | 中国平安人寿保险股份有限公司 | Task control management method, device, equipment and computer-readable recording medium |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110096436A (en) * | 2019-04-12 | 2019-08-06 | 深圳壹账通智能科技有限公司 | Test method, device, medium and equipment based on data-pushing compensation function |
CN110688206A (en) * | 2019-09-05 | 2020-01-14 | 平安科技(深圳)有限公司 | Timing task scheduling method and device, computer equipment and storage medium |
CN110716943A (en) * | 2019-09-06 | 2020-01-21 | 中国平安财产保险股份有限公司 | Missing data additional recording method and device, computer equipment and storage medium |
CN110716943B (en) * | 2019-09-06 | 2023-10-27 | 中国平安财产保险股份有限公司 | Missing data complement method, device, computer equipment and storage medium |
CN111818178A (en) * | 2020-07-28 | 2020-10-23 | 南方电网数字电网研究院有限公司 | Data acquisition method and device, computer equipment and storage medium |
CN113421120A (en) * | 2021-06-24 | 2021-09-21 | 广州欢网科技有限责任公司 | Android system-based method and device for secondary display after advertisement display failure |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109542591A (en) | Task compensation deals method, apparatus, computer equipment and storage medium | |
CN105245373B (en) | A kind of container cloud platform system is built and operation method | |
CN110069572A (en) | HIVE method for scheduling task, device, equipment and storage medium based on big data platform | |
CN107733726A (en) | A kind of processing method and processing device of service request | |
CN111143133B (en) | Virtual machine backup method and backup virtual machine recovery method | |
CN108536532A (en) | A kind of batch tasks processing method and system | |
CN109634730A (en) | Method for scheduling task, device, computer equipment and storage medium | |
CN110311831A (en) | System resource monitoring method and relevant device based on container cloud | |
CN110807064A (en) | Data recovery device in RAC distributed database cluster system | |
CN110751458B (en) | Business approval method, device and system | |
CN103957133A (en) | Log monitoring method and device | |
CN105989133A (en) | Transaction processing method and device | |
CN112182089A (en) | Report generation method, device and equipment based on data warehouse model | |
CN113626218A (en) | Data processing method, data processing device, storage medium and computer equipment | |
CN115017235B (en) | Data synchronization method, electronic device and storage medium | |
CN116881012A (en) | Container application vertical capacity expansion method, device, equipment and readable storage medium | |
CN111835583A (en) | Attribute inspection method and device for products of Internet of things and computer equipment | |
CN115641166A (en) | Virtual resource allocation strategy creation method and system | |
CN111556126B (en) | Model management method, system, computer device and storage medium | |
CN112134734B (en) | Configuration method and device of network equipment | |
CN109150986A (en) | Store access method, device and the storage medium of data under dual-active mode | |
CN113590308A (en) | Workflow processing method, device, equipment and medium for applying for cloud resources | |
US9092258B2 (en) | Task concurrency limiter | |
CN109034768B (en) | Financial reconciliation method, apparatus, computer device and storage medium | |
CN106708656B (en) | User operation recovery method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190329 |