CN105511975B - A kind of abnormality eliminating method and device - Google Patents

A kind of abnormality eliminating method and device Download PDF

Info

Publication number
CN105511975B
CN105511975B CN201510849673.9A CN201510849673A CN105511975B CN 105511975 B CN105511975 B CN 105511975B CN 201510849673 A CN201510849673 A CN 201510849673A CN 105511975 B CN105511975 B CN 105511975B
Authority
CN
China
Prior art keywords
state
task
transmission
sent
subtask
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.)
Active
Application number
CN201510849673.9A
Other languages
Chinese (zh)
Other versions
CN105511975A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510849673.9A priority Critical patent/CN105511975B/en
Publication of CN105511975A publication Critical patent/CN105511975A/en
Application granted granted Critical
Publication of CN105511975B publication Critical patent/CN105511975B/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/0706Error 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 the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0715Error 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 the processing taking place on a specific hardware platform or in a specific software environment in a system implementing multitasking
    • 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
    • G06F11/0778Dumping, i.e. gathering error/state information after a fault for later diagnosis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a kind of abnormality eliminating methods, are related to field of computer technology.The described method includes: the first state of waiting task is carried out with the execution method for triggering the first state in advance corresponding;During waiting task is executed by each process, the corresponding relationship of the execution method and first state called according to each process modifies the first state of waiting task, and the processing progress of the waiting task is recorded under corresponding state;When the process appearance exception for handling a waiting task, after restarting the process, the first state of the waiting task of record and the processing progress of waiting task are read;The process is executed since the execution method for triggering the first state, and the waiting task is started to process from the processing progress.The present invention improves message desk validity, avoids repeating to send message and the rapidly beneficial effect of processing abnormal conditions.

Description

