CN110471718A - A kind of task processing method and equipment - Google Patents

A kind of task processing method and equipment Download PDF

Info

Publication number
CN110471718A
CN110471718A CN201910599726.4A CN201910599726A CN110471718A CN 110471718 A CN110471718 A CN 110471718A CN 201910599726 A CN201910599726 A CN 201910599726A CN 110471718 A CN110471718 A CN 110471718A
Authority
CN
China
Prior art keywords
subtask
target
processing
task
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910599726.4A
Other languages
Chinese (zh)
Other versions
CN110471718B (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.)
Shenzhen Gongtong Electronics Co Ltd
Original Assignee
Shenzhen Gongtong Electronics 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 Shenzhen Gongtong Electronics Co Ltd filed Critical Shenzhen Gongtong Electronics Co Ltd
Priority to CN201910599726.4A priority Critical patent/CN110471718B/en
Publication of CN110471718A publication Critical patent/CN110471718A/en
Application granted granted Critical
Publication of CN110471718B publication Critical patent/CN110471718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention is suitable for field of communication technology, provides a kind of task processing method and equipment, comprising: is parsed to obtain the task processing to task processing request and requests corresponding subtask processing request;Based on the corresponding relationship between subtask processing request, default subtask processing request and default application programming interface, determine that corresponding application programming interface is requested in the subtask processing;Based on the corresponding presupposed information of the application programming interface, determine that corresponding target subtask and its corresponding target processing function are requested in the subtask processing;Processing sequence based on all target subtasks, the corresponding target in each target subtask handle function, execute all target subtasks.Above scheme, each target subtask independently execute, and the logic degree of coupling between each target subtask reduces, and when modifying parameter, request corresponding task without re-executing task processing, promote response speed and system stability.

Description

