CN106339440A - Asynchronous task checking method and equipment - Google Patents

Asynchronous task checking method and equipment Download PDF

Info

Publication number
CN106339440A
CN106339440A CN201610702418.6A CN201610702418A CN106339440A CN 106339440 A CN106339440 A CN 106339440A CN 201610702418 A CN201610702418 A CN 201610702418A CN 106339440 A CN106339440 A CN 106339440A
Authority
CN
China
Prior art keywords
task
client
identification
server
processing information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610702418.6A
Other languages
Chinese (zh)
Inventor
于明光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201610702418.6A priority Critical patent/CN106339440A/en
Publication of CN106339440A publication Critical patent/CN106339440A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an asynchronous task checking method and equipment. The asynchronous task checking method comprises the following steps: receiving an asynchronous checking request which is transmitted from a client and comprises a task identifier; checking a task state corresponding to the task identifier; if the task state is not displayed successfully, feeding back processing information corresponding to the task identifier to the client. By adopting the embodiment of the invention, the problem that the data checking time is relatively long in a big data scene can be avoided, the data checking efficiency can be improved, and meanwhile a task implementation state can be provided for the client, so that the user experience can be improved.

Description

Asynchronous task querying method and equipment
Technical field
The present invention relates to field of computer technology, more particularly, to a kind of asynchronous task querying method and equipment.
Background technology
Generally, client sends request, then server processing requests return suitable response.Example As, Query Result, after the instruction sending inquiry operation to server, waiting for server will be returned client by client always, Then just proceed next step operation.Thus, above-mentioned data query pattern is simply it is adaptable to respond scene faster.
However, under big data scene, being generally completed a data query needs the long period, and above-mentioned data query Pattern does not have any feedback it is impossible to provide the user with the state that task is carried out between request and response.
Content of the invention
It is contemplated that at least solving one of technical problem in correlation technique to a certain extent.
For this reason, it is an object of the present invention to proposing a kind of asynchronous task querying method, the method can avoid big Under data scene, the data query time is longer, improves efficiency data query, the state simultaneously carrying out to client offer task, carries Rise Consumer's Experience.
Second object of the present invention is to propose another kind of asynchronous task querying method.
Third object of the present invention is to propose a kind of server.
Fourth object of the present invention is to propose a kind of client.
For reaching above-mentioned purpose, a kind of asynchronous task querying method that embodiment proposes according to a first aspect of the present invention, including Following steps:
Receive the asynchronous query request comprising task identification that client sends;
Inquire about task status corresponding with described task identification;
If described task status shows unsuccessful, to the process corresponding with described task identification of described client feedback Information.
The asynchronous task querying method of the embodiment of the present invention, receive client transmission first comprises the asynchronous of task identification Inquiry request, then inquires about task status corresponding with task identification, finally when task status display is unsuccessful, to client Feed back processing information corresponding with task identification.Thus, it is possible to avoid the data query time under big data scene longer, improve Efficiency data query, the state simultaneously carrying out to client offer task, lift Consumer's Experience.
In addition, asynchronous task querying method according to the above embodiment of the present invention can also have the technology spy adding as follows Levy:
In some instances, described method, also includes: if described task status shows successfully, from file cache The middle reading processing information that comprise task result corresponding with described task identification, and feed back to described client.
In some instances, before the described asynchronous query request comprising task identification receiving client transmission, also Including: receive the task process request comprising parameter information that described client sends;Judge whether to have created and described Business is processed asks corresponding task;Ask corresponding task if not creating and processing with described task, believed according to described parameter Breath creates to process with described task asks corresponding task, and it is pending to put into thread pool of task manager etc.;By described Business task identification feed back to described client so that described client according to described task identification the process feelings to described task Condition carries out asynchronous query.
For reaching above-mentioned purpose, another kind of asynchronous task querying method that embodiment proposes according to a second aspect of the present invention, bag Include following steps:
Send the asynchronous query request comprising task identification to server, for described server lookup and described task mark Know corresponding task status;
Receive the processing information corresponding with described task status of described server feedback;
If described processing information does not comprise task result, display to the user that the summary info in described processing information.
The asynchronous task querying method of the embodiment of the present invention, sends, to server, the asynchronous query comprising task identification first Request, for server lookup task status corresponding with task identification, then the reception server feed back with task status pair The processing information answered, finally when processing information does not comprise task result, displays to the user that the summary info in processing information.By This, can be avoided the data query time under big data scene longer, improves efficiency data query, provide to client simultaneously and appoint The state that business is carried out, lifts Consumer's Experience.
In addition, asynchronous task querying method according to the above embodiment of the present invention can also have the technology spy adding as follows Levy:
In some instances, described method, also includes: if described processing information comprises task result, to user Show described task result.
For reaching above-mentioned purpose, a kind of server that embodiment proposes according to a third aspect of the present invention, comprising:
First receiver module, for receiving the asynchronous query request comprising task identification of client transmission;
Enquiry module, for inquiring about task status corresponding with described task identification;
Processing module, for when described task status shows unsuccessful, to described client feedback and described task mark Know corresponding processing information.
The server of the embodiment of the present invention, what the first first receiver module reception client sent comprises the different of task identification Step inquiry request, then enquiry module inquiry task status corresponding with task identification, last processing module shows in task status When showing unsuccessful, to client feedback processing information corresponding with task identification.Thus, it is possible to avoid number under big data scene Longer according to query time, improve efficiency data query, the state simultaneously carrying out to client offer task, lift Consumer's Experience.
In addition, server according to the above embodiment of the present invention can also have as follows add technical characteristic:
In some instances, described processing module is additionally operable to when described task status shows successfully, from file cache Read the processing information that comprise task result corresponding with described task identification, and feed back to described client.
In some instances, described server, also includes: the second receiver module, sends for receiving described client Comprise parameter information task process request;Judge module, is used for judging whether to have created being processed with described task and asks Corresponding task;Creation module, for when not creating with the described task process corresponding task of request, believing according to described parameter Breath creates to process with described task asks corresponding task, and it is pending to put into thread pool of task manager etc.;Feedback module, For the task identification of described task is fed back to described client, so as described client according to described task identification to described The disposition of task carries out asynchronous query.
For reaching above-mentioned purpose, a kind of client that embodiment proposes according to a third aspect of the present invention, comprising:
Sending module, for sending the asynchronous query request comprising task identification to server, so that described server is looked into Ask task status corresponding with described task identification;
3rd receiver module, for receiving the processing information corresponding with described task status of described server feedback;
Display module, for when described processing information does not comprise task result, displaying to the user that in described processing information Summary info.
The client of the embodiment of the present invention, first sending module send, to server, the asynchronous query comprising task identification please Ask, for server lookup task status corresponding with task identification, then the 3rd receiver module the reception server feedback with The corresponding processing information of task status, last display module, when processing information does not comprise task result, displays to the user that process Summary info in information.Thus, it is possible to avoid the data query time under big data scene longer, improve data query effect Rate, the state simultaneously carrying out to client offer task, lift Consumer's Experience.
In addition, client according to the above embodiment of the present invention can also have as follows add technical characteristic:
In some instances, described display module is additionally operable to, when described processing information comprises task result, show to user Show described task result.
The aspect that the present invention adds and advantage will be set forth in part in the description, and partly will become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description
Fig. 1 is the flow chart of asynchronous task querying method according to an embodiment of the invention;
Fig. 2 is the flow chart of asynchronous task querying method in accordance with another embodiment of the present invention;
Fig. 3 is the flow chart of the asynchronous task querying method according to another embodiment of the present invention;
Fig. 4 is the interactive schematic diagram of asynchronous task querying method according to an embodiment of the invention;
Fig. 5 is the structural representation of server according to an embodiment of the invention;
Fig. 6 is the structural representation of server in accordance with another embodiment of the present invention;And
Fig. 7 is the structural representation of client according to an embodiment of the invention.
Specific embodiment
Embodiments of the invention are described below in detail, the example of described embodiment is shown in the drawings, wherein from start to finish The element that same or similar label represents same or similar element or has same or like function.Below with reference to attached The embodiment of figure description is exemplary it is intended to be used for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings asynchronous task querying method and the equipment of the embodiment of the present invention are described.
Fig. 1 is the flow chart of asynchronous task querying method according to an embodiment of the invention.
Asynchronous task querying method shown in the present embodiment is described from server side.As shown in figure 1, the present invention is implemented Example asynchronous task querying method comprises the following steps:
In a step 101, receive the asynchronous query request comprising task identification that client sends.
Specifically, generally can by a http (hypertext transfer protocol, HTTP) To complete data query, but under big data scene, the data query time is longer, and asking between server and client Summation response does not have any feedback it is impossible to provide the user with the state that task is carried out, and in order to improve efficiency data query, needs one Plant asynchronous task querying method, data query is completed by multiple http, the completion status constantly returning task feeds back to user.
First, server can receive in several ways client transmission the asynchronous query comprising task identification please Ask.
Example one:
Network connection is set up by socket.
For example, when the connection request that server side socket listens to or receives client socket, just The request of customer in response end socket, sets up a new thread, the describing and confirm of client the reception server end socket Its description, both sides formally set up connection, and server receives the asynchronous query request comprising task identification that client sends.
Example two:
Linked by http.
For example, http connects is that each request that client sends is required for server back response, in request knot Shu Hou, can actively connect in release, and thus, the asynchronous query that what received server-side to client sent comprise task identification is asked Ask.
Wherein, in order to the asynchronous query distinguishing different task is asked, need to arrange task identification, be illustrated below: right In the asynchronous query request of task a, the task identification of setting task a is taska, to determine being that the asynchronous query to task a please Ask.
In a step 102, inquire about task status corresponding with task identification.
In step 103, if task status show unsuccessful, to client feedback process corresponding with task identification Information.
Specifically, after receiving the asynchronous query request comprising task identification, it is right that server is inquired about according to task identification The task status answered, and when task status display is unsuccessful, to client feedback processing information corresponding with task identification.
Continue to illustrate with above-mentioned task identification for taska, please receiving the asynchronous query that task identification is taska After asking, according to the state of taska corresponding task a of inquiry, obtain the process of unsuccessful backward client feedback taska of task a Information.
Wherein, processing information is selected according to being actually needed of different tasks to feed back to client, illustrates As follows: a task be ask 5 square, when task is unsuccessful, feedback taska processing information be sky;Or b task is to ask 10 Evolution, when task is unsuccessful, feedback taskb processing information be sky.
It should be noted that in the success of task status display, reading bag corresponding with task identification from file cache Processing information containing task result, and feed back to client.
Continue by a task be ask 5 square as a example illustrate, in Mission Success, from file cache read with The corresponding processing information of taska is 25.
Wherein, task result is entered row cache, the efficiency data query under big data scene can be improved further.
The asynchronous task querying method of the embodiment of the present invention, receive client transmission first comprises the asynchronous of task identification Inquiry request, then inquires about task status corresponding with task identification, finally when task status display is unsuccessful, to client Feed back processing information corresponding with task identification.Thus, it is possible to avoid the data query time under big data scene longer, improve Efficiency data query, the state simultaneously carrying out to client offer task, lift Consumer's Experience.
Fig. 2 is the flow chart of asynchronous task querying method in accordance with another embodiment of the present invention.
As shown in Fig. 2 embodiment of the present invention asynchronous task querying method comprises the following steps:
In step 201, receive the task process request comprising parameter information that client sends.
Specifically, after server is set up with client and is connected, receive the task of comprising parameter information that client sends Process request.Wherein, server can receive in several ways client transmission comprise parameter information task process please Ask.Specifically describe referring to above-mentioned steps 101, no longer describe in detail herein.
In step 202., judge whether to have created to process with task and ask corresponding task.
In step 203, ask corresponding task if not creating and processing with task, created according to parameter information and appoint Business is processed asks corresponding task, and it is pending to put into thread pool of task manager etc..
Specifically, after the task of comprising parameter information receiving client transmission processes request, server judges to appoint Business is processed asks whether corresponding task has created, and in the case of not creating, at parameter information establishment and task Reason asks corresponding task, and it is pending to put into thread pool of task manager etc..
Wherein, parameter information is selected according to being actually needed of different tasks, is illustrated below: a task is to ask 5 Square, parameter information be 5.
The mode whether corresponding task has created is asked to have much it should be noted that server judges that task is processed Kind, it is illustrated below:
Example one:
Query argument information and the mapping table of task, obtain task corresponding with parameter information.
For example, request is processed according to the task that the parameter information receiving client transmission is 5, according to parameter information 5 Search whether to comprise the task of parameter information 5.
Example two:
Obtain a result by parameter information is inputted default algorithm, parameter information is determined whether according to result Task.
For example, parameter information 5 is obtained result a by default algorithm, determine whether to join according to result a The task of number information 5.
It should be noted that in the case that the process of judgement task asks corresponding task to create, then not needing to build Vertical process with task asks corresponding task.
In step 204, the task identification of task is fed back to client, so as client according to task identification to task Disposition carry out asynchronous query.
In step 205, receive the asynchronous query request comprising task identification that client sends.
In step 206, inquire about task status corresponding with task identification.
In step 207, if task status show unsuccessful, to client feedback process corresponding with task identification Information.
In a step 208, if task status shows successfully, read bag corresponding with task identification from file cache Processing information containing task result, and feed back to client.
Wherein, the task identification of task is fed back to client by server, is in order to when task status display is unsuccessful, So that client carries out asynchronous query again according to task identification to the disposition of task, i.e. execution step 205 again.
It should be noted that the description of step s205-s207 is corresponding with above-mentioned steps s101-s103, therefore to step The description of rapid s205-s207, with reference to the description of above-mentioned steps s101-s103, will not be described here.
It should be noted that in the success of task status display, reading bag corresponding with task identification from file cache Processing information containing task result, and feed back to client.
The asynchronous task querying method of the embodiment of the present invention, receive client transmission first comprises the asynchronous of task identification Inquiry request, then inquires about task status corresponding with task identification, finally when task status display is unsuccessful, to client Feed back processing information corresponding with task identification.Thus, it is possible to avoid the data query time under big data scene longer, improve Efficiency data query, the state simultaneously carrying out to client offer task, lift Consumer's Experience.
Fig. 3 is the flow chart of the asynchronous task querying method according to another embodiment of the present invention.Shown in the present embodiment Asynchronous task querying method is described from client-side such as web browser.As shown in figure 3, this asynchronous task querying method Comprise the following steps:
In step 301, to server send comprise task identification asynchronous query request, for server lookup with appoint Business identifies corresponding task status.
Specifically, after server is set up with client and is connected, user end to server sends and comprises the different of task identification Step inquiry request.Wherein, what client can send in several ways comprises the asynchronous query request of task identification.Specifically retouch State referring to above-mentioned steps 101, no longer describe in detail herein.
In step 302, the processing information corresponding with task status of the reception server feedback.
In step 303, if processing information does not comprise task result, display to the user that the summary letter in processing information Breath.
Specifically, after send the asynchronous query request comprising task identification to server, so that server is according to task Mark inquires about corresponding task status, then the processing information corresponding with task status of client the reception server feedback, When processing information does not comprise task result, represent that task is also waiting pending or present, display to the user that process letter Summary info in breath, that is, provide the user with the state that task is carried out, and lifts Consumer's Experience further.
If it should be noted that processing information comprises task result, displaying to the user that task result.
The asynchronous task querying method of the embodiment of the present invention, sends, to server, the asynchronous query comprising task identification first Request, for server lookup task status corresponding with task identification, then the reception server feed back with task status pair The processing information answered, finally when processing information does not comprise task result, displays to the user that the summary info in processing information.By This, can be avoided the data query time under big data scene longer, improves efficiency data query, provide to client simultaneously and appoint The state that business is carried out, lifts Consumer's Experience.
In order to above-mentioned implementation process is more clearly described, illustrated with squared task citing by Fig. 4, specifically Step is as follows:
Step 1: client sends the task that parameter information is { x:5 } and processes request.
Step 2: whether whois lookup has the task of parameter information x=5, does not find, creates task task1, { taskid:1, state:wait, x:5, }, puts into thread pool of task manager etc. pending.
Step 3: server, according to taskid query task state, if task state (state) is not success, returns Return task snapshot, comprise essential information { taskid:1, state:run, x=5, summary:{ runtime=4s }, result: Null }, if task state is success, read mission bit stream from file cache, than result=more than task snapshot 25.
Step 4: { taskid:1, state:run, x=5, the summary:{ runtime of client the reception server feedback =4s }, result:25 }.
Step 5: if state is success, directly show result, task terminates, if state is not Success, client sends { taskid:1 } after 1s, and shows the information in summary, and server enters step 3
The asynchronous task querying method of the embodiment of the present invention, comprises task identification by what server reception client sent Asynchronous query request, then server lookup task status corresponding with task identification, does not finally become in task status display During work(, to client feedback processing information corresponding with task identification.Thus, it is possible to avoid data query under big data scene Time is longer, improves efficiency data query, the state simultaneously carrying out to client offer task, lifts Consumer's Experience.
In order to realize above-described embodiment, the invention allows for a kind of server.
Fig. 5 is the structural representation of server according to an embodiment of the invention, as shown in figure 5, this server includes: First receiver module 510, enquiry module 520 and processing module 530.
Wherein, the first receiver module 510 is used for receiving the asynchronous query request comprising task identification of client transmission.
Enquiry module 520 is used for inquiring about task status corresponding with task identification.
Processing module 530 is used for when task status display is unsuccessful, to client feedback place corresponding with task identification Reason information.
Specifically, after receiving the asynchronous query request comprising task identification, it is right that server is inquired about according to task identification The task status answered, and when task status display is unsuccessful, to client feedback processing information corresponding with task identification.
It should be noted that processing module 530 be additionally operable to task status display success when, from file cache read with The corresponding processing information comprising task result of task identification, and feed back to client.
It should be noted that the aforementioned explanation to asynchronous task querying method embodiment is also applied for this embodiment Server, it is realized principle and is similar to, and here is omitted.
The server of the embodiment of the present invention, what the first first receiver module reception client sent comprises the different of task identification Step inquiry request, then enquiry module inquiry task status corresponding with task identification, last processing module shows in task status When showing unsuccessful, to client feedback processing information corresponding with task identification.Thus, it is possible to avoid number under big data scene Longer according to query time, improve efficiency data query, the state simultaneously carrying out to client offer task, lift Consumer's Experience.
Fig. 6 is the structural representation of server in accordance with another embodiment of the present invention, as shown in fig. 6, as shown in Figure 5 On the basis of, this server also includes: the second receiver module 540, judge module 550, creation module 560 and feedback module 570.
Wherein, the second receiver module 540 is used for receiving the task process request comprising parameter information of client transmission.
Judge module 550 is used for judging whether to have created processing with task asks corresponding task.
Creation module 560 be used for do not create with task process ask corresponding task when, according to parameter information create with Task is processed asks corresponding task, and it is pending to put into thread pool of task manager etc..
Feedback module 570 is used for the task identification of task being fed back to client, so that client is according to task identification pair The disposition of task carries out asynchronous query.
Specifically, after the task of comprising parameter information receiving client transmission processes request, server judges to appoint Business is processed asks whether corresponding task has created, and in the case of not creating, at parameter information establishment and task Reason asks corresponding task, and it is pending to put into thread pool of task manager etc..
It should be noted that in the case that the process of judgement task asks corresponding task to create, then not needing to build Vertical process with task asks corresponding task.
It should be noted that the aforementioned explanation to asynchronous task querying method embodiment is also applied for this embodiment Server, it is realized principle and is similar to, and here is omitted.
The server of the embodiment of the present invention, what the first first receiver module reception client sent comprises the different of task identification Step inquiry request, then enquiry module inquiry task status corresponding with task identification, last processing module shows in task status When showing unsuccessful, to client feedback processing information corresponding with task identification.Thus, it is possible to avoid number under big data scene Longer according to query time, improve efficiency data query, the state simultaneously carrying out to client offer task, lift Consumer's Experience.
In order to realize above-described embodiment, the invention allows for a kind of client.
Fig. 7 is the structural representation of client according to an embodiment of the invention, as shown in fig. 7, this client includes: Sending module 710, the 3rd receiver module 720 and display module 730.
Wherein, sending module 710 is used for sending the asynchronous query request comprising task identification to server, for server Inquire about task status corresponding with described task identification.
3rd receiver module 720 is used for the processing information corresponding with task status of the reception server feedback.
Display module 730 is used for, when processing information does not comprise task result, displaying to the user that the summary in processing information Information.
Specifically, after send the asynchronous query request comprising task identification to server, so that server is according to task Mark inquires about corresponding task status, then the processing information corresponding with task status of client the reception server feedback, When processing information does not comprise task result, represent that task is also waiting pending or present, display to the user that process letter Summary info in breath, that is, provide the user with the state that task is carried out, and lifts Consumer's Experience further.
If it should be noted that display module 730 is additionally operable to processing information comprises task result, displays to the user that and appoint Business result.
It should be noted that the aforementioned explanation to asynchronous task querying method embodiment is also applied for this embodiment Client, it is realized principle and is similar to, and here is omitted.
The client of the embodiment of the present invention, first sending module send, to server, the asynchronous query comprising task identification please Ask, for server lookup task status corresponding with task identification, then the 3rd receiver module the reception server feedback with The corresponding processing information of task status, last display module, when processing information does not comprise task result, displays to the user that process Summary info in information.Thus, it is possible to avoid the data query time under big data scene longer, improve data query effect Rate, the state simultaneously carrying out to client offer task, lift Consumer's Experience.
Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or hint relative importance Or the implicit quantity indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or Implicitly include at least one this feature.In describing the invention, " multiple " are meant that at least two, such as two, three Individual etc., unless otherwise expressly limited specifically.
In the description of this specification, reference term " embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy describing with reference to this embodiment or example Point is contained at least one embodiment or the example of the present invention.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Additionally, in the case of not conflicting, those skilled in the art is permissible The feature of the different embodiments described in this specification or example and different embodiment or example is combined and combines.
Although embodiments of the invention have been shown and described above it is to be understood that above-described embodiment is example Property it is impossible to be interpreted as limitation of the present invention, those of ordinary skill in the art within the scope of the invention can be to above-mentioned Embodiment is changed, changes, replacing and modification.

Claims (10)

1. a kind of asynchronous task querying method is it is characterised in that comprise the following steps:
Receive the asynchronous query request comprising task identification that client sends;
Inquire about task status corresponding with described task identification;
If described task status shows unsuccessful, to described client feedback process corresponding with described task identification letter Breath.
2. the method for claim 1 is it is characterised in that also include:
If described task status shows successfully, read comprise task corresponding with described task identification from file cache and tie The processing information of fruit, and feed back to described client.
3. the method for claim 1 is it is characterised in that comprise the different of task identification what described reception client sent Before step inquiry request, also include:
Receive the task process request comprising parameter information that described client sends;
Judge whether to have created to process with described task and ask corresponding task;
Ask corresponding task if not creating and processing with described task, at the establishment of described parameter information and described task Reason asks corresponding task, and it is pending to put into thread pool of task manager etc.;
The task identification of described task is fed back to described client, so as described client according to described task identification to described The disposition of task carries out asynchronous query.
4. a kind of asynchronous task querying method is it is characterised in that comprise the following steps:
Send the asynchronous query request comprising task identification to server, for described server lookup and described task identification pair The task status answered;
Receive the processing information corresponding with described task status of described server feedback;
If described processing information does not comprise task result, display to the user that the summary info in described processing information.
5. method as claimed in claim 4 is it is characterised in that also include:
If described processing information comprises task result, display to the user that described task result.
6. a kind of server is it is characterised in that include:
First receiver module, for receiving the asynchronous query request comprising task identification of client transmission;
Enquiry module, for inquiring about task status corresponding with described task identification;
Processing module, for when described task status shows unsuccessful, to described client feedback and described task identification pair The processing information answered.
7. server as claimed in claim 6 it is characterised in that
Described processing module is additionally operable to when described task status shows successfully, reads and described task identification from file cache The corresponding processing information comprising task result, and feed back to described client.
8. server as claimed in claim 6 is it is characterised in that also include:
Second receiver module, processes request for receiving the task of comprising parameter information that described client sends;
Judge module, is used for judging whether to have created being processed with described task and asks corresponding task;
Creation module, for when not creating with the described task process corresponding task of request, creating according to described parameter information Process with described task and ask corresponding task, and it is pending to put into thread pool of task manager etc.;
Feedback module, for the task identification of described task is fed back to described client, so that described client is according to described Task identification carries out asynchronous query to the disposition of described task.
9. a kind of client is it is characterised in that include:
Sending module, for server send comprise task identification asynchronous query request, for described server lookup with The corresponding task status of described task identification;
3rd receiver module, for receiving the processing information corresponding with described task status of described server feedback;
Display module, for when described processing information does not comprise task result, displaying to the user that plucking in described processing information Want information.
10. client as claimed in claim 9 is it is characterised in that also include:
Described display module is additionally operable to, when described processing information comprises task result, display to the user that described task result.
CN201610702418.6A 2016-08-22 2016-08-22 Asynchronous task checking method and equipment Pending CN106339440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610702418.6A CN106339440A (en) 2016-08-22 2016-08-22 Asynchronous task checking method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610702418.6A CN106339440A (en) 2016-08-22 2016-08-22 Asynchronous task checking method and equipment

Publications (1)

Publication Number Publication Date
CN106339440A true CN106339440A (en) 2017-01-18

Family

ID=57824321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610702418.6A Pending CN106339440A (en) 2016-08-22 2016-08-22 Asynchronous task checking method and equipment

Country Status (1)

Country Link
CN (1) CN106339440A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107786544A (en) * 2017-09-29 2018-03-09 贵州白山云科技有限公司 The task status processing method and system of a kind of message
CN107798108A (en) * 2017-10-30 2018-03-13 中国联合网络通信集团有限公司 A kind of asynchronous task querying method and equipment
CN108596624A (en) * 2018-03-14 2018-09-28 阿里巴巴集团控股有限公司 Handling result, payment result acquisition methods and the device of service request
CN110825736A (en) * 2019-10-17 2020-02-21 上海易点时空网络有限公司 Method, device and system for asynchronously calling data
WO2020098284A1 (en) * 2018-11-16 2020-05-22 华为技术有限公司 Communication method, client device, and server device
CN112579308A (en) * 2019-09-27 2021-03-30 北京国双科技有限公司 Task processing method and system
CN112818202A (en) * 2019-11-18 2021-05-18 北京京东振世信息技术有限公司 Data query method and device
CN112835725A (en) * 2021-01-19 2021-05-25 北京电解智科技有限公司 Web communication method and device
CN113065054A (en) * 2021-03-31 2021-07-02 北京达佳互联信息技术有限公司 Request processing method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935612A (en) * 2014-03-17 2015-09-23 深圳市金蝶友商电子商务服务有限公司 Data processing method and server
CN105635083A (en) * 2014-11-14 2016-06-01 航天信息股份有限公司 Service processing method and service processing system based on server and client architecture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935612A (en) * 2014-03-17 2015-09-23 深圳市金蝶友商电子商务服务有限公司 Data processing method and server
CN105635083A (en) * 2014-11-14 2016-06-01 航天信息股份有限公司 Service processing method and service processing system based on server and client architecture

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107786544A (en) * 2017-09-29 2018-03-09 贵州白山云科技有限公司 The task status processing method and system of a kind of message
CN107786544B (en) * 2017-09-29 2018-08-17 贵州白山云科技有限公司 A kind of the task status processing method and system of message
CN107798108A (en) * 2017-10-30 2018-03-13 中国联合网络通信集团有限公司 A kind of asynchronous task querying method and equipment
CN107798108B (en) * 2017-10-30 2020-11-10 中国联合网络通信集团有限公司 Asynchronous task query method and device
CN108596624A (en) * 2018-03-14 2018-09-28 阿里巴巴集团控股有限公司 Handling result, payment result acquisition methods and the device of service request
WO2019174418A1 (en) * 2018-03-14 2019-09-19 阿里巴巴集团控股有限公司 Method and apparatus for acquiring processing result of service request and payment result
WO2020098284A1 (en) * 2018-11-16 2020-05-22 华为技术有限公司 Communication method, client device, and server device
CN111200578A (en) * 2018-11-16 2020-05-26 华为技术有限公司 Communication method, client device and server device
EP3860074A4 (en) * 2018-11-16 2021-12-01 Huawei Technologies Co., Ltd. Communication method, client device, and server device
CN112579308A (en) * 2019-09-27 2021-03-30 北京国双科技有限公司 Task processing method and system
CN110825736A (en) * 2019-10-17 2020-02-21 上海易点时空网络有限公司 Method, device and system for asynchronously calling data
CN112818202A (en) * 2019-11-18 2021-05-18 北京京东振世信息技术有限公司 Data query method and device
CN112835725A (en) * 2021-01-19 2021-05-25 北京电解智科技有限公司 Web communication method and device
CN113065054A (en) * 2021-03-31 2021-07-02 北京达佳互联信息技术有限公司 Request processing method and device, electronic equipment and storage medium
CN113065054B (en) * 2021-03-31 2024-03-01 北京达佳互联信息技术有限公司 Request processing method, request processing device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106339440A (en) Asynchronous task checking method and equipment
US20140297809A1 (en) Apparatus and method for processing multiple open apis
CN105843900B (en) Information query method and device
CN111176858A (en) Data request processing method and device
KR20010031946A (en) Processing extended transactions in a client-server system
TW202004610A (en) Online customer service system, user end, server, customer service end and method
WO2010110788A1 (en) Capturing an application state
US9009602B2 (en) Assisted browser navigation
JP6763654B2 (en) Network systems, servers, programs, and terminals
CN106254206A (en) A kind of information processing method and equipment
US20140280699A1 (en) Method and apparatus for enabling discovery and communications between unrelated browser sessions
CN114968454B (en) Flow arrangement, display method, head-mounted display device, and computer-readable medium
CN104270405A (en) Networking control method and device based on router
CN107295003B (en) Data transmission method, device and system
JP2014524615A (en) Method, device, and computer-readable storage medium for client interaction of network applications executed by a computer
CN106250078A (en) A kind of display terminal control method and equipment
CN110324419B (en) Data processing method and equipment based on cloud service
CN106454403B (en) Data display method, equipment and system
CN107832342B (en) Robot chatting method and system
CN107294911B (en) Data packet monitoring method and device, remote procedure call system and equipment
CN108390817A (en) Sharing method, device and the electronic equipment of information
CN114564270B (en) List component rendering and front-end display method, device, equipment and medium of page
CN116173495A (en) Game progress distribution control method and device, electronic equipment and storage medium
CN113656719B (en) Data rendering method, system, electronic device and storage medium
CN114723367A (en) Distribution method, system and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170118