A kind of abnormality eliminating method and device
Technical field
The present invention relates to field of computer technology, fill more particularly to a kind of abnormality eliminating method and a kind of abnormality processing It sets.
Background technique
With the development of computer technology and the communication technology, more and more platforms or system can be sent using message desk Message, to reach the purpose of increasing amount of access or enhancing communication.For example, gaming platform is sent out using message desk to game user Message is sent, to avoid customer churn;Shopping website sends message to website registration user using message desk, is disappeared with increasing user Take volume etc..
But with existing technology, it is possible that the case where message desk is abnormal during sending message, As recalls information transmission interface unsuccessfully causes message transmission failure or message to fail and be sent to corresponding message sink pair As situations such as.Moreover, currently used processing mode is to be not processed for above-mentioned abnormal conditions, then it is flat to reduce message Whether platform sends the validity of message, or need to re-execute by artificial judgment abnormal conditions, then will lead to it is cumbersome, And the process of artificial judgment can also waste more time, or directly repeat to send entire message without artificial judgment, together Sample, which will lead to, to be taken a long time.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the abnormality eliminating method and corresponding exception handling device of problem.
According to one aspect of the present invention, a kind of abnormality eliminating method is provided, comprising:
The first state of waiting task is carried out with the execution method for triggering the first state in advance corresponding;
Waiting task is executed by each process during, the execution method and first state called according to each process Corresponding relationship modifies the first state of waiting task, and the processing progress of the waiting task is recorded under corresponding state;
When the process appearance exception for handling a waiting task, after restarting the process, the waiting task of record is read First state and waiting task processing progress;
The process is executed since the execution method for triggering the first state, and from beginning from the processing progress Manage the waiting task.
Preferably, the waiting task includes transmission task and the transmission subtask for sending task;The transmission task Including at least one information type, platform identification;
The first state includes pending state, state and state is completed in execution.
Preferably, the execution method that is described during waiting task is executed by each process, being called according to each process The first state of waiting task is modified with the corresponding relationship of first state, and the waiting task is recorded under corresponding state Processing progress the step of include:
It receives the transmission task submitted by client and is stored in first task queue, and by the first shape of the transmission task State is updated to pending state;
Transmission task is extracted from first task queue by the first process, and the first state of the transmission task is updated For state in execution;
By platform identification of first process from according to the transmission task, the object to be sent for platform identification is called Interface is obtained, each object to be sent is obtained from corresponding platform;
It is based on obtaining each object to be sent from corresponding platform by the first process, the transmission task is split as at least Two transmission subtasks, and the transmission subtask is put into the second task queue;Wherein, the state in the execution of the task of transmission The processing progress of lower record transmission task, and the first state for sending subtask is updated to armed state;
It is extracted from second task queue by multiple consuming process and sends subtask, and transmission being extracted is appointed The first state of business is updated to state in execution;
Each consuming process calls transmission interface corresponding with information type, sends pending deliver letters to each object to be sent Breath;Wherein record sends the progress of subtask under state in the execution for sending subtask;It delivers letters sending the pending of subtask After breath is sent, the state for sending subtask is updated to state, and all transmissions of the transmission task is completed Task is all state is completed after, be updated to the state for the task that sends that state is completed.
Preferably, the transmission task further include: sending time strategy;
Further, described the step of extracting transmission task from first task queue by the first process, comprising:
The first task queue is scanned by the first process, extracts the transmission times that sending time strategy reaches preset condition Business.
Preferably, the transmission task further include: service identification and/or user scope condition;
Further, it in the platform identification by the first process from according to the transmission task, calls for platform identification Object acquisition interface to be sent, after the step of obtaining each object to be sent in corresponding platform, further includes:
From each object to be sent obtained in corresponding platform, screen object to be sent under service identification and/or Object to be sent within the user scope condition.
Preferably, the first state further includes halted state and/or halted state;
Further, the execution side that is described during waiting task is executed by each process, being called according to each process The corresponding relationship of method and first state modifies the first state of waiting task, and described to be processed is recorded under corresponding state The step of processing progress of business, further includes:
After receiving to the command for stopping of the task of transmission, it is updated to the first state of the transmission task to have stopped shape State;
And/or after receiving the pause instruction to the task of transmission, the first state of the transmission task is updated to temporarily Stop state.
Preferably, each consuming process calls transmission interface corresponding with information type, to each object transmission to be sent to When sending the step of information, further includes:
Whether the first state for judging transmission task belonging to the transmission subtask is halted state;
If the first state for sending transmission task belonging to subtask is halted state, stop from second The transmission subtask of the transmission task is obtained in business queue, to obtain the transmission subtask of other transmission tasks, and by institute The first state for stating transmission subtask is updated to halted state;
And/or judge whether the first state of transmission task belonging to the transmission subtask is paused state;
If the first state for sending transmission task belonging to subtask is paused state, suspend from second The transmission subtask of the transmission task is obtained in business queue, and the first state for sending subtask is updated to paused State.
Preferably, each consuming process calls transmission interface corresponding with information type, sends out to each object to be sent The step of sending information to be sent, comprising:
Each consuming process calls transmission corresponding with information type to connect in the case where being no more than scheduled transmission information rate Mouthful, message to be sent is sent to each object to be sent;The transmission information rate is delivered letters including pending in the at the appointed time period The transmission item number of breath.
Preferably, in the transmission task further include: customized information template;
Further, it in the platform identification by the first process from according to the transmission task, calls for platform identification Object acquisition interface to be sent, after the step of obtaining each object to be sent in corresponding platform, further includes:
Different objects to be sent is directed to by the first process, is each to be sent according to preset customized information template Object generates personalized information to be sent.
Preferably, described to be according to preset customized information template for different objects to be sent by the first process The step of each object to be sent generates personalized information to be sent, comprising:
For each object to be sent, the data of corresponding each critical field are obtained;
The data of each critical field are inserted in the corresponding critical field of customized information template;
Customized information is generated for each object to be sent.
Preferably, the data by each critical field are inserted in the corresponding critical field of customized information template Step, comprising:
By the corresponding user's appellation information of object to be sent, the appellation field in the customized information template is inserted;
By the personalized notifications information of object to be sent, the personalized notifications word in the customized information template is written Section.
Preferably, the information type includes: short message, and/or mail, and/or interior information of standing.
According to another aspect of the present invention, a kind of exception handling device is provided, comprising:
Relationship respective modules, suitable in advance by the execution side of the first state of waiting task and the triggering first state Method is corresponded to;
Reference record module is suitable for during waiting task is executed by each process, is held according to what each process was called The corresponding relationship of row method and first state modifies the first state of waiting task, and record is described wait locate under corresponding state The processing progress of reason task;
Read module after restarting the process, reads record suitable for there is exception when the process of one waiting task of processing Waiting task first state and waiting task processing progress;
Execution module again is executed since the execution method for triggering the first state suitable for the process, and from described The waiting task is started to process at processing progress.
Preferably, the waiting task includes transmission task and the transmission subtask for sending task;The transmission task Including at least one information type, platform identification;
The first state includes pending state, state and state is completed in execution.
Preferably, the reference record module, comprising:
Transmission task acquisition submodule, suitable for receiving the transmission task submitted by client and being stored in first task queue, And the first state of the transmission task is updated to pending state;
Transmission task extracting sub-module is suitable for extracting transmission task from first task queue by the first process, and by institute The first state for stating transmission task is updated to state in execution;
Object acquisition submodule to be sent is adjusted suitable for the platform identification by the first process from according to the transmission task With the object acquisition interface to be sent for platform identification, each object to be sent is obtained from corresponding platform;
Submodule is split, each object to be sent is obtained from corresponding platform suitable for being based on by the first process, by the hair It send task to be split as at least two transmission subtasks, and the transmission subtask is put into the second task queue;Wherein, it is sending The processing progress of transmission task is recorded in the execution of task under state;
Subtask extracting sub-module is sent, is suitable for being extracted transmission from second task queue by multiple consuming process Task, and the first state for the transmission subtask being extracted is updated to pending state;
Message sending submodule is suitable for each consuming process and calls corresponding with information type transmission interface, to each pending Object is sent to send information to be sent;Wherein record sends the progress of subtask under state in the execution for sending subtask;It is sending out After sending the information to be sent of subtask to be sent, the state for sending subtask is updated to state, and the hair is completed After sending all transmission subtasks of task are all state is completed, it is updated to the state for the task that sends that state is completed.
Preferably, the transmission task further include: sending time strategy;
Further, the transmission task extracting sub-module, comprising:
Transmission task screens submodule, is suitable for scanning the first task queue by the first process, extracts sending time plan Slightly reach the transmission task of preset condition.
Preferably, the transmission task further include: service identification and/or user scope condition;
Further, after object acquisition submodule to be sent, further includes:
Object to be sent screens submodule, suitable for screening industry from each object to be sent obtained in corresponding platform Object to be sent under business mark and/or the object to be sent within the user scope condition.
Preferably, the first state further includes halted state and/or halted state;
Further, the reference record module, further includes:
Halted state updates submodule, suitable for after receiving to the command for stopping of the task of transmission, described send is appointed The first state of business is updated to halted state;
And/or halted state updates submodule, it, will be described suitable for after receiving the pause instruction to the task of transmission The first state of transmission task is updated to halted state.
Preferably, message sending submodule, further includes:
Halted state judging submodule, suitable for judging that the first state of transmission task belonging to the transmission subtask is It is no for halted state;If the first state for sending transmission task belonging to subtask is halted state, enter Stop acquisition submodule;
And/or paused state judging submodule, suitable for judging first of transmission task belonging to the transmission subtask Whether state is paused state;If the first state for sending transmission task belonging to subtask is paused state, Then enter pause acquisition submodule;
Stop acquisition submodule, obtain the transmission subtask of the transmission task from the second task queue suitable for stopping, To obtain the transmission subtask of other transmission tasks, and it is updated to the first state for sending subtask to have stopped shape State;
Suspend acquisition submodule, suitable for suspending the transmission subtask for obtaining the transmission task from the second task queue, And the first state for sending subtask is updated to paused state.
Preferably, the message sends subtask, comprising:
Speed limit sending submodule is suitable for each consuming process in the case where being no more than scheduled transmission information rate, calls and believes The corresponding transmission interface of type is ceased, sends message to be sent to each object to be sent;The transmission information rate is included in specified The transmission item number of information to be sent in time cycle.
Preferably, in the transmission task further include: customized information template;
Further, after object acquisition submodule to be sent, further includes:
Customized information generates submodule, suitable for being directed to different objects to be sent by the first process, according to preset Property information template, personalized information to be sent is generated for each object to be sent.
Preferably, the customized information generates submodule, comprising:
Critical field acquisition submodule is suitable for being directed to each object to be sent, obtains the data of corresponding each critical field;
Critical field editor's submodule, it is corresponding suitable for the data of each critical field are inserted the customized information template In critical field;
Submodule is generated, each object to be sent is suitable for and generates customized information.
Preferably, the critical field editor submodule, comprising:
Appellation field editing submodule is suitable for the corresponding user's appellation information of object to be sent inserting the personalization Appellation field in information template;
Notification field editor's submodule, suitable for the personalized letter is written by the personalized notifications information of object to be sent Cease the personalized notifications field in template.
Preferably, the information type includes: short message, and/or mail, and/or interior information of standing.
According to another aspect of the present invention, a kind of abnormality processing equipment is provided, comprising:
Memory is loaded with a plurality of executable instruction;
Processor executes a plurality of executable instruction;The a plurality of instruction includes the method for executing following steps:
The first state of waiting task is carried out with the execution method for triggering the first state in advance corresponding;
Waiting task is executed by each process during, the execution method and first state called according to each process Corresponding relationship modifies the first state of waiting task, and the processing progress of the waiting task is recorded under corresponding state;
When the process appearance exception for handling a waiting task, after restarting the process, the waiting task of record is read First state and waiting task processing progress;
The process is executed since the execution method for triggering the first state, and from beginning from the processing progress Manage the waiting task.
The process that abnormality processing according to the present invention can use processing waiting task records waiting task in real time The processing progress of state and waiting task can then be remembered when the process appearance exception for handling a waiting task based on the process Since the data of record be restarted automatically process and continue to execute waiting task there is abnormal state and processing progress.By This, which is solved, is in the prior art not processed message desk unusual condition, reduces the validity that message desk sends message, or Whether person is to need to re-execute by artificial judgment abnormal conditions, then will lead to cumbersome and waste more time, either It directly repeats to send entire message without artificial judgment, also results in the problems such as taking a long time, it is flat to achieve raising message Platform validity avoids repeating to send message and the rapidly beneficial effect of processing abnormal conditions.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of step flow chart of abnormality eliminating method embodiment according to an embodiment of the invention;
Fig. 2 shows a kind of step flow charts of abnormality eliminating method embodiment according to an embodiment of the invention;
Fig. 3 shows a kind of structural block diagram of exception handling device embodiment according to an embodiment of the invention;
Fig. 4 shows a kind of structural block diagram of exception handling device embodiment according to an embodiment of the invention;
Fig. 5 shows a kind of structural block diagram of abnormality processing apparatus embodiments according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Embodiment one
Referring to Fig.1, a kind of step process of abnormality eliminating method embodiment according to an embodiment of the invention is shown Figure, can specifically include following steps:
Step S110 by the first state of waiting task and triggers the execution method of the first state and carries out pair in advance It answers.
In embodiments of the present invention, different first can be set in different processing stages previously according to waiting task State.Different first states can when calling corresponding execution method, triggering be converted in other words by process.Wherein, the first shape State includes the current execution state of waiting task, such as state or state is completed in pending state, execution.
It in practical applications, is one-to-one between first state and the execution method of the triggering first state.Example Such as, state is corresponding in triggering the execution method of state in executing and executing, i.e., the execution method may only trigger execution shape State makes waiting task switch to state in execution by current state.
For example according to the execution logic to waiting task, call the sequence of hair execution method are as follows: execute method A- and hold Row method B- executes method C- and executes method D- execution method E.
Wherein, method A is executed for pending state, executes method B for state in executing, it is corresponding to execute method E Completion status.
When process calls execution method A, pending state is set by the first state of waiting task.When process tune When with executing method B, the first state of waiting task is changed in execution.Process continues to execute, when process is called to holding When row method E, it is changed to the first state of waiting task that state is completed.
Step S120, during waiting task is executed by each process, according to each process call execution method with The first state of the corresponding relationship modification waiting task of first state, and the waiting task is recorded under corresponding state Processing progress.
In embodiments of the present invention, the implementation procedure of a waiting task can be responsible for by different processes, each process Different execution methods can be called, modifies the first state of waiting task, while can modify according to the executive condition of task The processing progress of currently pending task is recorded in the state of afterwards in real time.
For example, executing the transmission in scan task queue by the first process when the waiting task is transmission task When task, the first state for the task that sends is modified to carry out middle state, at this time when the first process tears task to be sent open Timesharing, can fractionation progress of the record to the transmission task under state in commission.
For example, by consuming process recalls information transmission interface, and being executed when the waiting task is to send subtask When transmission subtask sends message to each object to be sent, the first state of the transmission subtask is state in executing.It is executing During message transmission task, the implementation progress of the current task can be recorded in real time, for example which is sent to is to be sent right As.
In embodiments of the present invention, the state of waiting task and the note of processing progress are lost in order to avoid process collapse Waiting task mark, its current state, processing progress can be constantly updated to the designated position of disk, rather than stored by record In memory.
Step S130, when the process for handling a waiting task occur it is abnormal, after restarting the process, read record to The first state of processing task and the processing progress of waiting task.
When a process handles waiting task, it is possible that exception, such as process collapse etc. continue process can not The exception of execution, the embodiment of the present invention, which can restart, at this time there is abnormal process, after which restarts, can reload to be processed Task, and read the first state of the waiting task of record and the processing progress of waiting task.
Wherein, the first state for reading the waiting task of record refers to the waiting task recorded when occurring abnormal First state;The processing progress of waiting task refers to processing progress when recorded appearance is abnormal.
Step S140, the process are executed since the execution method for triggering the first state, and from it is described handle into The waiting task is started to process at degree.
The above-mentioned process restarted can again for waiting task assign record in first state, then from trigger this first The execution method of state starts, and re-calls corresponding execution method, and the waiting task is started to process from processing progress.
In embodiments of the present invention, using processing waiting task process record in real time waiting task state and to The processing progress of processing task, when there are abnormal, then to record based on process data in the process for handling a waiting task, It is restarted automatically process and continues to execute waiting task since there is abnormal state and processing progress.It is mentioned to realize High message desk validity avoids repeating to send message and the rapidly beneficial effect of processing abnormal conditions.
Embodiment two
Referring to Fig. 2, a kind of step process of abnormality eliminating method embodiment according to an embodiment of the invention is shown Figure, can specifically include following steps:
Step S210 by the first state of waiting task and triggers the execution method of the first state and carries out pair in advance It answers;The waiting task includes transmission task and the transmission subtask for sending task;The transmission task includes at least one Information type, platform identification, sending time strategy, service identification and/or user scope condition, customized information template;It is described First state includes pending state, state in execution, state, halted state and/or halted state is completed.
Before user submits transmission task in the client, the parameters such as gaming platform, information type can be selected according to demand Then ginseng clicks submission after, transmission task can be submitted to the message desk of the embodiment of the present invention by client, in the transmission task It just include at least one information type, platform identification.
Wherein, platform identification refers to the mark that can be represented a certain gaming platform and distinguish it with other gaming platforms Know;Information type include short message, mail, stand in the various information types to realize communication such as information.
In the embodiment of the present application, the gaming platform can be made of one or more servers.
Sending time strategy therein includes the time scheme of the transmission message to be sent according to set by transmission demand, can To be realized by setting sending time strategy to the regularly sending of message to be sent, be sent in real time, the period sends etc..
For example, sending instant can be arranged in the sending time strategy of the task of transmission, regularly sent with realizing, and/or The time interval of period transmission is set in sending time strategy, to realize that the period sends;Even if setting send so that Message desk is sent as early as possible.
Wherein, sending time strategy can also configure in the page for the submission transmission task that client provides.
Service identification therein is certain corresponding business and the mark that separates the business with other business.Such as in the present invention In the gaming platform of embodiment, it is possible to understand that a game is a business, and different game is different business.Thus not Under same business, object to be sent is not also identical.For example, under the business of game Dungeon-Fighter, it only need to be to gaming platform The user of middle game Dungeon-Fighter sends message and does not need to send message to other game users therein.
So including service identification and/or user scope condition, Ke Yigen in transmission task in embodiments of the present invention Treat that sending object is further to be screened according to service identification and/or user scope condition.And user scope condition therein is Become the object to be sent that can receive message to be sent, the condition for needing to meet for user.Such as the user scope item of setting Part is that game ratings reach 60 grades, then the user that the user's middle grade for whole game that gaming platform is included reaches 60 grades can be with It screens as object to be sent.
In embodiments of the present invention, customized information template can send demand according to this, be set in advance in transmission and appoint In business.It is of course also possible to customized information template is pre-set in configuration file, then the meeting before generating message to be sent The customized information template is extracted from configuration file.In this regard, the present invention is without restriction.
In practical applications, customized information template, such as the personalization of xml format can be set using various ways establishing Information template.Before submitting transmission task, the xml document can be read and obtain customized information template.
Moreover, may include at least one customized information template in transmission task.Include in customized information template Certain critical field, such as appellation field, personalized notifications field, by the corresponding user's appellation information of each object to be sent, Appellation field, personalized notifications field in above-mentioned customized information template are inserted or replaced to personalized notifications information, then can obtain To the corresponding customized information of each object to be sent.
For example, customized information template can be with are as follows:
Dear * * * thanks to your support all the time!xxxx.[signature]
" * * * " then therein is appellation field, and " xxxx " is personalized notifications field.
May include in embodiments of the present invention the following steps for the treatment process for sending task:
1, the transmission task submitted by client is received by receiving process, and is stored in first task queue;
2, transmission task is extracted from first task queue by the first process;
3, the platform identification by the first process from according to the transmission task is called for the to be sent right of platform identification As obtaining interface, each object to be sent is obtained from corresponding platform
4, by the first process be based on each object to be sent is obtained from corresponding platform, by the transmission task be split as to Few two transmission subtasks, and the transmission subtask is put into the second task queue.
Treatment process for sending subtask includes the following steps:
5, each consuming process is extracted from second task queue sends subtask;
6, each consuming process calls transmission interface corresponding with information type, sends pending deliver letters to each object to be sent Breath.
It for the first state of transmission task so in the embodiment of the present invention, may be configured as: transmission task be set when triggering 1 For pending state.Setting transmission task is state in execution when triggering 2, continues to execute 3,4 at this time.In each of the transmission task Subtask is sent after being finished in 6, is set as the state for the task that sends that state is completed.
For sending the first state of subtask, may be configured as: when triggering 5, it is pending state that setting, which sends subtask,. When triggering 6, it is state in executing that setting, which sends subtask, and after 6 are finished, and it is that shape is completed that setting, which sends subtask, State.
Step S220 receives the transmission task submitted by client and is stored in first task queue, and described send is appointed The first state of business is updated to pending state.
First task queue therein is the queue for storing transmission task, and first task queue is present in database In, such as in My SQL database.
In practical applications, client can provide the page to submit transmission task, and user can select in the page Information type that transmission task includes and platform identification etc., the confirming button on the page, can submit transmission when the user clicks Task.
It in embodiments of the present invention, can be by submitting process for transmission task that client is submitted and being stored in first task team Column, and the first state of the transmission task is updated to pending state.
Step S230 extracts transmission task by the first process from first task queue, and by the of the transmission task One state is updated to state in execution.
In practical applications, client can submit different transmission tasks in real time, and be stored in first task queue.Institute To need to extract the transmission task of this execution from first task queue.Wherein to extract the first process of transmission task It can be created before step S230.
It, then can be by the first process by the of the task that sends at this point, the transmission task has been in the state for starting to execute One state is updated to state in execution.
Preferably, step S230 includes:
Sub-step S231 scans the first task queue by the first process, extracts sending time strategy and reaches default item The transmission task of part.
Preset condition therein is Rule of judgment corresponding with sending time strategy.
For example, for the sending time strategy regularly sent to message to be sent may be implemented, then preset condition can be with For time point.If the time point of current time arrival preset condition, it can it is interpreted as sending time strategy and reaches preset condition, Then the transmission task including the time parameter method can be extracted by the scanning to first task queue at this time.
Alternatively, then presetting item for the above-mentioned sending time strategy periodically sent that may be implemented to message to be sent Part can be the period.After if last time sends message to be sent to the corresponding object all to be sent of the task of transmission, when arriving current Period between quarter is equal to the period, it can be interpreted as sending time strategy and reach preset condition, then at this time by pair The scanning of first task queue can extract the transmission task including the time parameter method.
Step S240, by the first process according to the platform identification in the transmission task, call corresponding platform identification to Sending object obtains interface, and each object to be sent is obtained from corresponding platform.
Object to be sent therein can receive message to be sent, and in actual application, different information types is corresponding Object to be sent it is not identical.For example, being usually email address to the object to be sent for receiving mail, to receive short message Object to be sent then may be phone number etc., and the object to be sent to believe in receiving station is then usually in gaming platform Each User ID etc..
In embodiments of the present invention, each game user can store user information into gaming platform when accessing game, Including the object to be sent that can receive message, and each gaming platform can correspondingly provide object acquisition to be sent and connect Mouthful, therefore message desk can obtain each object to be sent from gaming platform.
Step S250, it is to be sent under service identification screening from each object to be sent obtained in corresponding platform Object and/or the object to be sent within the user scope condition.
It can be screened in embodiments of the present invention based on the service identification and/or user scope condition for including in transmission task The object to be sent screened within object and/or the user scope condition to be sent under the corresponding business of above-mentioned service identification out, Object to be sent after screening more meets the corresponding transmission demand of transmission task, sends the effective of roundup so as to improve Property.
In embodiments of the present invention, equally step S250 can be executed by the first process.
Step S260 is based on obtaining each object to be sent from corresponding platform by the first process, by the transmission task At least two transmission subtasks are split as, and the transmission subtask is put into the second task queue;Wherein, in the task of transmission The processing progress of transmission task is recorded in execution under state, and the first state for sending subtask is updated to shape to be processed State.
Consider the load capacity of the corresponding transmission interface of each information type, and whether transmission interface is appointed by other transmissions at this time Business is called, and needs to control the message transmission speed of this transmission task.For example, if existing simultaneously other at this time sends task call hair Interface is sent to send message, then in order to avoid the message for blocking other business is sent, the message that can control this transmission task sends speed Degree;And if transmission interface is not called upon at this time, raising this transmission that can be in the loading range of transmission interface as much as possible The message transmission speed of task.
So in embodiments of the present invention, at least two transmission subtasks can be split as by the way that task will be sent, control Each transmission subtask executes sequence, to realize to the transmission speed of this corresponding message to be sent of transmission task submitted Control, and the transmission subtask is put into the second task queue, the first task in second task queue and step S220 Queue is two different queues, and respectively to store transmission task and send subtask, the second task queue can be with first Task queue is present in same database, such as is present in My SQL database.
For example, if respectively sending, subtask is synchronous to be executed, and the whole transmission speed of message to be sent, Ruo Gefa can be improved It send subtask successively to execute, and the property of can choose ground certain interval of time between adjacent subtask, then can reduce to be sent disappear The whole transmission speed of breath.
Since the corresponding each object to be sent of same transmission task is necessarily mutually different, so in the embodiment of the present invention In, based on each object to be sent obtained from gaming platform, the transmission task is split as at least two transmission subtasks. For example, being directed to a certain transmission task, if obtaining 1000 objects to be sent from gaming platform, which can be appointed Business is split as 10 transmission subtasks, corresponding 100 objects to be sent in each transmission subtask.
It certainly, in practical applications, can also be based on acquisition if the corresponding message to be sent of the task of transmission is different The transmission task is split as at least two transmission subtasks by message to be sent.In this regard, the present invention is not limited.
In embodiments of the present invention, the transmission task is equally split as at least two transmission by the first process to appoint Business, and the transmission subtask is put into the second task queue.
In embodiments of the present invention, since there are many object to be sent, the embodiment of the present invention is sequentially by the pending of specified number It send object to generate and sends subtask.For example the list of object to be sent has 1000, then first extracting 0- from gauge outfit to table tail 100 object to be sent, which generates, sends subtask, then extracts the object to be sent generation transmission subtask of 101-200, successively class It pushes away.So due to send subtask be ordered into progress, then the embodiment of the present invention can send task execution in state Under, record extracts how many and generates subtask to the object to be sent in list, namely has recorded the place of the transmission task Reason progress.Meanwhile armed state can be set by the state for sending subtask.
Step S270 is extracted from second task queue by multiple consuming process and is sent subtask, and will be extracted Transmission subtask first state be updated to execute in state.
Consuming process therein can be extracted from the second task queue send subtask, and call transmission interface into Journey, in practical applications, the quantity of consuming process can be consistent with the quantity of subtask is sent, then a consuming process is correspondingly Only extract a transmission subtask;The quantity of consuming process can also be less than the quantity for sending subtask, then a consumption at this time Process may extract multiple transmission subtasks.Quantity and a consuming process for specific consuming process can extract hair The quantity of subtask is sent, can flexibly be set, in this regard, the present invention is not limited.
When one consuming process extracts a transmission subtask, the first state of the transmission subtask is arranged to carry out State.
Consuming process can be in the creation of any step before entering this step, in this regard, the present invention is also not limited.Separately Outside, which distinguishes with submission process described in the first process described in step S230-S260 and step S220 It is different process, executes different steps respectively.Wherein each process can create simultaneously before step S220, can also be by It is respectively created according to the time that can respectively create.
Step S280, each consuming process call transmission interface corresponding with information type, send to each object to be sent Information to be sent;Wherein record sends the progress of subtask under state in the execution for sending subtask;Sending subtask After information to be sent is sent, the state for sending subtask is updated to state, and the institute of the transmission task is completed Have transmission subtask is all state is completed after, be updated to the state for the task that sends that state is completed.
When each consuming process starts that transmission interface is called to send message to be sent to its object to be sent, will execute Which object to be sent record has been sent under middle state.
When the consuming process be directed to the transmission subtask all objects to be sent, it is pending to be performed both by calling transmission interface The transmission process of message is sent, that is, the transmission subtask that is over is executed, then can set the state of the transmission subtask to It completes.
At this point, the consuming process also go reading process belong to same transmission task other send subtasks the first shape The state for the task that sends is set as being completed by state if all first states for sending subtask are to be completed, conversely, State in the execution of transmission task is not changed then.
Certainly, in the embodiment of the present invention, for the transmission task of state is completed, which can be removed first Task queue.For the transmission subtask of state is completed, it can be temporarily shifted to third task queue, when transmission Transmission task belonging to task is after being completed, then will send subtask accordingly and remove from third task queue.
Preferably, step S280 is specifically included:
Step S281, each consuming process call corresponding to information type in the case where being no more than scheduled transmission information rate Transmission interface, send message to be sent to each object to be sent;The transmission information rate is including in the at the appointed time period The transmission item number of information to be sent.
Consuming process is extracted from second message queue sends subtask, and calls and send information type phase in subtask Message to be sent is sent to object to be sent by the transmission interface answered.
Each consuming process can call transmission interface corresponding with information type in subtask is sent simultaneously, can also be in batches Secondary calling and the corresponding transmission interface of information type in transmission subtask, every batch of therein may include at least one consume into Journey.In practical applications, batch that each consuming process calls transmission interface can be flexibly set according to the loading condition of transmission interface Secondary and sequence, is not limited this present invention.
In addition, the corresponding information type in extracted each transmission subtask may be not quite similar, so it is sub to extract each transmissions The transmission interface that the consuming process of task calls also can be corresponding different.
For example, sending the information type for including in the A of subtask is short message, and send the information type for including in the B of subtask For short message, mail, then the corresponding consuming process for extracting transmission subtask A can only call short message transmission interface, and extract and send son The consuming process of task B can then call short message transmission interface and mail transmission interface.
Wherein scheduled transmission information rate as considers the load total amount of each transmission interface, current each transmission interface Actual negative carrying capacity and this preset transmission information rate of transmission demand institute.Its may include in transmission task, It can also be set before step S280, or before the either step before step S280.The transmission information speed of setting Spending unit can be " item/second ", naturally it is also possible to for the others such as " item/point " units, in this regard, the present invention is not limited.
In practical applications, it can apply for the memory headroom of specified number as unit of byte.Applied memory headroom Address can be continuously, be also possible to discontinuous, this present invention be not limited.But memory headroom is according to one Surely it is sequentially written into.Each of which memory headroom can only write 0 or 1.In embodiments of the present invention, after above-mentioned memory headroom application, Defaulting its value is 0, indicates not sent message, and 1, as mark has been sent, indicates to execute once pending to object to be sent transmission Send message.For example, the consistent memory headroom of transmission item number quantity of application and information to be sent in above-mentioned period specified time.Then The transmission speed of message to be sent can be controlled in the following way within scheduled transmission information rate.
Method 1: judging within each period specified time, and whether all write-in has been sent in applied memory headroom Mark;Wherein, the memory headroom is emptied in each specified time end cycle;Described sent is identified as each transmission times Business is written after being finished.
If all write-in has sent mark in applied memory headroom, then temporarily within each period specified time Stop continuing latter item message to be sent being sent to object to be sent, terminate until the currently assigned time cycle, and refer to currently Fix time end cycle when empty the memory headroom;
If within each period specified time, in applied memory headroom not all write-in sent mark, then after It is continuous that latter item message to be sent is sent to object to be sent, and the memory sky is emptied at the end of the currently assigned time cycle Between.
Method 2: judge whether applied memory headroom whole write-in has sent mark spent time small at fixed time Period;It has sent described in wherein and has been written after being identified as each transmission task execution.
If all write-in has sent the mark spent time small period at fixed time to applied memory headroom, suspend Latter item message to be sent is sent to object to be sent, reaches period specified time until spent time adds time out, And empty the memory headroom;
If applied memory headroom whole write-in, which has sent mark spent time, is more than or equal to period specified time, Continue latter item message to be sent being sent to object to be sent, and empties the memory headroom.
In addition, being that in practical applications, the unit of application memory headroom can be selected according to the actual situation, in this regard, this hair It is bright to be not limited.And user identifier can also be preset according to the case where memory headroom, in this regard, the present invention is not also subject to It limits.
Step S290, when the process for handling a waiting task occur it is abnormal, after restarting the process, read record to The first state of processing task and the processing progress of waiting task.
For example, in embodiments of the present invention, if occurring when executing step S240 abnormal, restarts and execute the of the step After one process, the first state of the waiting task at this time read out is state in executing, and the processing to the transmission task Progress.
Step S2110, the process are executed since the execution method for triggering the first state, and from it is described handle into The waiting task is started to process at degree.
Such as aforementioned the first process restarted, it is re-execute the steps S220-S240, is extracting identical transmission task Afterwards, and when executing step S240, since accent has split whole transmission subtasks again, then the embodiment of the present invention can will Transmission subtask through being put into the second task queue is abandoned, and the transmission subtask for not being put into the second task queue is put into Second task queue.
For another example consuming process collapses, then re-executeing the steps S240-S250, appoints at this point for same transmission Business, since it may have sent message to a batch object to be sent, the embodiment of the present invention is then according to the transmission subtask The processing progress recorded under state in execution calls transmission interface to it for the object to be processed for not sending message to it also Send message.
Preferably, in embodiments of the present invention, after step S280, can also include:
Step S2120 updates the first state of the transmission task after receiving to the command for stopping of the task of transmission For halted state.
Step S2130 updates the first state of the transmission task after receiving the pause instruction to the task of transmission For halted state.
In embodiments of the present invention, to regulate and control the execution state of each transmission task by artificial mode, can pass through Client sends the instruction to the task of transmission, and then controls the first state of transmission task.For example, if receiving to transmission task Command for stopping, then the first state of the transmission task is updated to halted state;If receiving to the temporary of the task of transmission The first state of the transmission task is then updated to paused state by stop instruction;And if receiving the execution to the task of transmission The first state of the transmission task is then updated to state in execution by instruction.
Step S2140 judges whether the first state of transmission task belonging to the transmission subtask is halted state. If the first state for sending transmission task belonging to subtask is halted state, S2160 is entered step.
It in practical applications, whether can be to have stopped shape according to the first state for sending transmission task belonging to subtask State, it is determined whether stop obtaining the transmission subtask of the transmission task from the second task queue, i.e., whether stop continuing by This message to be sent for sending task is sent to object to be sent, to obtain the transmission subtask of other transmission tasks.
In embodiments of the present invention, stop the transmission subtask that the transmission task is obtained from the second task queue, packet The transmission subtask in the transmission task that will have been obtained is included, after corresponding message to be sent is sent to object to be sent, The transmission subtask of the transmission task is not continued to obtain, to obtain the transmission subtask of other transmission tasks.
Certainly, stop the transmission subtask for obtaining the transmission task from the second task queue, also include for having obtained The transmission subtask in the transmission task taken, is no longer sent to object to be sent for its corresponding message to be sent, also not It is further continued for obtaining the transmission subtask of the transmission task.In this regard, the present invention is not limited.
Step S2150 judges whether the first state of transmission task belonging to the transmission subtask is paused state. If the first state for sending transmission task belonging to subtask is paused state, S2170 is entered step.
It in practical applications, whether can be paused shape according to the first state for sending transmission task belonging to subtask State, it is determined whether the paused transmission subtask that the transmission task is obtained from the second task queue, i.e., whether it is paused after The continuous message to be sent that this is sent task is sent to object to be sent.
In embodiments of the present invention, pause obtains the transmission subtask of the transmission task, packet from the second task queue The transmission subtask in the transmission task that will have been obtained is included, after corresponding message to be sent is sent to object to be sent, The transmission subtask of the transmission task is not continued to obtain.Moreover, transmission that will not obtain other transmission tasks is appointed Business.
Step S2160 stops the transmission subtask that the transmission task is obtained from the second task queue, to obtain other Transmission task transmission subtask, and by it is described send subtask first state be updated to halted state.
Step S2170, pause obtain the transmission subtask of the transmission task from the second task queue, and by the hair The first state of subtask is sent to be updated to paused state.
Preferably, in embodiments of the present invention, after step S250, can also include:
Step S2180, being directed to different objects to be sent according to preset customized information template by the first process is Each object to be sent generates personalized information to be sent.It specifically includes:
Sub-step S2181 obtains the data of corresponding each critical field for each object to be sent.
Critical field in the embodiment of the present invention is the weight for distinguishing the corresponding message to be sent of each object to be sent Parameter is wanted, the data of general critical field include user's appellation information, personalized notifications information etc..Wherein, user's appellation information With each platform, personalized notifications information is by sender according to this transmission demand for storage usually together with object to be sent It is provided.
The quantity of critical field corresponding to finally obtained any object to be sent and preset customized information template In critical field quantity be consistent.
For example, if certain game server it is reached 60 grades user send message, meet condition user name and Property notification information such as table (1):
User name Personalized notifications information
Zhang San Spy gives you a set of equipment
ID458892 Spy gives you a weapon
Li Si Spy gives you 50 game moneys
Table (1)
Sub-step S2182 inserts the data of each critical field in the corresponding critical field of customized information template.
It is mark with object to be sent, according to corresponding relationship, the corresponding keyword of each object to be sent that successively will acquire Section is inserted in the corresponding position of customized information template.In practical applications, the data of critical field include user's appellation letter Breath, personalized notifications information etc..
Preferably, sub-step S2182 includes:
Sub-step S21821 inserts object to be sent corresponding user's appellation information in the customized information template Appellation field.
For example, the critical field data of each object to be sent for above-mentioned customized information template and acquisition.At this In inventive embodiments, user's appellation information is above-mentioned user name, then user name therein can be successively filled above-mentioned individual character Change in information template in corresponding appellation field " * * * ".
The personalized notifications information of object to be sent is written in the customized information template sub-step S21822 Personalized notifications field.
Similarly for above-mentioned customized information template and the data of acquisition personalized notifications information.
In embodiments of the present invention, above-mentioned personalized notifications information can be successively filled in above-mentioned customized information template In corresponding personalized notifications field " xxxx ".
Sub-step S2183 generates customized information for each object to be sent.
For each object to be sent, according to customized information template, sub-step S21821 and S21822 are successively executed, i.e., Produce the corresponding customized information of each information receiving number.
In embodiments of the present invention, it for the step similar to embodiment one, repeats no more.
In embodiments of the present invention, the state of waiting task is recorded in real time also with the process of processing waiting task And the processing progress of waiting task can then be recorded when the process appearance exception for handling a waiting task based on the process Since data be restarted automatically process and continue to execute waiting task there is abnormal state and processing progress.To real Show and has improved message desk validity, avoids repeating to send message and the rapidly beneficial effect of processing abnormal conditions.
In addition, the embodiment of the present invention, when submitting transmission task can in transmission task preset at least one information type, Platform identification and sending time strategy, service identification and/or user scope condition, customized information template etc., so as to reality Now to the object to be sent during transmission task, message to be sent, sending time etc., and execute the mistake of transmission task The regulation of journey thereby reduces a possibility that abnormal conditions occur so as to improve the validity for sending information.
Embodiment three
Referring to Fig. 3, a kind of structural block diagram of exception handling device embodiment according to an embodiment of the invention is shown, It can specifically include following module:
Relationship respective modules 310, suitable in advance holding the first state of waiting task with the first state is triggered Row method is corresponded to.
Reference record module 320 is suitable for during waiting task is executed by each process, is called according to each process The corresponding relationship of execution method and first state modifies the first state of waiting task, and record under corresponding state it is described to The processing progress of processing task.
Read module 330 after restarting the process, is read suitable for there is exception when the process of one waiting task of processing The first state of the waiting task of record and the processing progress of waiting task.
Execution module 340 again are executed since the execution method for triggering the first state suitable for the process, and from institute It states and starts to process the waiting task at processing progress.
In embodiments of the present invention, using processing waiting task process record in real time waiting task state and to The processing progress of processing task, when there are abnormal, then to record based on process data in the process for handling a waiting task, It is restarted automatically process and continues to execute waiting task since there is abnormal state and processing progress.It is mentioned to realize High message desk validity avoids repeating to send message and the rapidly beneficial effect of processing abnormal conditions.
Example IV
Referring to Fig. 4, a kind of structural block diagram of exception handling device embodiment according to an embodiment of the invention is shown, It can specifically include following module:
Relationship respective modules 410, suitable in advance holding the first state of waiting task with the first state is triggered Row method is corresponded to;The waiting task includes transmission task and the transmission subtask for sending task;The transmission task Including at least one information type, platform identification, sending time strategy, service identification and/or user scope condition, personalized letter Cease template;The first state includes pending state, state in execution, state, halted state and/or pause shape is completed State.
Reference record module 420 is suitable for during waiting task is executed by each process, is called according to each process The corresponding relationship of execution method and first state modifies the first state of waiting task, and record under corresponding state it is described to The processing progress of processing task.It specifically includes:
Transmission task acquisition submodule 421, suitable for receiving the transmission task submitted by client and being stored in first task team Column, and the first state of the transmission task is updated to pending state.
Transmission task extracting sub-module 422 is suitable for being extracted transmission task from first task queue by the first process, and will The first state of the transmission task is updated to state in execution.
Preferably, task extracting sub-module 422 is sent, comprising:
Transmission task screens submodule, is suitable for scanning the first task queue by the first process, extracts sending time plan Slightly reach the transmission task of preset condition.
Object acquisition submodule 423 to be sent, suitable for the platform identification by the first process from according to the transmission task, The object acquisition interface to be sent for platform identification is called, each object to be sent is obtained from corresponding platform.
Object to be sent screens submodule 424, suitable for screening from each object to be sent obtained in corresponding platform Object to be sent under service identification and/or the object to be sent within the user scope condition.
Submodule 425 is split, obtains each object to be sent from corresponding platform suitable for being based on by the first process, it will be described Transmission task is split as at least two transmission subtasks, and the transmission subtask is put into the second task queue;Wherein, it is sending out Send the processing progress for recording transmission task in the execution of task under state.
Subtask extracting sub-module 426 is sent, is suitable for extracting hair from second task queue by multiple consuming process Subtask is sent, and the first state for the transmission subtask being extracted is updated to pending state.
Message sending submodule 427 is suitable for each consuming process and calls corresponding with information type transmission interface, to respectively to Sending object sends information to be sent;Wherein record sends the progress of subtask under state in the execution for sending subtask;? After the information to be sent of transmission subtask is sent, the state for sending subtask is updated to state is completed, and described All transmission subtasks of transmission task are all state is completed after, be updated to the state for the task that sends that state is completed.
Preferably, message sending submodule 427, comprising:
Speed limit sending submodule is suitable for each consuming process in the case where being no more than scheduled transmission information rate, calls and believes The corresponding transmission interface of type is ceased, sends message to be sent to each object to be sent;The transmission information rate is included in specified The transmission item number of information to be sent in time cycle.
Read module 430 after restarting the process, is read suitable for there is exception when the process of one waiting task of processing The first state of the waiting task of record and the processing progress of waiting task.
Execution module 440 again are executed since the execution method for triggering the first state suitable for the process, and from institute It states and starts to process the waiting task at processing progress.
Preferably, in embodiments of the present invention, the reference record module 420 can also include:
Halted state updates submodule, suitable for after receiving to the command for stopping of the task of transmission, described send is appointed The first state of business is updated to halted state.
Halted state updates submodule, suitable for after receiving the pause instruction to the task of transmission, described send is appointed The first state of business is updated to halted state.
Halted state judging submodule, suitable for judging that the first state of transmission task belonging to the transmission subtask is It is no for halted state;If the first state for sending transmission task belonging to subtask is halted state, enter Stop acquisition submodule.
Paused state judging submodule, suitable for judging that the first state of transmission task belonging to the transmission subtask is No is paused state;If the first state for sending transmission task belonging to subtask is paused state, enter Suspend acquisition submodule.
Stop acquisition submodule, obtain the transmission subtask of the transmission task from the second task queue suitable for stopping, To obtain the transmission subtask of other transmission tasks, and it is updated to the first state for sending subtask to have stopped shape State.
Suspend acquisition submodule, suitable for suspending the transmission subtask for obtaining the transmission task from the second task queue, And the first state for sending subtask is updated to paused state.
Preferably, in embodiments of the present invention, after object to be sent screens submodule 424, can also include:
Customized information generates submodule, suitable for being directed to different objects to be sent by the first process, according to preset Property information template, personalized information to be sent is generated for each object to be sent.It specifically includes:
Critical field acquisition submodule is suitable for being directed to each object to be sent, obtains the data of corresponding each critical field.
Critical field editor's submodule, it is corresponding suitable for the data of each critical field are inserted the customized information template In critical field.
Submodule is generated, each object to be sent is suitable for and generates customized information.
Preferably, the critical field editor submodule, comprising:
Appellation field editing submodule is suitable for the corresponding user's appellation information of object to be sent inserting the personalization Appellation field in information template.
Notification field editor's submodule, suitable for the personalized letter is written by the personalized notifications information of object to be sent Cease the personalized notifications field in template.
In embodiments of the present invention, the state of waiting task is recorded in real time also with the process of processing waiting task And the processing progress of waiting task can then be recorded when the process appearance exception for handling a waiting task based on the process Since data be restarted automatically process and continue to execute waiting task there is abnormal state and processing progress.To real Show and has improved message desk validity, avoids repeating to send message and the rapidly beneficial effect of processing abnormal conditions.
In addition, the embodiment of the present invention, when submitting transmission task can in transmission task preset at least one information type, Platform identification and sending time strategy, service identification and/or user scope condition, customized information template etc., so as to reality Now to the object to be sent during transmission task, message to be sent, sending time etc., and execute the mistake of transmission task The regulation of journey thereby reduces a possibility that abnormal conditions occur so as to improve the validity for sending information.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
Embodiment five
Referring to Fig. 5, a kind of structural block diagram of abnormality processing apparatus embodiments according to an embodiment of the invention is shown, The equipment 500 can specifically include following module:
Memory 510, suitable for being loaded with a plurality of executable instruction;
Processor 520 is adapted for carrying out a plurality of executable instruction;The a plurality of instruction includes the side for executing following steps Method:
The first state of waiting task is carried out with the execution method for triggering the first state in advance corresponding;
Waiting task is executed by each process during, the execution method and first state called according to each process Corresponding relationship modifies the first state of waiting task, and the processing progress of the waiting task is recorded under corresponding state;
When the process appearance exception for handling a waiting task, after restarting the process, the waiting task of record is read First state and waiting task processing progress;
The process is executed since the execution method for triggering the first state, and from beginning from the processing progress Manage the waiting task.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize one in abnormality eliminating method equipment according to an embodiment of the present invention The some or all functions of a little or whole components.The present invention is also implemented as executing method as described herein Some or all device or device programs (for example, computer program and computer program product).Such realization Program of the invention can store on a computer-readable medium, or may be in the form of one or more signals.This The signal of sample can be downloaded from an internet website to obtain, and is perhaps provided on the carrier signal or mentions in any other forms For.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The invention discloses A1, a kind of abnormality eliminating method, comprising:
The first state of waiting task is carried out with the execution method for triggering the first state in advance corresponding;
Waiting task is executed by each process during, the execution method and first state called according to each process Corresponding relationship modifies the first state of waiting task, and the processing progress of the waiting task is recorded under corresponding state;
When the process appearance exception for handling a waiting task, after restarting the process, the waiting task of record is read First state and waiting task processing progress;
The process is executed since the execution method for triggering the first state, and from beginning from the processing progress Manage the waiting task.
A2, method as described in a1, the waiting task include transmission task and the transmission subtask for sending task;Institute Stating transmission task includes at least one information type, platform identification;
The first state includes pending state, state and state is completed in execution.
A3, as described in A2 method, it is described during waiting task is executed by each process, it is called according to each process Execution method and first state corresponding relationship modification waiting task first state, and under corresponding state record described in The step of processing progress of waiting task includes:
It receives the transmission task submitted by client and is stored in first task queue, and by the first shape of the transmission task State is updated to pending state;
Transmission task is extracted from first task queue by the first process, and the first state of the transmission task is updated For state in execution;
By platform identification of first process from according to the transmission task, the object to be sent for platform identification is called Interface is obtained, each object to be sent is obtained from corresponding platform;
It is based on obtaining each object to be sent from corresponding platform by the first process, the transmission task is split as at least Two transmission subtasks, and the transmission subtask is put into the second task queue;Wherein, the state in the execution of the task of transmission The processing progress of lower record transmission task, and the first state for sending subtask is updated to armed state;
It is extracted from second task queue by multiple consuming process and sends subtask, and transmission being extracted is appointed The first state of business is updated to state in execution;
Each consuming process calls transmission interface corresponding with information type, sends pending deliver letters to each object to be sent Breath;Wherein record sends the progress of subtask under state in the execution for sending subtask;It delivers letters sending the pending of subtask After breath is sent, the state for sending subtask is updated to state, and all transmissions of the transmission task is completed Task is all state is completed after, be updated to the state for the task that sends that state is completed.
A4, the method as described in A3, the transmission task further include: sending time strategy;
Further, described the step of extracting transmission task from first task queue by the first process, comprising:
The first task queue is scanned by the first process, extracts the transmission times that sending time strategy reaches preset condition Business.
A5, the method as described in A3, the transmission task further include: service identification and/or user scope condition;
Further, it in the platform identification by the first process from according to the transmission task, calls for platform identification Object acquisition interface to be sent, after the step of obtaining each object to be sent in corresponding platform, further includes:
From each object to be sent obtained in corresponding platform, screen object to be sent under service identification and/or Object to be sent within the user scope condition.
A6, method as described in a5, the first state further include halted state and/or halted state;
Further, the execution side that is described during waiting task is executed by each process, being called according to each process The corresponding relationship of method and first state modifies the first state of waiting task, and described to be processed is recorded under corresponding state The step of processing progress of business, further includes:
After receiving to the command for stopping of the task of transmission, it is updated to the first state of the transmission task to have stopped shape State;
And/or after receiving the pause instruction to the task of transmission, the first state of the transmission task is updated to temporarily Stop state.
A7, the method as described in A6, each consuming process call transmission interface corresponding with information type, to each to be sent When object sends the step of information to be sent, further includes:
Whether the first state for judging transmission task belonging to the transmission subtask is halted state;
If the first state for sending transmission task belonging to subtask is halted state, stop from second The transmission subtask of the transmission task is obtained in business queue, to obtain the transmission subtask of other transmission tasks, and by institute The first state for stating transmission subtask is updated to halted state;
And/or judge whether the first state of transmission task belonging to the transmission subtask is paused state;
If the first state for sending transmission task belonging to subtask is paused state, suspend from second The transmission subtask of the transmission task is obtained in business queue, and the first state for sending subtask is updated to paused State.
A8, the method as described in A3, each consuming process call transmission interface corresponding with information type, to respectively to Sending object sends the step of information to be sent, comprising:
Each consuming process calls transmission corresponding with information type to connect in the case where being no more than scheduled transmission information rate Mouthful, message to be sent is sent to each object to be sent;The transmission information rate is delivered letters including pending in the at the appointed time period The transmission item number of breath.
A9, the method as described in A3-A8, in the transmission task further include: customized information template;
Further, it in the platform identification by the first process from according to the transmission task, calls for platform identification Object acquisition interface to be sent, after the step of obtaining each object to be sent in corresponding platform, further includes:
Different objects to be sent is directed to by the first process, is each to be sent according to preset customized information template Object generates personalized information to be sent.
A10, the method as described in A8, it is described that different objects to be sent is directed to by the first process, according to preset individual character The step of changing information template, generating personalized information to be sent for each object to be sent, comprising:
For each object to be sent, the data of corresponding each critical field are obtained;
The data of each critical field are inserted in the corresponding critical field of customized information template;
Customized information is generated for each object to be sent.
A11, the method as described in A10, it is corresponding that the data by each critical field insert the customized information template Critical field in step, comprising:
By the corresponding user's appellation information of object to be sent, the appellation field in the customized information template is inserted;
By the personalized notifications information of object to be sent, the personalized notifications word in the customized information template is written Section.
A12, the method as described in A3-A8, the information type include: short message, and/or mail, and/or interior information of standing.
The invention also discloses B13, a kind of exception handling device, comprising:
Relationship respective modules, suitable in advance by the execution side of the first state of waiting task and the triggering first state Method is corresponded to;
Reference record module is suitable for during waiting task is executed by each process, is held according to what each process was called The corresponding relationship of row method and first state modifies the first state of waiting task, and record is described wait locate under corresponding state The processing progress of reason task;
Read module after restarting the process, reads record suitable for there is exception when the process of one waiting task of processing Waiting task first state and waiting task processing progress;
Execution module again is executed since the execution method for triggering the first state suitable for the process, and from described The waiting task is started to process at processing progress.
B14, the device as described in B13, the waiting task include transmission task and the transmission subtask for sending task; The transmission task includes at least one information type, platform identification;
The first state includes pending state, state and state is completed in execution.
B15, the device as described in B14, the reference record module, comprising:
Transmission task acquisition submodule, suitable for receiving the transmission task submitted by client and being stored in first task queue, And the first state of the transmission task is updated to pending state;
Transmission task extracting sub-module is suitable for extracting transmission task from first task queue by the first process, and by institute The first state for stating transmission task is updated to state in execution;
Object acquisition submodule to be sent is adjusted suitable for the platform identification by the first process from according to the transmission task With the object acquisition interface to be sent for platform identification, each object to be sent is obtained from corresponding platform;
Submodule is split, each object to be sent is obtained from corresponding platform suitable for being based on by the first process, by the hair It send task to be split as at least two transmission subtasks, and the transmission subtask is put into the second task queue;Wherein, it is sending The processing progress of transmission task is recorded in the execution of task under state;
Subtask extracting sub-module is sent, is suitable for being extracted transmission from second task queue by multiple consuming process Task, and the first state for the transmission subtask being extracted is updated to pending state;
Message sending submodule is suitable for each consuming process and calls corresponding with information type transmission interface, to each pending Object is sent to send information to be sent;Wherein record sends the progress of subtask under state in the execution for sending subtask;It is sending out After sending the information to be sent of subtask to be sent, the state for sending subtask is updated to state, and the hair is completed After sending all transmission subtasks of task are all state is completed, it is updated to the state for the task that sends that state is completed.
B16, the device as described in B15, the transmission task further include: sending time strategy;
Further, the transmission task extracting sub-module, comprising:
Transmission task screens submodule, is suitable for scanning the first task queue by the first process, extracts sending time plan Slightly reach the transmission task of preset condition.
B17, the device as described in B15, the transmission task further include: service identification and/or user scope condition;
Further, after object acquisition submodule to be sent, further includes:
Object to be sent screens submodule, suitable for screening industry from each object to be sent obtained in corresponding platform Object to be sent under business mark and/or the object to be sent within the user scope condition.
B18, the device as described in B17, the first state further include halted state and/or halted state;
Further, the reference record module, further includes:
Halted state updates submodule, suitable for after receiving to the command for stopping of the task of transmission, described send is appointed The first state of business is updated to halted state;
And/or halted state updates submodule, it, will be described suitable for after receiving the pause instruction to the task of transmission The first state of transmission task is updated to halted state.
B19, the device as described in B18, message sending submodule, further includes:
Halted state judging submodule, suitable for judging that the first state of transmission task belonging to the transmission subtask is It is no for halted state;If the first state for sending transmission task belonging to subtask is halted state, enter Stop acquisition submodule;
And/or paused state judging submodule, suitable for judging first of transmission task belonging to the transmission subtask Whether state is paused state;If the first state for sending transmission task belonging to subtask is paused state, Then enter pause acquisition submodule;
Stop acquisition submodule, obtain the transmission subtask of the transmission task from the second task queue suitable for stopping, To obtain the transmission subtask of other transmission tasks, and it is updated to the first state for sending subtask to have stopped shape State;
Suspend acquisition submodule, suitable for suspending the transmission subtask for obtaining the transmission task from the second task queue, And the first state for sending subtask is updated to paused state.
B20, the device as described in B15, the message send subtask, comprising:
Speed limit sending submodule is suitable for each consuming process in the case where being no more than scheduled transmission information rate, calls and believes The corresponding transmission interface of type is ceased, sends message to be sent to each object to be sent;The transmission information rate is included in specified The transmission item number of information to be sent in time cycle.
B21, the device as described in B15-B20, in the transmission task further include: customized information template;
Further, after object acquisition submodule to be sent, further includes:
Customized information generates submodule, suitable for being directed to different objects to be sent by the first process, according to preset Property information template, personalized information to be sent is generated for each object to be sent.
B22, the device as described in B20, the customized information generate submodule, comprising:
Critical field acquisition submodule is suitable for being directed to each object to be sent, obtains the data of corresponding each critical field;
Critical field editor's submodule, it is corresponding suitable for the data of each critical field are inserted the customized information template In critical field;
Submodule is generated, each object to be sent is suitable for and generates customized information.
B23, the device as described in B22, the critical field editor submodule, comprising:
Appellation field editing submodule is suitable for the corresponding user's appellation information of object to be sent inserting the personalization Appellation field in information template;
Notification field editor's submodule, suitable for the personalized letter is written by the personalized notifications information of object to be sent Cease the personalized notifications field in template.
B24, the device as described in B15-B20, the information type include: letter in short message, and/or mail, and/or station Breath.
The invention also discloses C25, a kind of abnormality processing equipment, comprising:
Memory is loaded with a plurality of executable instruction;
Processor executes a plurality of executable instruction;The a plurality of instruction includes the method for executing following steps:
The first state of waiting task is carried out with the execution method for triggering the first state in advance corresponding;
Waiting task is executed by each process during, the execution method and first state called according to each process Corresponding relationship modifies the first state of waiting task, and the processing progress of the waiting task is recorded under corresponding state;
When the process appearance exception for handling a waiting task, after restarting the process, the waiting task of record is read First state and waiting task processing progress;
The process is executed since the execution method for triggering the first state, and from beginning from the processing progress Manage the waiting task.

Claims (25)

1. a kind of abnormality eliminating method, comprising:
The first state of waiting task is carried out with the execution method for triggering the first state in advance corresponding;Wherein, described Waiting task includes transmission task and the transmission subtask for sending task;The transmission task includes at least one info class Type, platform identification;
During waiting task is executed by each process, the execution method called according to each process is corresponding with first state Relationship modifies the first state of waiting task, and the processing progress of the waiting task is recorded under corresponding state;Work as place Manage a waiting task process occur it is abnormal, after restarting the process, read the waiting task of record first state and The processing progress of waiting task;
The process calls the execution method for triggering the first state, and starts to process from the processing progress described wait locate Reason task.
2. the method according to claim 1, wherein
The first state includes pending state, state and state is completed in execution.
3. according to the method described in claim 2, it is characterized in that, the process executed in waiting task by each process In, the first state of the corresponding relationship modification waiting task of the execution method and first state called according to each process, and The step of processing progress of the waiting task is recorded under corresponding state include:
It receives the transmission task submitted by client and is stored in first task queue, and more by the first state of the transmission task It is newly pending state;
Transmission task is extracted from first task queue by the first process, and the first state of the transmission task is updated to hold State in row;
By platform identification of first process from according to the transmission task, the object acquisition to be sent for platform identification is called Interface obtains each object to be sent from corresponding platform;
It is based on obtaining each object to be sent from corresponding platform by the first process, the transmission task is split as at least two Subtask is sent, and the transmission subtask is put into the second task queue;Wherein, remember under state in the execution of the task of transmission The processing progress of transmission task is recorded, and the first state for sending subtask is updated to armed state;
The transmission subtask extracted from second task queue by multiple consuming process and to send subtask, and will be extracted First state is updated to state in execution;
Each consuming process calls transmission interface corresponding with information type, sends information to be sent to each object to be sent;Its In record sends the progress of subtask under state in the execution for sending subtask;It is sent in the information to be sent for sending subtask After finishing, the state for sending subtask is updated to state is completed, and all transmission subtasks of the transmission task are complete Portion is after state is completed, to be updated to the state for the task that sends that state is completed.
4. according to the method described in claim 3, it is characterized in that,
The transmission task further include: sending time strategy;
Further, described the step of extracting transmission task from first task queue by the first process, comprising:
The first task queue is scanned by the first process, extracts the transmission task that sending time strategy reaches preset condition.
5. according to the method described in claim 3, it is characterized in that, the transmission task further include: service identification and/or user Range of condition;
Further, in the platform identification by the first process from according to the transmission task, call for platform identification to Sending object obtains interface, after the step of obtaining each object to be sent in corresponding platform, further includes:
From each object to be sent obtained in corresponding platform, object to be sent under service identification is screened and/or in institute State the object to be sent within user scope condition.
6. according to the method described in claim 5, it is characterized in that, the first state further includes halted state and/or pause State;
Further, described during waiting task is executed by each process, according to each process call execution method with The first state of the corresponding relationship modification waiting task of first state, and the waiting task is recorded under corresponding state The step of processing progress, further includes:
After receiving to the command for stopping of the task of transmission, the first state of the transmission task is updated to halted state;
And/or after receiving the pause instruction to the task of transmission, the first state of the transmission task is updated to pause shape State.
7. according to the method described in claim 6, it is characterized in that, each consuming process calls send corresponding with information type Interface, when sending the step of information to be sent to each object to be sent, further includes:
Whether the first state for judging transmission task belonging to the transmission subtask is halted state;
If the first state for sending transmission task belonging to subtask is halted state, stop from the second task team The transmission subtask of the transmission task is obtained in column, to obtain the transmission subtask of other transmission tasks, and by the hair The first state of subtask is sent to be updated to halted state;
And/or judge whether the first state of transmission task belonging to the transmission subtask is paused state;
If the first state for sending transmission task belonging to subtask is paused state, suspend from the second task team The transmission subtask of the transmission task is obtained in column, and the first state for sending subtask is updated to paused shape State.
8. according to the method described in claim 3, it is characterized in that, each consuming process calling is corresponding with information type Transmission interface, the step of sending information to be sent to each object to be sent, comprising:
Each consuming process calls transmission interface corresponding with information type in the case where being no more than scheduled transmission information rate, to Each object to be sent sends information to be sent;It is described to send the hair that information rate includes at the appointed time information to be sent in the period Send item number.
9. according to any one of method of claim 3-8, which is characterized in that in the transmission task further include: individual character Change information model;
Further, in the platform identification by the first process from according to the transmission task, call for platform identification to Sending object obtains interface, after the step of obtaining each object to be sent in corresponding platform, further includes:
Different objects to be sent is directed to by the first process, is each object to be sent according to preset customized information template Generate personalized information to be sent.
10. according to the method described in claim 8, it is characterized in that, it is described by the first process be directed to different objects to be sent, It is the step of each object to be sent generates personalized information to be sent according to preset customized information template, comprising:
For each object to be sent, the data of corresponding each critical field are obtained;
The data of each critical field are inserted in the corresponding critical field of customized information template;
Customized information is generated for each object to be sent.
11. according to the method described in claim 10, it is characterized in that, the data by each critical field insert the individual character Change the step in the corresponding critical field of information template, comprising:
By the corresponding user's appellation information of object to be sent, the appellation field in the customized information template is inserted;
By the personalized notifications information of object to be sent, the personalized notifications field in the customized information template is written.
12. according to any one of method of claim 3-8, which is characterized in that the information type include: short message and/ Or information in mail, and/or station.
13. a kind of exception handling device, comprising:
Relationship respective modules, suitable in advance by the first state of waiting task and trigger the execution method of the first state into Row corresponds to;Wherein, the waiting task includes transmission task and the transmission subtask for sending task;The transmission task includes At least one information type, platform identification;
Reference record module is suitable for during waiting task is executed by each process, the execution side called according to each process The corresponding relationship of method and first state modifies the first state of waiting task, and described to be processed is recorded under corresponding state The processing progress of business;
Read module, suitable for when the process of one waiting task of processing occur it is abnormal, after restarting the process, read record to The first state of processing task and the processing progress of waiting task;
Execution module again calls the execution method for triggering the first state suitable for the process, and from the processing progress Start to process the waiting task.
14. device according to claim 13, it is characterised in that the first state includes pending state, shape in execution State and state is completed.
15. device according to claim 14, which is characterized in that the reference record module, comprising:
Transmission task acquisition submodule, suitable for receiving the transmission task submitted by client and being stored in first task queue, and will The first state of the transmission task is updated to pending state;
Transmission task extracting sub-module is suitable for extracting transmission task from first task queue by the first process, and by the hair The first state of task is sent to be updated to state in execution;
Object acquisition submodule to be sent, suitable for the platform identification by the first process from according to the transmission task, calling pair In the object acquisition interface to be sent of platform identification, each object to be sent is obtained from corresponding platform;
Submodule is split, each object to be sent is obtained from corresponding platform suitable for being based on by the first process, described send is appointed Business is split as at least two transmission subtasks, and the transmission subtask is put into the second task queue;Wherein, in the task of transmission Execution in the processing progress of transmission task is recorded under state;
Subtask extracting sub-module is sent, is suitable for being extracted transmission from second task queue by multiple consuming process and appoints Business, and the first state for the transmission subtask being extracted is updated to state in execution;
Message sending submodule is suitable for each consuming process and calls corresponding with information type transmission interface, to each to be sent right As sending information to be sent;Wherein record sends the progress of subtask under state in the execution for sending subtask;Sending son After the information to be sent of task is sent, the state for sending subtask is updated to state is completed, and described send is appointed Business all transmission subtasks it is all state is completed after, be updated to the state for the task that sends that state is completed.
16. device according to claim 15, which is characterized in that
The transmission task further include: sending time strategy;
Further, the transmission task extracting sub-module, comprising:
Transmission task screens submodule, is suitable for scanning the first task queue by the first process, extracts sending time strategy and reaches To the transmission task of preset condition.
17. device according to claim 15, which is characterized in that the transmission task further include: service identification and/or use Family range of condition;
Further, after object acquisition submodule to be sent, further includes:
Object to be sent screens submodule, suitable for screening business mark from each object to be sent obtained in corresponding platform Object to be sent under knowing and/or the object to be sent within the user scope condition.
18. device according to claim 17, which is characterized in that the first state further include halted state and/or temporarily Stop state;
Further, the reference record module, further includes:
Halted state update submodule, suitable for receive to send task command for stopping after, by the transmission task First state is updated to halted state;
And/or halted state update submodule, suitable for receive to send task pause instruction after, by the transmission The first state of task is updated to halted state.
19. device according to claim 18, which is characterized in that message sending submodule, further includes:
Halted state judging submodule, suitable for judge it is described transmission subtask belonging to transmission task first state whether be Halted state;If the first state for sending transmission task belonging to subtask is halted state, enters and stop Acquisition submodule;
And/or paused state judging submodule, suitable for judging the first state of transmission task belonging to the transmission subtask It whether is paused state;If the first state for sending transmission task belonging to subtask is paused state, into Enter to suspend acquisition submodule;
Stop acquisition submodule, suitable for the transmission subtask for stopping obtaining the transmission task from the second task queue, to obtain The transmission subtask of other transmission tasks is taken, and the first state for sending subtask is updated to halted state;
Suspend acquisition submodule, suitable for suspending the transmission subtask for obtaining the transmission task from the second task queue, and will The first state for sending subtask is updated to paused state.
20. device according to claim 15, which is characterized in that the message sending submodule, comprising:
Speed limit sending submodule is suitable for each consuming process in the case where being no more than scheduled transmission information rate, calling and info class The corresponding transmission interface of type sends information to be sent to each object to be sent;The transmission information rate includes at the appointed time The transmission item number of information to be sent in period.
21. 5-20 any one of device according to claim 1, which is characterized in that in the transmission task further include: a Property information model;
Further, after object acquisition submodule to be sent, further includes:
Customized information generates submodule, suitable for being directed to different objects to be sent by the first process, according to preset personalization Information template generates personalized information to be sent for each object to be sent.
22. device according to claim 21, which is characterized in that the customized information generates submodule, comprising:
Critical field acquisition submodule is suitable for being directed to each object to be sent, obtains the data of corresponding each critical field;
Critical field editor's submodule, it is crucial accordingly suitable for the data of each critical field are inserted the customized information template In field;
Submodule is generated, each object to be sent is suitable for and generates customized information.
23. device according to claim 22, which is characterized in that the critical field editor submodule, comprising:
Appellation field editing submodule is suitable for the corresponding user's appellation information of object to be sent inserting the customized information Appellation field in template;
Notification field editor's submodule, suitable for the customized information mould is written by the personalized notifications information of object to be sent Personalized notifications field in version.
24. 5-20 any one of device according to claim 1, which is characterized in that the information type include: short message, And/or information in mail, and/or station.
25. a kind of abnormality processing equipment, comprising:
Memory is loaded with a plurality of executable instruction;
Processor executes a plurality of executable instruction;The a plurality of executable instruction includes the method for executing following steps:
The first state of waiting task is carried out with the execution method for triggering the first state in advance corresponding;Wherein, described Waiting task includes transmission task and the transmission subtask for sending task;The transmission task includes at least one info class Type, platform identification;
During waiting task is executed by each process, the execution method called according to each process is corresponding with first state Relationship modifies the first state of waiting task, and the processing progress of the waiting task is recorded under corresponding state;
When the process for handling a waiting task occurs abnormal, after restarting the process, the of the waiting task of record is read The processing progress of one state and waiting task;
The process calls the execution method for triggering the first state, and starts to process from the processing progress described wait locate Reason task.
CN201510849673.9A 2015-11-27 2015-11-27 A kind of abnormality eliminating method and device Active CN105511975B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510849673.9A CN105511975B (en) 2015-11-27 2015-11-27 A kind of abnormality eliminating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510849673.9A CN105511975B (en) 2015-11-27 2015-11-27 A kind of abnormality eliminating method and device