A kind of task processing method and equipment
Technical field
The invention belongs to field of communication technology more particularly to a kind of task processing method and equipment.
Background technique
The case where router (Router) is the equipment for connecting each local area network, wide area network in internet, it can be according to channel Routing is automatically selected and set, with optimal path, sends signal by tandem.Existing router is in the task of execution, meeting Come quickly to customize and modify parameter according to Software Development Kit (Software Development Kit, SDK).
But the existing task processing system degree of coupling is high, when modifying the parameter of a certain task every time, will re-execute Corresponding task is requested in task processing, will lead to that response speed is slow, system stability is poor in this way.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of task processing method and equipment, to solve to appoint in the prior art The processing system degree of coupling of being engaged in is high, when modifying the parameter of a certain task every time, will restart entire application layer, will lead in this way The problem that response speed is slow, system stability is poor.
The first aspect of the embodiment of the present invention provides a kind of task processing method, comprising:
The processing request of acquisition task parses task processing request, obtains the task processing request and corresponds to Subtask handle request;
Based between subtask processing request, default subtask processing request and default application programming interface Corresponding relationship determines that corresponding application programming interface is requested in the subtask processing;
Based on the corresponding presupposed information of the application programming interface, determine that corresponding mesh is requested in the subtask processing It marks subtask and its corresponding target handles function;Wherein, the presupposed information is for parsing the subtask processing request;
Processing sequence based on all target subtasks, the corresponding target in each target subtask handle letter Number executes all target subtasks;Wherein, the processing sequence of all target subtasks is asked by subtask processing The sequencing asked determines.
The second aspect of the embodiment of the present invention provides a kind of Task Processing Unit, comprising:
Acquiring unit parses task processing request, obtains the task for obtaining task processing request Corresponding subtask processing request is requested in processing;
First determination unit, for based on subtask processing request, default subtask processing request and default application Corresponding relationship between Program Interfaces determines that corresponding application programming interface is requested in the subtask processing;
Second determination unit determines that the son is appointed for being based on the corresponding presupposed information of the application programming interface Business processing requests corresponding target subtask and its corresponding target to handle function;Wherein, the presupposed information is for parsing institute State subtask processing request;
Execution unit, it is corresponding for the processing sequence based on all target subtasks, each target subtask Target handle function, execute all target subtasks;Wherein, the processing sequence of all target subtasks is by described The sequencing of subtask processing request determines.
The third aspect of the embodiment of the present invention provides a kind of task processing equipment, including memory, processor and deposits The computer program that can be run in the memory and on the processor is stored up, the processor executes the computer journey The step of task processing method as described in above-mentioned first aspect is realized when sequence.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the task as described in above-mentioned first aspect is realized when the computer program is executed by processor The step of processing method.
In the embodiment of the present invention, task processing request is obtained, task processing request is parsed, described appoint is obtained Corresponding subtask processing request is requested in business processing;It is requested based on subtask processing request, default subtask processing and pre- If the corresponding relationship between application programming interface, determine that the subtask processing requests corresponding application programming to connect Mouthful;Based on the corresponding presupposed information of the application programming interface, determine that corresponding target is requested in the subtask processing Task and its corresponding target handle function;Processing sequence, each target based on all target subtasks are appointed Corresponding target of being engaged in handles function, executes all target subtasks;Wherein, the processing sequence of all target subtasks It is determined by the sequencing of subtask processing request.In above scheme, each target subtask is independently executed, so that respectively The degree of coupling of logic between a target subtask substantially reduces, when modifying the parameter of a certain task every time, as long as modifying this It is engaged in corresponding parameter, requests corresponding task without re-executing task processing, as long as re-executing target of modification Task can improve response speed and system stability.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of schematic flow diagram of task processing method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow diagram that S104 is refined in a kind of task processing method provided in an embodiment of the present invention;
Fig. 3 is the schematic flow diagram of another task processing method provided in an embodiment of the present invention;
Fig. 4 is the schematic flow diagram of another task processing method provided in an embodiment of the present invention;
Fig. 5 is the schematic flow diagram of S304 refinement in another task processing method provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of Task Processing Unit provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram for the task processing equipment that one embodiment of the invention provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Referring to Figure 1, Fig. 1 is a kind of schematic flow diagram of task processing method provided in an embodiment of the present invention.This implementation The executing subject of task processing method is task processing equipment in example.Task processing method as shown in Figure 1 can include:
S101: obtaining task processing request, parses to task processing request, obtains the task processing request Corresponding subtask processing request.
Task processing equipment obtain task processing request, wherein task processing request can be task processing equipment from its What his equipment obtained, it is also possible to trigger generation by user.Task processing request can resolve to multiple subtask processing requests. Task processing equipment parses task processing request, obtains task processing and requests corresponding subtask processing request.Citing For, the configuration information of user interface (User Interface, UI) is first issued to Web server, so that front end and Web take Business device establishes connection, and user can trigger the processing request of generation task, Web server by the operations such as clicking or inputting in UI Thread parsing task processing request of the notice for task parsing, the thread for task parsing carry out the parsing of next step, will Task processing request analysis obtains task processing and requests corresponding subtask processing request.
S102: based on subtask processing request, default subtask processing request and default application programming interface Between corresponding relationship, determine that corresponding application programming interface is requested in subtask processing.
Default subtask processing request, default application programming interface, default son are preset in task processing equipment Corresponding relationship between task processing request and default application programming interface.Application Programming Interface (Application Programming Interface, API), also known as application programming interfaces are the pacts of software systems difference component part linking It is fixed, in the present embodiment, the thread of the subtask of corresponding processing is assured that based on default application programming interface.
Task processing equipment is based on subtask processing request, default subtask processing request and default application programming and connects Corresponding relationship between mouthful determines that corresponding application programming interface is requested in subtask processing, that is, confirmed that handling the son appoints The thread of business.
S103: being based on the corresponding presupposed information of the application programming interface, determines the subtask processing request pair The target subtask answered and its corresponding target handle function;Wherein, the presupposed information is for parsing the subtask processing Request.
Task processing equipment has determined that the processing thread of corresponding subtask is requested in subtask processing, task processing equipment In preset the corresponding presupposed information of application programming interface, wherein presupposed information for parse subtask processing request, So that it is determined that subtask processing requests corresponding target subtask and its corresponding target to handle function.Task processing equipment is based on The corresponding presupposed information of application programming interface, the processing request of parsing subtask determine that corresponding mesh is requested in subtask processing It marks subtask and its corresponding target handles function.Wherein, each processing function has specific composition format, such as: Start_xxxx, restart_xxxx, stop_xxxx (xxxx represents the title for handling the thread of subtask).
S104: processing sequence based on all target subtasks, at the corresponding target in each target subtask Function is managed, all target subtasks are executed;Wherein, the processing sequence of all target subtasks is by the subtask The sequencing of reason request determines.
Task processing equipment obtains the processing sequence of target subtask, and the processing sequence of target subtask is handled by subtask The sequencing of request determines, wherein the sequencing of subtask processing request is to handle request by parsing task, When the processing request of parsing task, task processing request is split into several subtask processing requests, and parse at subtask The sequencing that reason request executes.Function is handled based on the corresponding target in each target subtask, according to the place of target subtask Make the independent each target subtask of execution of sequence, i.e. response task processing request in order.In this way, each target subtask is independently held Row, so that the degree of coupling of the logic between each target subtask substantially reduces.
Further, in order to avoid frequent operation business, waste of resource reduce user experience, S104 may include S1041 ~S1044, as shown in Fig. 2, S1041~S1044 is specific as follows:
S1041: the target subtask and its corresponding target processing function are added to the task processing request pair The task queue answered.
When task processing equipment gets task processing request, corresponding task queue is requested in the task processing of generation, should Task processing can be stored in task queue requests corresponding multiple subtasks.Task processing equipment is by target subtask and its right The target processing function answered, which is added to task processing, requests corresponding task queue.Wherein, target subtask and its correspondence are added Target processing function sequence can be added according to the processing sequence of target subtask.
S1042: traversing the task queue, when the processing letter for detecting first object subtask in the task queue When several identical as the target of the second target subtask processing function, merge the first object subtask and second target Task obtains new target subtask.
Task processing equipment traverses task queue, and the target for obtaining the target subtask in task queue handles function, inspection Target subtask identical with the presence or absence of target processing function is surveyed, when the place for detecting first object subtask in task queue When reason function is identical as the target of the second target subtask processing function, merge first object subtask and the second target subtask Obtain new target subtask.
S1043: the processing sequence of all target subtasks in the task queue is updated.
Task processing equipment based on the target subtask not merged in new target subtask and task queue, Update the processing sequence of all target subtasks in task queue.Wherein it is possible to obtain first object subtask and the second target The processing sequence of subtask, the processing sequence of the preceding target subtask of processing sequence is as new target subtask using in the two Processing sequence, the processing sequence of processing sequence and the target subtask not merged based on new target subtask, Update the processing sequence of all target subtasks in task queue.
S1044: handling function based on the updated processing sequence, the corresponding target in each target subtask, Execute all target subtasks.
S1044 is identical as the step in S104, specifically can be refering to S104, and details are not described herein again.
In the embodiment of the present invention, task processing request is obtained, task processing request is parsed, described appoint is obtained Corresponding subtask processing request is requested in business processing;It is requested based on subtask processing request, default subtask processing and pre- If the corresponding relationship between application programming interface, determine that the subtask processing requests corresponding application programming to connect Mouthful;Based on the corresponding presupposed information of the application programming interface, determine that corresponding target is requested in the subtask processing Task and its corresponding target handle function;Processing sequence, each target based on all target subtasks are appointed Corresponding target of being engaged in handles function, executes all target subtasks;Wherein, the processing sequence of all target subtasks It is determined by the sequencing of subtask processing request.In above scheme, each target subtask is independently executed, so that respectively The degree of coupling of logic between a target subtask substantially reduces, as long as modifying the corresponding parameter of the task, without again Corresponding task is requested in the processing of execution task, if the target subtask for re-executing modification can improve response speed and System stability.
Fig. 3 is referred to, Fig. 3 is the schematic flow diagram of another task processing method provided in an embodiment of the present invention.This reality The executing subject for applying task processing method in example is task processing equipment.In order to get default subtask processing request and preset Corresponding relationship between application programming interface, so that task processing request can further be split, the present embodiment and upper one The difference of embodiment is S201~S202, and S203~S206 is identical as S101~S104, specifically refers to an embodiment, S201~S202 is executed before S204, and S201~S202 is specific as follows:
S201: subtask processing is preset based on common interface function registration and requests corresponding default application programming interface Function determines that corresponding default application programming interface is requested in the default subtask processing.
Task processing equipment is based on common interface function registration and presets the corresponding default application program of subtask processing request Programming interface function, that is to say, that task processing equipment is each for handling the line of subtask based on common interface function registration The default application programming interface function of journey can just determine the default using journey of the thread for handling subtask after registration Sequence programming interface, and task processing is parsed and distributes subtask processing request.Task processing equipment is registered in advance If after application programming interface function, can determine that default subtask processing requests corresponding default application programming to connect Mouthful.
S202: by the default subtask processing request and its corresponding default application programming interface associated storage.
Default subtask is handled request to task processing equipment and its corresponding default application programming interface association is deposited Storage, the corresponding pass between the default subtask processing request of generation in task processing equipment and default application programming interface System.
Fig. 4 is referred to, Fig. 4 is the schematic flow diagram of another task processing method provided in an embodiment of the present invention.This reality The executing subject for applying task processing method in example is task processing equipment.In order to detect the corresponding execution of task processing request When instruction, response task processing request saves system resource, and can control the time of response, the present embodiment and first is in fact The difference for applying example is S304~S305, and S301~S303 is identical as S101~S103, and S304~S305 is the refinement to S104, S304~S305 is specific as follows:
S304: the target subtask and its corresponding target processing function are added to the task processing request and corresponded to Task queue.
S304 is identical as S1041, specifically can be refering to S104, and details are not described herein again.
Further, in order to guarantee not malfunction during performance objective subtask, S304 may include S3041~ S3042, as shown in figure 5, S3041~S3042 is specific as follows:
S3041: obtaining the configuration information of the target subtask, judges the target subtask based on the configuration information Whether preset condition is met.
Task processing equipment obtains the configuration information of target subtask, and the configuration information of target subtask includes that target is appointed The parameter information of business judges whether target subtask meets preset condition based on configuration information.Wherein, preset condition is for judging Whether target subtask is legal, and preset condition can be for one or multiple, for example, can be to the parameter of target subtask Boundary is judged, when eligible, target subtask is legal, can be executed.
Further, it when target subtask is unsatisfactory for preset condition, in order to economize on resources, after S3041, can wrap It includes: when the target subtask is unsatisfactory for preset condition, determining that the target subtask is illegal, refuse to respond the task Processing request.When target subtask is unsatisfactory for preset condition, determine that target subtask is illegal, refuses to respond task processing and ask It asks, at this point, target subtask is illegal, target subtask can not be continued to execute, also cannot respond to task processing request, terminate whole A process.
S3042: when the target subtask meets preset condition, determine that the target subtask is legal, by the mesh Mark subtask and its corresponding target processing function are added to the task processing and request corresponding task queue.
Task processing equipment is got when target subtask meets preset condition, determines that target subtask is legal, can be with It continues to execute, target subtask and its corresponding target processing function is added to task processing and request corresponding task queue, Etc. pending.
S305: when detecting that corresponding execute instruction is requested in the task processing, based on all in the task queue The processing sequence of target subtask, the corresponding target in each target subtask handle function, execute all targets Task.
Task processing equipment detects whether that detecting that task processing request is corresponding executes instruction, wherein task processing is asked It asks corresponding execute instruction that can artificially be triggered by user, can also be triggered at pre-set time point.Work as detection When being executed instruction to task processing request is corresponding, the processing sequence of all target subtasks, each mesh in task based access control queue It marks the corresponding target in subtask and handles function, execute all target subtasks.Specifically execute the details of all target subtasks S104 is please referred to, is not repeated herein.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Fig. 6 is referred to, Fig. 6 is the schematic diagram of Task Processing Unit provided in an embodiment of the present invention.Including each unit use In executing each step in the corresponding embodiment of FIG. 1 to FIG. 5, referring specifically to the phase in the corresponding embodiment of FIG. 1 to FIG. 5 Close description.For ease of description, only the parts related to this embodiment are shown.Referring to Fig. 6, Task Processing Unit 6 includes:
Acquiring unit 610 parses task processing request, obtains described for obtaining task processing request Corresponding subtask processing request is requested in task processing;
First determination unit 620 is answered for being handled request, default subtask processing request based on the subtask and being preset With the corresponding relationship between Program Interfaces, determine that corresponding application programming interface is requested in the subtask processing;
Second determination unit 630 determines the son for being based on the corresponding presupposed information of the application programming interface Task processing requests corresponding target subtask and its corresponding target to handle function;Wherein, the presupposed information is for parsing The subtask processing request;
Execution unit 640, for the processing sequence based on all target subtasks, each target subtask pair The target processing function answered, executes all target subtasks;Wherein, the processing sequence of all target subtasks is by institute The sequencing for stating subtask processing request determines.
Further, Task Processing Unit, further includes:
Third determination unit requests corresponding default application for presetting subtask processing based on common interface function registration Program Interfaces function determines that corresponding default application programming interface is requested in the default subtask processing;
Storage unit, for closing the default subtask processing request and its corresponding default application programming interface Connection storage.
Further, execution unit 640, comprising:
Adding unit, for the target subtask and its corresponding target processing function to be added to the task and handle Request corresponding task queue;
First execution unit, for being appointed based on described when detecting that corresponding execute instruction is requested in the task processing The processing sequence of all target subtasks in queue, the corresponding target in each target subtask of being engaged in handle function, execute institute There is the target subtask.
Further, adding unit is specifically used for:
The configuration information of the target subtask is obtained, judges whether the target subtask is full based on the configuration information Sufficient preset condition;
When the target subtask meets preset condition, determine that the target subtask is legal, target is appointed Business and its corresponding target processing function are added to the task processing and request corresponding task queue.
Further, adding unit is specifically used for:
When the target subtask is unsatisfactory for preset condition, determines that the target subtask is illegal, refuse to respond institute State task processing request.
Further, execution unit 640 are specifically used for:
The target subtask and its corresponding target processing function are added to task processing request corresponding Business queue;
The task queue is traversed, when the processing function for detecting first object subtask in the task queue and When the target processing function of two target subtasks is identical, merges the first object subtask and second target subtask and obtain To new target subtask;
Update the processing sequence of all target subtasks in the task queue;
Function is handled based on the updated processing sequence, the corresponding target in each target subtask, executes institute There is the target subtask.
Fig. 7 is the schematic diagram for the task processing equipment that one embodiment of the invention provides.As shown in fig. 7, the embodiment is appointed Business processing equipment 7 includes: processor 70, memory 71 and is stored in the memory 71 and can be on the processor 70 The computer program 72 of operation, such as task processor.The processor 70 is realized when executing the computer program 72 State the step in each task processing method embodiment, such as step 101 shown in FIG. 1 is to 104.Alternatively, the processor 70 The function of each module/unit in above-mentioned each Installation practice, such as module shown in Fig. 6 are realized when executing the computer program 72 610 to 640 function.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 72 in the task processing equipment 7 is described.For example, the computer program 72 can be with It is divided into acquiring unit, the first determination unit, the second determination unit, execution unit, each unit concrete function is as follows:
Acquiring unit parses task processing request, obtains the task for obtaining task processing request Corresponding subtask processing request is requested in processing;
First determination unit, for based on subtask processing request, default subtask processing request and default application Corresponding relationship between Program Interfaces determines that corresponding application programming interface is requested in the subtask processing;
Second determination unit determines that the son is appointed for being based on the corresponding presupposed information of the application programming interface Business processing requests corresponding target subtask and its corresponding target to handle function;Wherein, the presupposed information is for parsing institute State subtask processing request;
Execution unit, it is corresponding for the processing sequence based on all target subtasks, each target subtask Target handle function, execute all target subtasks;Wherein, the processing sequence of all target subtasks is by described The sequencing of subtask processing request determines.
The task processing equipment may include, but be not limited only to, processor 70, memory 71.Those skilled in the art can To understand, Fig. 7 is only the example of task processing equipment 7, does not constitute the restriction to task processing equipment 7, may include ratio More or fewer components are illustrated, certain components or different components are perhaps combined, such as the task processing equipment may be used also To include input-output equipment, network access equipment, bus etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 71 can be the internal storage unit of the task processing equipment 7, such as task processing equipment 7 Hard disk or memory.The memory 71 is also possible to the External memory equipment of the task processing equipment 7, such as at the task The plug-in type hard disk being equipped in reason equipment 7, intelligent memory card (Smart MediaCard, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 71 can also both include the task The internal storage unit of processing equipment 7 also includes External memory equipment.The memory 71 is for storing the computer program And other programs and data needed for the task processing equipment.The memory 71 can be also used for temporarily storing Output or the data that will be exported.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie Matter may include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, Magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of task processing method characterized by comprising
The processing request of acquisition task parses task processing request, obtains the task processing and requests corresponding son Task processing request;
Based on the correspondence between subtask processing request, default subtask processing request and default application programming interface Relationship determines that corresponding application programming interface is requested in the subtask processing;
Based on the corresponding presupposed information of the application programming interface, determine that corresponding target is requested in the subtask processing Task and its corresponding target handle function;Wherein, the presupposed information is for parsing the subtask processing request;
Processing sequence based on all target subtasks, the corresponding target in each target subtask handle function, hold All target subtasks of row;Wherein, the processing sequence of all target subtasks is by subtask processing request Sequencing determines.
2. task processing method as described in claim 1, which is characterized in that it is described based on the subtask processing request, Corresponding relationship between default subtask processing request and default application programming interface determines the subtask processing request Before corresponding application programming interface, further includes:
Subtask processing is preset based on common interface function registration and requests corresponding default application programming interface function, is determined Corresponding default application programming interface is requested in the default subtask processing;
By the default subtask processing request and its corresponding default application programming interface associated storage.
3. task processing method as described in claim 1, which is characterized in that the place based on all target subtasks It makes sequence, the corresponding target processing function in each target subtask in order, executes all target subtasks, comprising:
The target subtask and its corresponding target processing function are added to the task processing and request corresponding task team Column;
When detecting that corresponding execute instruction is requested in the task processing, based on all target subtasks in the task queue Processing sequence, the corresponding target in each target subtask handle function, execute all target subtasks.
4. task processing method as claimed in claim 3, which is characterized in that described by the target subtask and its corresponding Target processing function is added to the task processing and requests corresponding task queue, comprising:
It is pre- to judge whether the target subtask meets based on the configuration information for the configuration information for obtaining the target subtask If condition;
When the target subtask meets preset condition, determine that the target subtask is legal, by the target subtask and Its corresponding target processing function is added to the task processing and requests corresponding task queue.
5. task processing method as claimed in claim 4, which is characterized in that in the configuration for obtaining the target subtask Information, after judging whether the target subtask meets preset condition based on the configuration information, further includes:
When the target subtask is unsatisfactory for preset condition, determine that the target subtask is illegal, refuses to respond described appoint Business processing request.
6. such as the described in any item task processing methods of claim 2-5, which is characterized in that described based on all target The processing sequence of task, the corresponding target in each target subtask handle function, execute all target subtasks, packet It includes:
The target subtask and its corresponding target processing function are added to the task processing and request corresponding task team Column;
The task queue is traversed, when the processing function and the second mesh for detecting first object subtask in the task queue When the target processing function of mark subtask is identical, merges the first object subtask and second target subtask and obtain newly Target subtask;
Update the processing sequence of all target subtasks in the task queue;
Function is handled based on the updated processing sequence, the corresponding target in each target subtask, executes all institutes State target subtask.
7. a kind of Task Processing Unit characterized by comprising
Acquiring unit parses task processing request for obtaining task processing request, obtains the task processing Request corresponding subtask processing request;
First determination unit, for based on subtask processing request, default subtask processing request and default application program Corresponding relationship between programming interface determines that corresponding application programming interface is requested in the subtask processing;
Second determination unit determines at the subtask for being based on the corresponding presupposed information of the application programming interface Reason requests corresponding target subtask and its corresponding target to handle function;Wherein, the presupposed information is for parsing the son Task processing request;
Execution unit, for the processing sequence based on all target subtasks, the corresponding mesh in each target subtask Mark processing function, executes all target subtasks;Wherein, the processing sequence of all target subtasks is appointed by the son The sequencing of business processing request determines.
8. Task Processing Unit as claimed in claim 7, which is characterized in that further include:
Third determination unit requests corresponding default application program for presetting subtask processing based on common interface function registration Programming interface function determines that corresponding default application programming interface is requested in the default subtask processing;
Storage unit, for depositing the default subtask processing request and its corresponding default application programming interface association Storage.
9. a kind of task processing equipment, including memory, processor and storage are in the memory and can be in the processing The computer program run on device, which is characterized in that the processor realizes such as claim 1 when executing the computer program The step of to any one of 6 the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
CN201910599726.4A 2019-07-04 2019-07-04 Task processing method and device Active CN110471718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910599726.4A CN110471718B (en) 2019-07-04 2019-07-04 Task processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910599726.4A CN110471718B (en) 2019-07-04 2019-07-04 Task processing method and device

Publications (2)

Publication Number Publication Date
CN110471718A true CN110471718A (en) 2019-11-19
CN110471718B CN110471718B (en) 2023-07-18

Family

ID=68507410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910599726.4A Active CN110471718B (en) 2019-07-04 2019-07-04 Task processing method and device

Country Status (1)

Country Link
CN (1) CN110471718B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010060A (en) * 2021-03-17 2021-06-22 杭州遥望网络科技有限公司 Task execution method, device and equipment of application program and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569783A (en) * 2015-10-08 2017-04-19 腾讯科技(深圳)有限公司 Task script executing method and apparatus
CN107977275A (en) * 2017-12-05 2018-05-01 腾讯科技(深圳)有限公司 Task processing method and relevant device based on message queue
CN108897850A (en) * 2018-06-28 2018-11-27 深圳云之家网络有限公司 A kind of data processing method and device
CN109558237A (en) * 2017-09-27 2019-04-02 北京国双科技有限公司 A kind of task status management method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569783A (en) * 2015-10-08 2017-04-19 腾讯科技(深圳)有限公司 Task script executing method and apparatus
CN109558237A (en) * 2017-09-27 2019-04-02 北京国双科技有限公司 A kind of task status management method and device
CN107977275A (en) * 2017-12-05 2018-05-01 腾讯科技(深圳)有限公司 Task processing method and relevant device based on message queue
CN108897850A (en) * 2018-06-28 2018-11-27 深圳云之家网络有限公司 A kind of data processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010060A (en) * 2021-03-17 2021-06-22 杭州遥望网络科技有限公司 Task execution method, device and equipment of application program and readable storage medium

Also Published As

Publication number Publication date
CN110471718B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
US20220247633A1 (en) Methods, systems and apparatus to improve cluster efficiency
CN107566271B (en) Method and apparatus for computing and propagating network forwarding state using transactions
US8572236B2 (en) Distributing services in graph-based computations
US8060544B2 (en) Representation of data transformation processes for parallelization
US11546413B2 (en) System and method for identifying capabilities and limitations of an orchestration based application integration
US9766927B1 (en) Data flow management in processing workflows
CN108268271A (en) The upgrade method and update device of micro services
CN109189758B (en) Operation and maintenance flow design method, device and equipment, operation method, device and host
WO2015034485A1 (en) Providing services as resources for other services
US11595299B2 (en) System and method of suppressing inbound payload to an integration flow of an orchestration based application integration
CN106687919A (en) Managing state for controlling tasks
US20220214931A1 (en) System and method for exposing features of integration platform adapters as first-class actions in an orchestration template
CN103729257A (en) Distributed parallel computing method and system
CN104423994B (en) A kind of code generating method, compiler, dispatching method, device and scheduling system
EP3355192A1 (en) Methods for provisioning an industrial internet-of-things control framework of dynamic multi-cloud events and devices thereof
CN108255585A (en) SDK exception controls and application program operation method, device and its equipment
CN109753300A (en) A kind of algorithm upgrade method, calculating task sending method and Related product
CN110471718A (en) A kind of task processing method and equipment
CN110262782A (en) The interface comparison method and device of software systems
CN105100117A (en) Method and device for accessing combined services
EP3614262A1 (en) Security-aware partitioning of processes
US20210334148A1 (en) System and method for providing a declarative non code self-learning advisory framework for orchestration based application integration
CN110417856B (en) Capacity expansion method, device, equipment and storage medium for multi-active load balancing application
US10547565B2 (en) Automatic determination and just-in-time acquisition of data for semantic reasoning
US9798593B1 (en) Synchronization of code execution

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant