CN110399241A - Task abnormity processing method, device, computer equipment and readable storage medium storing program for executing - Google Patents

Task abnormity processing method, device, computer equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110399241A
CN110399241A CN201910619716.2A CN201910619716A CN110399241A CN 110399241 A CN110399241 A CN 110399241A CN 201910619716 A CN201910619716 A CN 201910619716A CN 110399241 A CN110399241 A CN 110399241A
Authority
CN
China
Prior art keywords
task
subtask
exception
handle
processing method
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.)
Granted
Application number
CN201910619716.2A
Other languages
Chinese (zh)
Other versions
CN110399241B (en
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201910619716.2A priority Critical patent/CN110399241B/en
Publication of CN110399241A publication Critical patent/CN110399241A/en
Application granted granted Critical
Publication of CN110399241B publication Critical patent/CN110399241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0793Remedial or corrective actions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to a kind of task abnormity processing method, device, computer equipment and readable storage medium storing program for executing, this method comprises: obtaining Task-list;The Task-list includes multiple subtasks that overall task is decomposed, and the multiple subtask is arranged by task order;According to the task order of each subtask, each subtask is executed, if currently performed subtask has exception, judges the Exception Type of the subtask;The Exception Type includes that can handle abnormal and can not handle exception;Using the corresponding processing method of the Exception Type, the exception of the subtask is handled.This method deletes compared to the data that all processing steps for being related to overall task in traditional technology generate or discards original overall task, improves the treatment effeciency to task abnormity.

Description

Task abnormity processing method, device, computer equipment and readable storage medium storing program for executing
Technical field
The present invention relates to mutli-system integration fields, set more particularly to a kind of task abnormity processing method, device, computer Standby and readable storage medium storing program for executing.
Background technique
When multiple systems are integrated, usually pass through the comprehensive wiring system and computer networking technology of structuring, Among each isolated system integration to the system for being mutually related, being uniformly coordinated.But multiple systems are when integrated, can be due to The influence for the factors such as system loading is excessively high, network and external system are unstable, if so that during integrated a certain task It goes wrong, it will lead to follow-up work all failures, be unable to complete the integrated of multiple systems.
In traditional technology, when multiple system integrations overall task when something goes wrong, related to by manually deleting overall task And the data that generate of all processing steps, complete the integrated of multiple systems again, alternatively, discard original overall task, weight Newly complete the integrated of multiple systems.
However, traditional processing method to task abnormity in mutli-system integration, has that treatment effeciency is lower.
Summary of the invention
Based on this, it is necessary to which, for traditional processing method to task abnormity in mutli-system integration, there are treatment effeciencies Lower problem provides a kind of task abnormity processing method, device, computer equipment and readable storage medium storing program for executing.
In a first aspect, the embodiment of the present invention provides a kind of task abnormity processing method, which comprises
Obtain Task-list;The Task-list includes multiple subtasks that overall task is decomposed, the multiple son Task is arranged by task order;
According to the task order of each subtask, each subtask is executed, if there are different for currently performed subtask Often, then judge the Exception Type of the subtask;The Exception Type includes that can handle abnormal and can not handle exception;
Using the corresponding processing method of the Exception Type, the exception of the subtask is handled.
It is described using the corresponding processing method of the Exception Type in one of the embodiments, to the subtask Exception is handled, comprising:
If the Exception Type is that can handle exception, exception pass corresponding with processing method is handled according to preset It is that can handle abnormal corresponding processing method described in determination, handles abnormal handle to described;It is described to handle abnormal packet Include network interruption, data formatting error and the Logic of Tasks mistake.
If the Exception Type is that can handle exception in one of the embodiments, handled according to preset The abnormal corresponding relationship with processing method, determine described in can handle abnormal corresponding processing method, to it is described handle it is abnormal into After row processing, the method also includes:
Judge the subtask with the presence or absence of postposition task;
If so, to it is described handle abnormal handle after, execute the postposition task.
It is described using the corresponding processing method of the Exception Type in one of the embodiments, to the subtask Exception is handled, comprising:
If the Exception Type is that can not handle exception, records the exception and report the exception, and/or, it deletes Data caused by the subtask.
If the Exception Type is that can not handle exception in one of the embodiments, the exception is recorded simultaneously The exception is reported, and/or, after deleting data caused by the subtask, the method also includes:
According to the task order of each subtask, each subtask is re-executed.
The acquisition Task-list in one of the embodiments, comprising:
Receive the mutli-system integration request of user's input;
According to the corresponding relationship between preset integrated request and service logic, determine that the mutli-system integration request corresponds to Service logic;
The multiple subtask is generated according to the service logic, obtains the Task-list.
Each subtask includes: task execution parameter, task trigger action, task execution in one of the embodiments, As a result, task execution information and task generate data;The task execution parameter includes that is produced from a upper subtask for current subtask The raw preset task execution parameter of task execution parameter and the current subtask;The task execution information includes executing institute State the exception information that current subtask generates.
Second aspect, the embodiment of the present invention provide a kind of task abnormity processing unit, and described device includes:
Module is obtained, for obtaining Task-list;The Task-list includes multiple sons times that overall task is decomposed Business, the multiple subtask are arranged by task order;
Execution module executes each subtask, if currently performed for the task order according to each subtask There is exception in subtask, then judge the Exception Type of the subtask;The Exception Type includes that can handle abnormal and can not locate Reason is abnormal;
Processing module, for using the corresponding processing method of the Exception Type, at the exception of the subtask Reason.
The third aspect, the embodiment of the present invention provide a kind of computer equipment, including memory and processor, the memory It is stored with computer program, the processor performs the steps of when executing the computer program
Obtain Task-list;The Task-list includes multiple subtasks that overall task is decomposed, the multiple son Task is arranged by task order;
According to the task order of each subtask, each subtask is executed, if there are different for currently performed subtask Often, then judge the Exception Type of the subtask;The Exception Type includes that can handle abnormal and can not handle exception;
Using the corresponding processing method of the Exception Type, the exception of the subtask is handled.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, The computer program performs the steps of when being executed by processor
Obtain Task-list;The Task-list includes multiple subtasks that overall task is decomposed, the multiple son Task is arranged by task order;
According to the task order of each subtask, each subtask is executed, if there are different for currently performed subtask Often, then judge the Exception Type of the subtask;The Exception Type includes that can handle abnormal and can not handle exception;
Using the corresponding processing method of the Exception Type, the exception of the subtask is handled.
In task abnormity processing method provided by the above embodiment, device, computer equipment and readable storage medium storing program for executing, calculate Machine equipment obtains Task-list;Task-list includes multiple subtasks that overall task is decomposed, and task is pressed in multiple subtasks Sequence arranges;According to the task order of each subtask, each subtask is executed, if currently performed subtask has exception, is sentenced The Exception Type of disconnected subtask;Exception Type includes that can handle abnormal and can not handle exception;Using the corresponding place of Exception Type Reason method handles the exception of subtask, is in the method decomposed the overall task of mutli-system integration due to computer For multiple subtasks by task order arrangement, when executing each subtask according to the task order of each subtask, if currently holding There is exception in capable subtask, the type of subtask exception need to be only judged, using the corresponding processing method antithetical phrase of Exception Type The exception of task is handled, and the data generated compared to all processing steps for being related to overall task in traditional technology are deleted Original overall task is removed or discarded, the treatment effeciency to task abnormity is improved.
Detailed description of the invention
Fig. 1 is the schematic diagram of internal structure for the computer equipment that one embodiment provides;
Fig. 2 is the flow diagram for the task abnormity processing method that one embodiment provides;
Fig. 3 is the flow diagram for the task abnormity processing method that another embodiment provides;
Fig. 4 is the flow diagram for the task abnormity processing method that another embodiment provides;
Fig. 5 is the task abnormity processing device structure diagram that one embodiment provides;
Fig. 6 is the task abnormity processing device structure diagram that one embodiment provides.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Task abnormity processing method provided by the embodiments of the present application, can be adapted for computer equipment as shown in Figure 1.It should Computer equipment includes processor, the memory connected by system bus, is stored with computer program in the memory, handles The step of device can execute following methods embodiment when executing the computer program.Optionally, which can also wrap Include network interface, display screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability. The memory of the computer equipment includes non-volatile memory medium, built-in storage, which is stored with behaviour Make system and computer program.The built-in storage is the operation of the operating system and computer program in non-volatile memory medium Environment is provided.The network interface of the computer equipment is used to communicate with external terminal by network connection.Optionally, the calculating Machine equipment can be server, can be personal computer, can also be personal digital assistant, can also be that other terminals are set It is standby, such as tablet computer, mobile phone etc., it can also be cloud or remote server, the embodiment of the present application is to computer equipment Concrete form and without limitation.
It should be noted that task abnormity processing method provided by the embodiments of the present application, executing subject can be task Exception handling device, the task abnormity processing unit can be implemented as by way of software, hardware or software and hardware combining Computer equipment it is some or all of.In following methods embodiment, carried out by taking executing subject is computer equipment as an example Explanation.
How technical solution of the present invention and technical solution of the present invention are solved with specific embodiment below above-mentioned Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept Or process may repeat no more in certain embodiments.
Fig. 2 is the flow diagram for the task abnormity processing method that one embodiment provides.What is involved is meters for the present embodiment Calculate the specific implementation process that machine equipment handles the subtask that there is exception in Task-list.As shown in Fig. 2, this method can To include:
S201 obtains Task-list;Task-list includes multiple subtasks that overall task is decomposed, multiple subtasks It is arranged by task order.
Specifically, computer equipment when carrying out mutli-system integration, obtains Task-list first;Wherein, Task-list packet Multiple subtasks that overall task is decomposed are included, multiple subtasks are arranged by task order.Optionally, computer equipment can be with Task-list is obtained according to the task type of overall task, wherein overall task is to carry out integrated multiple systems to be completed Task.Optionally, overall task can be examination & approval task.
S202 executes each subtask according to the task order of each subtask, if there is exception in currently performed subtask, Then judge the Exception Type of subtask;Exception Type includes that can handle abnormal and can not handle exception.
Specifically, multiple subtasks are arranged by task order in above-mentioned Task-list, computer equipment is according to each subtask Task order, execute each subtask, if currently performed subtask exists abnormal, above-mentioned Task-list can not be continued to execute When, computer equipment then judges the Exception Type of the subtask.Wherein, the Exception Type of subtask include can handle it is abnormal and not Exception can be handled, the abnormal exception that can determine the reason of subtask exception for computer equipment and solved can be handled, no The abnormal reason that can not determine subtask exception for computer equipment can be handled, the exception of the subtask can not be solved.Optionally, During executing each subtask, each subtask can produce execution information, and computer equipment can be according to currently performed The execution information that subtask generates judges the Exception Type of the subtask.Optionally, the execution information that each subtask generates can be with It is error information etc..
S203 is handled the exception of subtask using the corresponding processing method of Exception Type.
Specifically, after computer equipment judges the Exception Type of above-mentioned subtask, using the exception class of above-mentioned subtask The corresponding processing method of type, handles the exception of the subtask.For example, if the Exception Type of currently performed subtask is When can handle abnormal, then computer equipment use can handle abnormal corresponding processing method, at the exception of the subtask Reason;If the Exception Type of currently performed subtask is when can not handle abnormal, computer equipment use can not handle exception Corresponding processing method can not handle abnormal handle to the subtask.
In the present embodiment, it is arranged in order to multiple by task order since computer decomposes the overall task of mutli-system integration The subtask of column, when executing each subtask according to the task order of each subtask, if currently performed subtask has exception, only The type that need to judge subtask exception is handled the exception of subtask using the corresponding processing method of Exception Type, phase Original entirety is deleted or discarded to the data generated than all processing steps for being related to overall task in traditional technology Task improves the treatment effeciency to task abnormity.
In the above-mentioned Exception Type for judging subtask, using the corresponding processing method of the Exception Type, to subtask In the scene that exception is handled, on the basis of the above embodiments, as an alternative embodiment, above-mentioned S203, packet Include: if Exception Type is that can handle exception, according to the preset corresponding relationship for handling exception and processing method, determination can be located The abnormal corresponding processing method of reason, is handled that can handle exception;Can handle abnormal includes network interruption, data formatting error And the Logic of Tasks mistake.
Specifically, being calculated if the above-mentioned currently performed Exception Type that there is abnormal subtask is that can handle exception Machine equipment determines that this can handle abnormal corresponding processing side according to the preset corresponding relationship for handling exception and processing method Method handles abnormal handle to the subtask.Wherein, can handle it is abnormal include network interruption, data formatting error and The Logic of Tasks mistake.Illustratively, if handling abnormal for currently performed subtask is network interruption, computer equipment can Detection network, which is detected, with timing then executes the subtask automatically when network recovery is normal.Optionally, computer equipment is to working as The subtask of preceding execution handle abnormal handled after, computer equipment will judge that currently performed subtask whether there is Postposition task, postposition task if it exists, then computer equipment will execute the postposition task of currently performed subtask.It is exemplary Ground, as included 9 subtasks arranged by task order in Task-list, if currently performed subtask is appointed for third height Business, exception can be handled by occurring when executing third subtask sentences after computer equipment can handle abnormal handle to this Disconnected there are postposition tasks for third subtask out, then the postposition in the Task-list is successively continued to execute since the 4th task Task.Optionally, if the above-mentioned currently performed Exception Type that there is abnormal subtask is that can not handle exception, computer Equipment records above-mentioned exception and reports the exception, and/or, delete data caused by currently performed subtask.Optionally, it counts Calculating machine equipment can not handle abnormal to currently performed, and recording exceptional simultaneously reports the exception, and/or, it deletes subtask and is produced After raw data, computer equipment will re-execute each son and appoint according to the task order of each subtask in above-mentioned Task-list Business.
In the present embodiment, computer equipment uses the corresponding processing method of Exception Type of currently performed subtask, The abnormal subtask of storage is handled, is generated compared to all processing steps for being related to overall task in traditional technology Data delete or discard original overall task, improve the treatment effeciency to task abnormity.
Fig. 3 is the flow diagram for the task abnormity processing method that another embodiment provides.The present embodiment what is involved is The specific implementation process of computer equipment acquisition Task-list.As shown in figure 3, on the basis of the above embodiments, as one kind Optional embodiment, above-mentioned S201, comprising:
S301 receives the mutli-system integration request of user's input.
Specifically, user requests to computer equipment input mutli-system integration first when user carries out mutli-system integration, Computer equipment receives the mutli-system integration request of user's input.Optionally, mutli-system integration request can appoint to complete examination & approval It is engaged in the request of corresponding mutli-system integration, or the corresponding mutli-system integration request of other tasks.
S302 determines mutli-system integration request pair according to the corresponding relationship between preset integrated request and service logic The service logic answered.
Specifically, different integrated requests is corresponding with different service logics, computer equipment can pre-establish integrated Corresponding relationship between request and service logic, after computer equipment receives the mutli-system integration request of user's input, according to Corresponding relationship between preset integrated request and service logic determines that above-mentioned mutli-system integration requests corresponding service logic.
S303 generates multiple subtasks according to service logic, obtains Task-list.
Appoint specifically, computer equipment generates multiple sons by task order arrangement according to the service logic of above-mentioned determination Business, obtains above-mentioned Task-list.Optionally, each subtask includes task execution parameter, task trigger action, task execution knot Fruit, task execution information and task generate data, wherein task execution parameter includes that a upper subtask for current subtask generates The preset task execution parameter of task execution parameter and current subtask;Task execution information includes executing current subtask to produce Raw exception information.
In the present embodiment, different mutli-system integrations request is corresponding with different service logics, such computer equipment The corresponding relationship between service logic corresponding with the request can be requested according to the mutli-system integration of the user's input received, It determines that the mutli-system integration requests corresponding service logic to obtain Task-list to generate multiple subtasks, passes through this method Computer equipment can be according between preset integrated request and service logic when receiving different mutli-system integration requests Corresponding relationship, promptly determine that the mutli-system integration received requests corresponding service logic, patrolled according to determining business It collects and generates multiple subtasks, obtain Task-list, and then improve computer equipment and obtain the efficiency of Task-list.
Fig. 4 is the flow diagram for the task abnormity processing method that another embodiment provides.The present embodiment is appointed with examining The implementation procedure of above-mentioned task abnormity processing method is illustrated for business, as shown in figure 4, computer equipment receives use first The mutli-system integration request of the completion examination & approval task of family input, according between the integrated request and the service logic of examination & approval task Corresponding relationship determines the corresponding service logic of examination & approval task, and generating according to the corresponding service logic of examination & approval task includes that modification is appointed Data of being engaged in (record approver etc.), logger task Status Change, log history task data, log history task status change note Record, delete task status, delete task, call external system review operation, external system review operation save first document with And multiple subtasks such as external system triggering workflow, wherein each subtask includes task execution parameter, task triggering behaviour Work, task action result, task execution information and task generate data, Task-list are obtained, then, according to above-mentioned each subtask Task order, above-mentioned each subtask is executed, if currently performed subtask, as the subtask of log history task data exists It is abnormal, then the Exception Type of the subtask is judged, if the Exception Type of the subtask is that can handle exception, such as data format mistake Accidentally, then according to the preset corresponding relationship for handling exception and processing method, determine that this can handle abnormal corresponding processing method, To can handle it is abnormal handle, later, computer equipment judges that there is also postpositions for the subtask of log history task data Task, then computer equipment successively executes log history number of tasks since the subtask of log history task status change record According to subtask postposition task;It, should if the subtask of log history task data has exception if currently performed subtask Exception Type is that can not handle exception, and computer equipment then records the exception and reports exception, and/or, it deletes subtask and is produced Raw data, later, computer equipment is according to the task order by each subtask in task chain, from modification task data (record Approver etc.) subtask start successively to execute each subtask in the Task-list.
It should be understood that although each step in the flow chart of Fig. 2-4 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-4 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
Fig. 5 is the task abnormity processing device structure diagram that one embodiment provides.As shown in figure 5, the device can be with It include: to obtain module 10, execution module 11 and processing module 12.
Specifically, module 10 is obtained, for obtaining Task-list;Task-list include overall task decompose it is multiple Subtask, multiple subtasks are arranged by task order;
Execution module 11 executes each subtask for the task order according to each subtask, if currently performed subtask There are exceptions, then judge the Exception Type of subtask;Exception Type includes that can handle abnormal and can not handle exception;
Processing module 12 is handled the exception of subtask for using the corresponding processing method of Exception Type.
Task abnormity processing unit provided in this embodiment, can execute above method embodiment, realization principle and skill Art effect is similar, and details are not described herein.
Fig. 6 is the task abnormity processing device structure diagram that one embodiment provides.On the basis of the above embodiments, Optionally, as shown in fig. 6, above-mentioned processing module 12 includes: first processing units 121.
Specifically, first processing units 121 are handled if being that can handle exception for Exception Type according to preset The abnormal corresponding relationship with processing method, determination can handle abnormal corresponding processing method, handle that can handle exception;It can Abnormal processing includes network interruption, data formatting error and the Logic of Tasks mistake.
Task abnormity processing unit provided in this embodiment, can execute above method embodiment, realization principle and skill Art effect is similar, and details are not described herein.
Continuing with referring to Fig. 6, on the basis of the above embodiments, optionally, above-mentioned first processing units 121 are also used to Judge subtask with the presence or absence of postposition task;If so, executing postposition task after to abnormal handle can be handled.
Task abnormity processing unit provided in this embodiment, can execute above method embodiment, realization principle and skill Art effect is similar, and details are not described herein.
Continuing with referring to Fig. 6, on the basis of the above embodiments, optionally, as shown in fig. 6, above-mentioned processing module 12 is wrapped It includes: the second processing unit 122.
Specifically, the second processing unit 122, if being that can not handle exception for Exception Type, recording exceptional is simultaneously reported It is abnormal, and/or, delete data caused by subtask.
Task abnormity processing unit provided in this embodiment, can execute above method embodiment, realization principle and skill Art effect is similar, and details are not described herein.
Continuing with referring to Fig. 6, on the basis of the above embodiments, optionally, above-mentioned the second processing unit 122 is also used to If Exception Type be can not handle exception, recording exceptional simultaneously reports exception, and/or, delete subtask caused by data it Afterwards, according to the task order of each subtask, each subtask is re-executed.
Task abnormity processing unit provided in this embodiment, can execute above method embodiment, realization principle and skill Art effect is similar, and details are not described herein.
Continuing with referring to Fig. 6, on the basis of the above embodiments, optionally, above-mentioned acquisition module 10 includes: receiving unit 101, determination unit 102 and generation unit 103.
Specifically, receiving unit 101, for receiving the mutli-system integration request of user's input;
Determination unit 102, for determining multisystem according to the corresponding relationship between preset integrated request and service logic It is integrated to request corresponding service logic;
Generation unit 103 obtains Task-list for generating multiple subtasks according to service logic.
Optionally, each subtask includes: task execution parameter, task trigger action, task action result, task execution Information and task generate data;Task execution parameter include current subtask a upper subtask generate task execution parameter and The preset task execution parameter in current subtask;Task execution information includes the exception information for executing current subtask and generating.
Task abnormity processing unit provided in this embodiment, can execute above method embodiment, realization principle and skill Art effect is similar, and details are not described herein.
Specific about task abnormity processing unit limits the limit that may refer to above for task abnormity processing method Fixed, details are not described herein.Modules in above-mentioned task abnormity processing unit can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor perform the steps of when executing computer program
Obtain Task-list;Task-list includes multiple subtasks that overall task is decomposed, and multiple subtasks, which are pressed, appoints Business sequence arranges;
According to the task order of each subtask, each subtask is executed, if currently performed subtask has exception, is judged The Exception Type of subtask;Exception Type includes that can handle abnormal and can not handle exception;
Using the corresponding processing method of Exception Type, the exception of subtask is handled.
Computer equipment provided by the above embodiment, implementing principle and technical effect are similar with above method embodiment, Details are not described herein.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Obtain Task-list;Task-list includes multiple subtasks that overall task is decomposed, and multiple subtasks, which are pressed, appoints Business sequence arranges;
According to the task order of each subtask, each subtask is executed, if currently performed subtask has exception, is judged The Exception Type of subtask;Exception Type includes that can handle abnormal and can not handle exception;
Using the corresponding processing method of Exception Type, the exception of subtask is handled.
Computer readable storage medium provided by the above embodiment, implementing principle and technical effect and the above method are implemented Example is similar, and details are not described herein.
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..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of task abnormity processing method, which is characterized in that the described method includes:
Obtain Task-list;The Task-list includes multiple subtasks that overall task is decomposed, the multiple subtask It is arranged by task order;
According to the task order of each subtask, each subtask is executed, if there is exception in currently performed subtask, Judge the Exception Type of the subtask;The Exception Type includes that can handle abnormal and can not handle exception;
Using the corresponding processing method of the Exception Type, the exception of the subtask is handled.
2. the method according to claim 1, wherein described using the corresponding processing method of the Exception Type, The exception of the subtask is handled, comprising:
If the Exception Type is that can handle exception, according to the preset corresponding relationship for handling exception and processing method, really Abnormal corresponding processing method can be handled described in fixed, handle abnormal handle to described;Described handle abnormal includes net Network interruption, data formatting error and the Logic of Tasks mistake.
3. if according to the method described in claim 2, it is characterized in that, the Exception Type is that can handle exception, root According to the preset corresponding relationship for handling exception and processing method, abnormal corresponding processing method can be handled described in determination, to institute It states after can handling abnormal handled, the method also includes:
Judge the subtask with the presence or absence of postposition task;
If so, to it is described handle abnormal handle after, execute the postposition task.
4. the method according to claim 1, wherein described using the corresponding processing method of the Exception Type, The exception of the subtask is handled, comprising:
If the Exception Type is that can not handle exception, records the exception and report the exception, and/or, described in deletion Data caused by subtask.
If 5. according to the method described in claim 4, it is characterized in that, the Exception Type be can not handle exception, It records the exception and reports the exception, and/or, after deleting data caused by the subtask, the method is also wrapped It includes:
According to the task order of each subtask, each subtask is re-executed.
6. the method according to claim 1, wherein the acquisition Task-list, comprising:
Receive the mutli-system integration request of user's input;
According to the corresponding relationship between preset integrated request and service logic, determine that the mutli-system integration requests corresponding industry Business logic;
The multiple subtask is generated according to the service logic, obtains the Task-list.
7. the method according to claim 1, wherein each subtask includes: task execution parameter, task triggering Operation, task action result, task execution information and task generate data;The task execution parameter includes current subtask The preset task execution parameter of task execution parameter and the current subtask that a upper subtask generates;The task execution letter Breath includes the exception information for executing the current subtask and generating.
8. a kind of task abnormity processing unit, which is characterized in that described device includes:
Module is obtained, for obtaining Task-list;The Task-list includes multiple subtasks that overall task is decomposed, institute Multiple subtasks are stated to arrange by task order;
Execution module executes each subtask for the task order according to each subtask, if currently performed son is appointed There is exception in business, then judge the Exception Type of the subtask;The Exception Type includes that can handle abnormal and can not handle different Often;
Processing module, for handling the exception of the subtask using the corresponding processing method of the Exception Type.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In when the processor executes the computer program the step of any one of realization claim 1-7 the method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of any one of claim 1-7 the method is realized when being executed by processor.
CN201910619716.2A 2019-07-10 2019-07-10 Task exception handling method, device, computer equipment and readable storage medium Active CN110399241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910619716.2A CN110399241B (en) 2019-07-10 2019-07-10 Task exception handling method, device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910619716.2A CN110399241B (en) 2019-07-10 2019-07-10 Task exception handling method, device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110399241A true CN110399241A (en) 2019-11-01
CN110399241B CN110399241B (en) 2023-12-12

Family

ID=68324333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910619716.2A Active CN110399241B (en) 2019-07-10 2019-07-10 Task exception handling method, device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110399241B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176935A (en) * 2019-12-17 2020-05-19 宁波市轨道交通集团有限公司建设分公司 Application-oriented service monitoring method of integrated monitoring system
CN111427676A (en) * 2020-03-20 2020-07-17 达而观信息科技(上海)有限公司 Robot process automation task processing method and device
CN112364079A (en) * 2020-11-12 2021-02-12 北京思特奇信息技术股份有限公司 Multi-service interaction exception handling method and system and electronic equipment
CN113360258A (en) * 2021-05-28 2021-09-07 北京百度网讯科技有限公司 Data processing method and device, electronic equipment and storage medium
CN113467908A (en) * 2021-06-23 2021-10-01 深圳市蘑菇财富技术有限公司 Task execution method and device, computer readable storage medium and terminal equipment
CN113485864A (en) * 2021-07-26 2021-10-08 北京达佳互联信息技术有限公司 Abnormality detection method, abnormality analysis method, abnormality detection apparatus, abnormality analysis apparatus, electronic device, and storage medium
CN113626234A (en) * 2021-06-30 2021-11-09 济南浪潮数据技术有限公司 Exception handling method and device, electronic equipment and readable storage medium
CN113672371A (en) * 2021-08-24 2021-11-19 广州华多网络科技有限公司 Task engine execution method and device, equipment and medium thereof
CN113626234B (en) * 2021-06-30 2024-07-02 济南浪潮数据技术有限公司 Abnormality processing method and device, electronic equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090094483A1 (en) * 2004-03-05 2009-04-09 International Business Machines Corporation Method of maintaining task sequence within a task domain across error recovery
CN103034554A (en) * 2012-12-30 2013-04-10 焦点科技股份有限公司 ETL (Extraction-Transformation-Loading) dispatching system and method for error-correction restarting and automatic-judgment starting
CN106603708A (en) * 2016-12-30 2017-04-26 中国建设银行股份有限公司 Business processing method and device
CN107578394A (en) * 2017-10-11 2018-01-12 上海联影医疗科技有限公司 A kind of restorative procedure and device of image reconstruction failure
CN108804215A (en) * 2018-06-12 2018-11-13 北京奇艺世纪科技有限公司 A kind of task processing method, device and electronic equipment
US10248487B1 (en) * 2015-01-27 2019-04-02 Violin Systems Llc Error recovery for multi-stage simultaneously running tasks
CN109558237A (en) * 2017-09-27 2019-04-02 北京国双科技有限公司 A kind of task status management method and device
CN109711802A (en) * 2018-12-14 2019-05-03 深圳壹账通智能科技有限公司 Item information processing method, device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090094483A1 (en) * 2004-03-05 2009-04-09 International Business Machines Corporation Method of maintaining task sequence within a task domain across error recovery
CN103034554A (en) * 2012-12-30 2013-04-10 焦点科技股份有限公司 ETL (Extraction-Transformation-Loading) dispatching system and method for error-correction restarting and automatic-judgment starting
US10248487B1 (en) * 2015-01-27 2019-04-02 Violin Systems Llc Error recovery for multi-stage simultaneously running tasks
CN106603708A (en) * 2016-12-30 2017-04-26 中国建设银行股份有限公司 Business processing method and device
CN109558237A (en) * 2017-09-27 2019-04-02 北京国双科技有限公司 A kind of task status management method and device
CN107578394A (en) * 2017-10-11 2018-01-12 上海联影医疗科技有限公司 A kind of restorative procedure and device of image reconstruction failure
CN108804215A (en) * 2018-06-12 2018-11-13 北京奇艺世纪科技有限公司 A kind of task processing method, device and electronic equipment
CN109711802A (en) * 2018-12-14 2019-05-03 深圳壹账通智能科技有限公司 Item information processing method, device, computer equipment and storage medium

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176935B (en) * 2019-12-17 2022-02-01 宁波市轨道交通集团有限公司建设分公司 Application-oriented service monitoring method of integrated monitoring system
CN111176935A (en) * 2019-12-17 2020-05-19 宁波市轨道交通集团有限公司建设分公司 Application-oriented service monitoring method of integrated monitoring system
CN111427676A (en) * 2020-03-20 2020-07-17 达而观信息科技(上海)有限公司 Robot process automation task processing method and device
CN111427676B (en) * 2020-03-20 2024-03-29 达观数据有限公司 Robot flow automatic task processing method and device
CN112364079A (en) * 2020-11-12 2021-02-12 北京思特奇信息技术股份有限公司 Multi-service interaction exception handling method and system and electronic equipment
CN113360258A (en) * 2021-05-28 2021-09-07 北京百度网讯科技有限公司 Data processing method and device, electronic equipment and storage medium
CN113360258B (en) * 2021-05-28 2024-07-09 北京百度网讯科技有限公司 Data processing method, device, electronic equipment and storage medium
CN113467908B (en) * 2021-06-23 2024-02-20 深圳市蘑菇财富技术有限公司 Task execution method, device, computer readable storage medium and terminal equipment
CN113467908A (en) * 2021-06-23 2021-10-01 深圳市蘑菇财富技术有限公司 Task execution method and device, computer readable storage medium and terminal equipment
CN113626234A (en) * 2021-06-30 2021-11-09 济南浪潮数据技术有限公司 Exception handling method and device, electronic equipment and readable storage medium
CN113626234B (en) * 2021-06-30 2024-07-02 济南浪潮数据技术有限公司 Abnormality processing method and device, electronic equipment and readable storage medium
CN113485864A (en) * 2021-07-26 2021-10-08 北京达佳互联信息技术有限公司 Abnormality detection method, abnormality analysis method, abnormality detection apparatus, abnormality analysis apparatus, electronic device, and storage medium
CN113485864B (en) * 2021-07-26 2024-05-14 北京达佳互联信息技术有限公司 Abnormality detection, abnormality analysis method, abnormality detection device, abnormality analysis device, electronic apparatus, and storage medium
CN113672371A (en) * 2021-08-24 2021-11-19 广州华多网络科技有限公司 Task engine execution method and device, equipment and medium thereof
CN113672371B (en) * 2021-08-24 2024-05-17 广州华多网络科技有限公司 Task engine execution method and device, equipment and medium thereof

Also Published As

Publication number Publication date
CN110399241B (en) 2023-12-12

Similar Documents

Publication Publication Date Title
CN110399241A (en) Task abnormity processing method, device, computer equipment and readable storage medium storing program for executing
US8443340B2 (en) Execution capture and replay based debugging
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
CN110286998B (en) Virtual machine graphical user interface validation and execution process recording method and device
CN110309109B (en) Data monitoring method, device, computer equipment and storage medium
CN110689232A (en) Workflow configuration optimization processing method and device and computer equipment
WO2021068348A1 (en) Task deployment method and system, and storage medium
CN104503912A (en) Monitoring method and device for service responding process
CN108446175A (en) Task processing method, device, computer equipment and storage medium
CN109408320A (en) Abnormality eliminating method, device, computer equipment and storage medium are developed in front end
CN109657475A (en) Code vulnerabilities check method, apparatus, equipment and storage medium
US20240168921A1 (en) File processing method, apparatus and device, and readable storage medium
CN110471838A (en) Method of calibration, device, computer equipment and the storage medium of test case
CN113377668A (en) Automatic testing method and device for service interface and computer equipment
US20130290938A1 (en) Testing applications
CN109408345A (en) Operate replay method, device, computer equipment and storage medium
CN110414790A (en) Determine the method, apparatus, equipment and storage medium of quality inspection effect
CN109992506A (en) Scheduling tests method, apparatus, computer equipment and storage medium
CN110908837B (en) Application program exception handling method and device, electronic equipment and storage medium
US9232420B1 (en) Automated network testing using in-progress call detail records
CN113377669A (en) Automatic testing method and device, computer equipment and storage medium
CN105893248A (en) Method and device for obtaining abnormal relevant information in terminal equipment
CN110837467B (en) Software testing method, device and system
CN107943682A (en) Submit the method and device of bug
CN108595327B (en) Method for executing script by application, application testing method, device and computer equipment

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
GR01 Patent grant
GR01 Patent grant