Publications (2)

Publication Number Publication Date
CN105511975A CN105511975A (en) 2016-04-20
CN105511975B true CN105511975B (en) 2019-06-04

Family

ID=55719978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510849673.9A Active CN105511975B (en) 2015-11-27 2015-11-27 A kind of abnormality eliminating method and device

Country Status (1)

Country Link
CN (1) CN105511975B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375372B (en) * 2016-08-23 2019-12-06 东方网力科技股份有限公司 big data resource allocation method and device
CN106776056B (en) * 2016-11-10 2020-12-29 北京像素软件科技股份有限公司 Game data processing method and device and server
CN106598817A (en) * 2017-01-09 2017-04-26 中交航局安装工程有限公司 Self-repair method of coal pile three-dimensional modeling data acquisition server
CN109582396B (en) * 2017-09-25 2022-02-18 北京国双科技有限公司 Task state processing method, device and system and storage medium
CN109785042A (en) * 2018-12-13 2019-05-21 深圳平安财富宝投资咨询有限公司 Abnormality eliminating method, server, storage medium and the device of distributed deployment
CN111245706A (en) * 2020-01-03 2020-06-05 湖南省梦网科技发展有限公司 Information processing method, device, server and medium
CN113641515A (en) * 2021-08-02 2021-11-12 北京达佳互联信息技术有限公司 Message processing method, device and system, electronic equipment and storage medium
CN113962229A (en) * 2021-09-27 2022-01-21 北京百度网讯科技有限公司 Asynchronous translation system, method, apparatus and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004362211A (en) * 2003-06-04 2004-12-24 Fujitsu Ltd Typical operation automatic processing program and method and typical operation automatic processor
CN104298570A (en) * 2014-11-14 2015-01-21 北京国双科技有限公司 Data processing method and device
CN104407847A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Batch processing method and device
CN104731663A (en) * 2015-03-31 2015-06-24 北京奇艺世纪科技有限公司 Task processing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004362211A (en) * 2003-06-04 2004-12-24 Fujitsu Ltd Typical operation automatic processing program and method and typical operation automatic processor
CN104407847A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Batch processing method and device
CN104298570A (en) * 2014-11-14 2015-01-21 北京国双科技有限公司 Data processing method and device
CN104731663A (en) * 2015-03-31 2015-06-24 北京奇艺世纪科技有限公司 Task processing method and system

