Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Exception handling method and device

A technology for exception handling and task processing, which is applied in the computer field and can solve problems such as cumbersome operations, reduced effectiveness of the message platform, and failure to send messages

Active Publication Date: 2016-04-20
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, with the existing technology, there may be abnormal situations in the process of sending messages on the message platform, such as the failure to call the message sending interface, resulting in the failure of message sending, or the failure to send the message to the corresponding message receiving object, etc.
Moreover, for the above-mentioned abnormal situation, the current commonly used processing method is not to deal with it, which will reduce the effectiveness of the message platform to send messages, or manually judge whether the abnormal situation needs to be re-executed, which will lead to cumbersome operations and manual judgment. The process will also waste a lot of time, or send all the messages directly without manual judgment, which will also lead to a long time-consuming

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Exception handling method and device
  • Exception handling method and device
  • Exception handling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0106] refer to figure 1 , which shows a flow chart of the steps of an embodiment of an exception handling method according to an embodiment of the present invention, which may specifically include the following steps:

[0107] Step S110, pre-associate the first state of the task to be processed with the execution method that triggers the first state.

[0108] In the embodiment of the present invention, different first states may be set in advance according to different processing stages of the task to be processed. Different first states can be triggered or transitioned by the process when the corresponding execution method is called. Wherein, the first state includes the current execution state of the task to be processed, such as a state to be executed, a state in progress, or a state completed.

[0109] In practical applications, there is a one-to-one correspondence between the first state and the execution method that triggers the first state. For example, the executio...

Embodiment 2

[0125] refer to figure 2 , which shows a flow chart of the steps of an embodiment of an exception handling method according to an embodiment of the present invention, which may specifically include the following steps:

[0126] Step S210, pre-corresponding the first state of the task to be processed with the execution method that triggers the first state; the task to be processed includes a sending task and a sending subtask of the sending task; the sending task includes at least one kind of information Type, platform identifier, sending time policy, service identifier and / or user range conditions, personalized information template; the first status includes to-be-executed status, executing status, completed status, stopped status and / or suspended status.

[0127] Before the user submits the sending task in the client, he will select parameter parameters such as the game platform and information type according to the requirements, and then click submit. The client can submit ...

Embodiment 3

[0241] refer to image 3 , which shows a structural block diagram of an embodiment of an exception handling device according to an embodiment of the present invention, which may specifically include the following modules:

[0242] The relationship correspondence module 310 is adapted to associate in advance the first state of the task to be processed with the execution method that triggers the first state.

[0243] The editing and recording module 320 is adapted to modify the first state of the task to be processed according to the corresponding relationship between the execution method called by each process and the first state during the execution of the task to be processed by each process, and record the The processing progress of pending tasks.

[0244] The reading module 330 is adapted to read the recorded first state of the pending task and the processing progress of the pending task when the process of processing a pending task is abnormal and restarts the process.

[...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an exception handling method, and relates to the technical field of computers. The exception handling method comprises that a first state of a waiting task is made to correspond to an execution method for triggering the first state in advance; when the waiting task is executed by each process, the first state of the waiting task is modified in dependence on the corresponding relation between the execution method called by each process and the first state, and the handling progress of the waiting task is recorded in corresponding state; when an exception occurs in a process for handling the waiting task, after the process is restarted, the recorded first state of the waiting task and the handling progress of the waiting task are read; the process is executed from the execution method for triggering the first state, and the waiting task is handled from the handling progress. The exception handling method is advantaged in that the validity of the message platform is improved, messages can be prevented from being sent repeatedly, and exceptions can be handled quickly.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an exception handling method and an exception handling device. Background technique [0002] With the development of computer technology and communication technology, more and more platforms or systems will use the message platform to send messages to achieve the purpose of increasing visits or enhancing communication. For example, game platforms use message platforms to send messages to game users to avoid user loss; shopping sites use message platforms to send messages to website registered users to increase user consumption, etc. [0003] However, with the existing technology, there may be abnormal situations in the process of sending messages by the message platform, such as the failure to call the message sending interface, resulting in the failure of message sending, or the failure to send the message to the corresponding message receiving object. Moreover, for the above...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/07H04L12/58
CPCG06F11/0715G06F11/0778H04L51/224
Inventor 孙小俊吕本伟
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products