Also Published As

Publication number Publication date
CN105511975A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN105511975B (en) A kind of abnormality eliminating method and device
CN105516259B (en) A kind of method for sending information and device
CN108614726B (en) Virtual machine creation method and device
US10606662B2 (en) System and method for processing task resources
CN105263128B (en) A kind of method and apparatus of Batch sending short message
CN103605568B (en) A kind of Multithread management method and device
CN105262835B (en) Date storage method and device in a kind of multimachine room
CN103533032B (en) Bandwidth adjustment device and method
CN110609742B (en) Method and device for configuring queues of Kubernetes scheduler
CN109491777A (en) Task executing method, device, equipment and storage medium
CN111274015A (en) Configuration method and device and data processing server
CN109995814B (en) Cloud host resource migration method and device, communication equipment and storage medium
CN110224860A (en) Load balancing application creation method, device, computer equipment and storage medium
CN107450997A (en) The method and device of picture dynamic play
CN109445923A (en) A kind of method and device of micro services task schedule
CN113687932A (en) Task scheduling method, device and system, electronic equipment and storage medium
CN108958941A (en) Image processing method and device
CN111416727A (en) VNF uploading instantiation method and device
CN111953503A (en) NFV resource deployment arrangement method and network function virtualization orchestrator
CN105975329B (en) A kind of creation method and device of virtual machine
CN108089924A (en) A kind of task run method and device
CN104572303B (en) Application resource management and calling device, method and application resource manage system
CN106528206A (en) Application starting control method and apparatus, and application installation package reinforcement apparatus
CN107025134A (en) The method of database management systems and compatible multitype database
CN107193587A (en) A kind of method and apparatus for the multitask stack for realizing plug-in unit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220718

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right