CN109388405A - A kind of task processing method, device, electronic equipment and medium - Google Patents

A kind of task processing method, device, electronic equipment and medium Download PDF

Info

Publication number
CN109388405A
CN109388405A CN201811267080.1A CN201811267080A CN109388405A CN 109388405 A CN109388405 A CN 109388405A CN 201811267080 A CN201811267080 A CN 201811267080A CN 109388405 A CN109388405 A CN 109388405A
Authority
CN
China
Prior art keywords
task
object code
instruction
process instruction
cloud server
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
CN201811267080.1A
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.)
Beijing Rice Future Technology Co Ltd
Original Assignee
Beijing Rice Future Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Rice Future Technology Co Ltd filed Critical Beijing Rice Future Technology Co Ltd
Priority to CN201811267080.1A priority Critical patent/CN109388405A/en
Publication of CN109388405A publication Critical patent/CN109388405A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Abstract

This application discloses a kind of task processing method, device, electronic equipment and media, and wherein this method includes, when receiving requirement for compiler, opening code compilation and then generating object code.And according to Object Code Generator task process instruction.Task process instruction is sent to server again.By the technical solution of application the application, the code by each cloud server for Uniform compilation may be implemented and carry out task processing.To which the upload resource generated when avoiding the problem that the inconsistent situation of compiling result when each cloud server carries out task processing is easy to malfunction.

Description

A kind of task processing method, device, electronic equipment and medium
Technical field
This application involves data transmission technology, especially a kind of task processing method, device, electronic equipment and medium.
Background technique
With the development of communication era and society, the electronic mobile devices such as mobile phone, PAD are by more and more users institute Possess.
Wherein, it takes the mobile phone as an example, in order to more attract user, developer can product according to oneself and consumer Demand do not turn off hair or more new application.Further, developer is to compile in exploitation or more new application The mode for translating code carries out the generation of object code, and then the object code of generation is deployed in each cloud server, with Corresponding cloud server is set to carry out corresponding task processing according to the code.
However, how efficiently, easily carrying out the processing of each task using cloud server, become art technology Personnel compel problem to be solved.
Summary of the invention
The embodiment of the present application technical problem to be solved is: how efficiently, easily using cloud server into The processing of each task of row.
According to the one aspect of the embodiment of the present application, a kind of task processing method provided, the method is applied to client End, comprising:
When receiving requirement for compiler, code compilation is opened according to the requirement for compiler, generates object code, the compiling It include first identifier in request, the first identifier is for marking the corresponding each cloud server of the object code Location;
Based on the object code, first task process instruction is generated, the first task process instruction is used to indicate cloud Server is held to carry out task processing according to the object code;
The first task process instruction is sent to server.
Optionally, in another embodiment based on the application above method, the first task is handled described Instruction is sent to after server, further includes:
When receiving rollback instruction, the second task process instruction is sent to server, the second task processing refers to Enable the previous task process instruction for the first task process instruction.
Optionally, described when receiving requirement for compiler in another embodiment based on the application above method, root Code compilation is opened according to the requirement for compiler, generates object code, comprising:
When receiving requirement for compiler, corresponding environment configurations are downloaded according to the requirement for compiler;
According to the environment configurations, the code compilation is opened, generates the object code.
According to the one aspect of the embodiment of the present application, a kind of task processing method provided, the method is applied to service Device, comprising:
First task process instruction is received, includes object code and first identifier in the first task process instruction, The first identifier is for marking the corresponding each cloud server address of the object code;
According to the first identifier, the corresponding each cloud server of the object code is determined;
Task open command, the task open command are sent to one of each cloud server from node respectively Comprising the object code, the task open command is used to indicate respectively to synchronize from node and carry out from task to the object code Reason.
Optionally, in another embodiment based on the application above method, described respectively to each cloud One of server is sent from node after task open command, further includes:
After receiving rollback instruction, client is sent by rollback instruction, the rollback instruction is when cloud clothes Business device goes out instruction generated when current task processing error;
After receiving the second task process instruction, the second task process instruction is sent to the rollback instruction pair The cloud server answered, the second task process instruction are that the previous task processing of the first task process instruction refers to Enable, the second task process instruction be used to indicate the rollback instruct corresponding cloud server according to second task at Reason instruction carry out task processing.
Optionally, in another embodiment based on the application above method, refer in reception first task processing After order, further includes:
It transfers one and preview is carried out to the object code from node.
According to the other side of the embodiment of the present application, a kind of device of task processing provided, described device is applied to Client, comprising:
First generation module generates object code, the compiling is asked for opening code compilation according to the requirement for compiler It include first identifier in asking, the first identifier is for marking the corresponding each cloud server address of the object code;
Second generation module generates first task process instruction, at the first task for being based on the object code Reason instruction is used to indicate cloud server and carries out task processing according to the object code;
Sending module, for the first task process instruction to be sent to server.
According to the other side of the embodiment of the present application, a kind of device of task processing provided, described device is applied to Server, comprising:
Receiving module includes target generation in the first task process instruction for receiving first task process instruction Code and first identifier, the first identifier is for marking the corresponding each cloud server address of the object code;
Determining module, for determining the corresponding each cloud server of the object code according to the first identifier;
Sending module, for sending task open command, institute to one of each cloud server from node respectively Stating task open command includes the object code, and the task open command, which is used to indicate, respectively to be synchronized from node to the target Code carries out task processing.
According to the another aspect of the embodiment of the present application, a kind of electronic equipment that provides, comprising:
Memory, for storing executable instruction;And
Processor completes any of the above-described described for communicating with the memory to execute the executable instruction The operation for the method handled of being engaged in.
According to the still another aspect of the embodiment of the present application, a kind of computer readable storage medium provided, based on storing The instruction that calculation machine can be read, described instruction are performed the operation for executing the method for any of the above-described task processing.
In the application, when receiving requirement for compiler, opens code compilation and then generate object code.And according to target generation Code generates task process instruction.Task process instruction is sent to server again.It, can be with by the technical solution of application the application Realize that the code by each cloud server for Uniform compilation carries out task processing.To avoid being appointed when each cloud server The upload resource generated when the inconsistent situation of compiling result when business processing is easy the problem of malfunctioning.
Below by drawings and examples, the technical solution of the application is described in further detail.
Detailed description of the invention
The attached drawing for constituting part of specification describes embodiments herein, and together with description for explaining The principle of the application.
The application can be more clearly understood according to following detailed description referring to attached drawing, in which:
Fig. 1 is the flow chart of method one embodiment of the application task processing.
Fig. 2 is the flow chart of another embodiment of the method for the application task processing.
Fig. 3 is the structural schematic diagram of the further embodiment of the application task processing.
Fig. 4 is the structural schematic diagram of a still further embodiment of the application task processing.
Fig. 5 is the structural schematic diagram of a device of the application task processing.
Fig. 6 is the structural schematic diagram of another device of the application task processing.
Fig. 7 is the electronic devices structure schematic diagram of the application task processing.
Specific embodiment
The various exemplary embodiments of the application are described in detail now with reference to attached drawing.It should also be noted that unless in addition having Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally The range of application.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to reality Proportionate relationship draw.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the application And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable In the case of, the technology, method and apparatus should be considered as part of specification.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
It is to be appreciated that the directional instruction (such as up, down, left, right, before and after ...) of institute is only used in the embodiment of the present application In explaining in relative positional relationship, the motion conditions etc. under a certain particular pose (as shown in the picture) between each component, if should When particular pose changes, then directionality instruction also correspondingly changes correspondingly.
In addition, the description for being such as related to " first ", " second " in this application is used for description purposes only, and should not be understood as Its relative importance of indication or suggestion or the quantity for implicitly indicating indicated technical characteristic.Define as a result, " first ", The feature of " second " can explicitly or implicitly include at least one of the features.In the description of the present application, " multiples' " contains Justice is at least two, such as two, three etc., unless otherwise specifically defined.
In this application unless specifically defined or limited otherwise, term " connection ", " fixation " etc. shall be understood in a broad sense, For example, " fixation " may be a fixed connection, it may be a detachable connection, or integral;It can be mechanical connection, be also possible to Electrical connection;It can be directly connected, the connection inside two elements or two can also be can be indirectly connected through an intermediary The interaction relationship of a element, unless otherwise restricted clearly.It for the ordinary skill in the art, can basis Concrete condition understands the concrete meaning of above-mentioned term in this application.
It in addition, the technical solution between each embodiment of the application can be combined with each other, but must be general with this field Based on logical technical staff can be realized, it will be understood that when the combination of technical solution appearance is conflicting or cannot achieve this The combination of technical solution is not present, also not this application claims protection scope within.
It is described below with reference to Fig. 1 to Fig. 4 according to the application illustrative embodiments for carrying out the side of task processing Method.It should be noted that following application scenarios are merely for convenience of understanding spirit herein and principle and showing, the application's Embodiment is unrestricted in this regard.On the contrary, presently filed embodiment can be applied to applicable any scene.
Fig. 1 schematically shows a kind of flow diagram of task processing method according to the application embodiment.Such as Shown in Fig. 1, comprising:
A kind of task processing method, this method are applied to client, comprising:
S101 opens code compilation according to requirement for compiler, generates object code, compiling is asked when receiving requirement for compiler It include first identifier in asking, first identifier is for marking the corresponding each cloud server address of object code.
Firstly the need of explanation, in the application, client is not specifically limited.I.e. client can for mobile phone, The electronic mobile devices such as PAD, laptop.Client may be the electronic equipments such as computer.
Optionally, in the application, when receiving requirement for compiler, it can use compiler and carried according in requirement for compiler Source code open code compilation process.Wherein, compiling is exactly that high-level language is transformed into the binary system that computer can identify The process of language, further, the compilation process in the application are that morphological analysis, syntactic analysis, semantic inspection are carried out to source code It looks into and intermediate code generation and code optimization.And then realize the generation of object code.
It is further alternative, it include first identifier in requirement for compiler in the application.Wherein, first identifier is for marking Remember the corresponding each cloud server address of object code.For example, when the object code is appointed by Ali's cloud server When business processing, is then added in requirement for compiler and be sent to the object code: the address of " Ali's cloud server ".So that service When the subsequently received task process instruction comprising the object code of device, can according to the address of " Ali's cloud server ", The object code is sent to Ali's cloud server.
It should be noted that in first identifier in the application without limitation to the quantity of cloud server address.I.e. The quantity of cloud server address can be 1 in one mark, and the quantity of cloud server address may be multiple.
S102 is based on object code, generates first task process instruction, and first task process instruction is used to indicate cloud clothes Device be engaged according to object code progress task processing.
Optionally, in the application, it is based on object code, generates first task process instruction.The first task process instruction In carry object code.Wherein, the first task process instruction be used to indicate receive the cloud server of the instruction according to Object code carries out task processing.
It should be noted that in the application, it, should during server carries out task processing according to object code beyond the clouds Task process may include multiple service groups.Server need in task processes to each service groups beyond the clouds Carry out corresponding business processing.
First task process instruction is sent to server by S103.
It is further alternative, in the application after generating first task process instruction, which is sent out It send into server.
In the application, when receiving requirement for compiler, opens code compilation and then generate object code.And according to target generation Code generates task process instruction.Task process instruction is sent to server again.It, can be with by the technical solution of application the application Realize that the code by each cloud server for Uniform compilation carries out task processing.To avoid being appointed when each cloud server The upload resource generated when the inconsistent situation of compiling result when business processing is easy the problem of malfunctioning.
Optionally, in a kind of embodiment of the application, when receiving requirement for compiler, in generation, is opened according to requirement for compiler Code compiling, the process for generating object code can be such that
When receiving requirement for compiler, corresponding environment configurations are downloaded according to requirement for compiler.
According to environment configurations, code compilation is opened, generates object code.
Optionally, in the application, due to needing different compilings to configure under different translation and compiling environments, the application can It is compiled with downloading different environment configurations according to different translation and compiling environments.And then generate object code.
It further, further include one in this application after S103 (first task process instruction is sent to server) Kind specific embodiment.Specifically, the application further includes a kind of task processing method, as shown in Fig. 2,
S201 opens code compilation according to requirement for compiler, generates object code when receiving requirement for compiler.
S202 is based on object code, generates first task process instruction.
First task process instruction is sent to server by S203.
Second task process instruction is sent to server, the processing of the second task refers to when receiving rollback instruction by S204 Enable the previous task process instruction for first task process instruction.
Optionally, it after the first task process instruction after generation is sent to server by client, is carried out by server Subsequent processing.But it in the rollback instruction for receiving server transmission, needs the second task process instruction being sent to service Device.Further, client needs to detect the processing of task corresponding to first task process instruction after receiving rollback instruction Previous task process instruction (as the second task process instruction), and previous object code will be carried and (generated The code generated before object code) the second task process instruction be sent to server so that server is by second task Process instruction is sent to cloud server.
Fig. 3 schematically shows a kind of flow diagram of task processing method according to the application embodiment.Such as Shown in Fig. 3, comprising:
A kind of task processing method, this method are applied to server, comprising:
S301, receives first task process instruction, includes object code and first identifier in first task process instruction, First identifier is for marking the corresponding each cloud server address of object code.
Optionally, in the application, first task process instruction is received by server.Wherein, the first task process instruction In carry object code.Wherein, the first task process instruction be used to indicate receive the cloud server of the instruction according to Object code carries out task processing.
Further, first identifier is for marking the corresponding each cloud server address of object code.For example, working as the mesh Mark code is when carrying out task processing by Ali's cloud server, then to add in requirement for compiler and be sent to the object code: The address of " Ali's cloud server ".So that when the subsequently received task process instruction comprising the object code of server, it can According to the address for being somebody's turn to do " Ali's cloud server ", which is sent to Ali's cloud server.
It should be noted that in first identifier in the application without limitation to the quantity of cloud server address.I.e. The quantity of cloud server address can be 1 in one mark, and the quantity of cloud server address may be multiple.
S302 determines the corresponding each cloud server of object code according to first identifier.
Optionally, in the application, according to the first identifier in first task process instruction, determine that object code is corresponding each A cloud server.
S303 sends task open command, task open command packet to one of each cloud server from node respectively Containing object code, task open command, which is used to indicate respectively to synchronize from node, carries out task processing to object code.
In the application, after server determines the corresponding each cloud server of object code, target will be carried respectively The task open command of code is sent to one of each cloud server from node.So that one of each cloud server from Node starts carry out task processing according to object code.For example, when server determines that the corresponding cloud server of object code is When " Ali's cloud server " and " Tencent's cloud server ", by the task open command for carrying object code be sent to Ah In one of cloud server from node so that should being handled from node according to object code for Ali's cloud server was corresponding Business.Further, and at the same time the task open command for carrying object code is sent to the one of Tencent's cloud server It is a from node.So that Tencent's cloud server should handle corresponding business from node according to object code.
It should be noted that in the application, it, should during server carries out task processing according to object code beyond the clouds Task process may include multiple service groups.Server need in task processes to each service groups beyond the clouds Carry out corresponding business processing.
It is further alternative, in another embodiment of the application, S301 (receiving first task process instruction) It later, further include a kind of task processing method, as shown in figure 4,
S401 receives first task process instruction.
S402 transfers one and carries out preview to object code from node.
S403 determines the corresponding each cloud server of object code according to first identifier.
S404 sends task open command to one of each cloud server from node respectively.
S405 sends client for rollback instruction, rollback instruction is to work as cloud server after receiving rollback instruction Instruction generated when current task processing error out.
Optionally, after server sends task open command from node to one of each cloud server, by cloud The slave node of server carries out task processing.Further, when cloud server go out current task processing error when, terminate at this time into The processing of row task.And generate rollback instruction.Rollback instruction is sent at server again.
It is further alternative, after server receives rollback instruction, client is sent by rollback instruction.So that objective Family end is instructed according to the rollback, and the task process instruction before first task process instruction is sent to server.
Second task process instruction is sent to rollback instruction and corresponded to by S406 after receiving the second task process instruction Cloud server, the second task process instruction be first task process instruction previous task process instruction, the second task Process instruction is used to indicate rollback and corresponding cloud server is instructed to carry out task processing according to the second task process instruction
After server receives the second task process instruction, which is sent to and generates rollback instruction Cloud server.It, can be according to carrying in the second task process instruction so that the cloud server is after task processing error Previous object code, handles task again.So that cloud server is incited somebody to action after causing terminated task to handle due to task error Self-recovery can be successfully processed the state of task to nearest one.
In another embodiment of the application, as shown in figure 5, the application also provides a kind of dress of task processing It sets, which includes the first generation module 501, the second generation module 502, the first sending module 503.Wherein,
First generation module 501 generates object code, the volume for opening code compilation according to the requirement for compiler Translating in request includes first identifier, and the first identifier is for marking the corresponding each cloud server of the object code Location;
Second generation module 502, for being based on the object code, generation first task process instruction is described first Business process instruction is used to indicate cloud server and carries out task processing according to the object code;
First sending module 503, for the first task process instruction to be sent to server.
In the application, when receiving requirement for compiler, opens code compilation and then generate object code.And according to target generation Code generates task process instruction.Task process instruction is sent to server again.It, can be with by the technical solution of application the application Realize that the code by each cloud server for Uniform compilation carries out task processing.To avoid being appointed when each cloud server The upload resource that generates is easy the problem of malfunctioning in the case that compiling result when business processing is inconsistent.
In the another embodiment of the application, further includes: the second sending module 504 is also used to:
Second sending module 504, for when receiving rollback instruction, the second task process instruction to be sent to service Device, the second task process instruction are the previous task process instruction of the first task process instruction.
In the another embodiment of the application, further includes: the first generation module 501 is also used to:
First generation module 501, is also used to when receiving requirement for compiler, downloads corresponding ring according to the requirement for compiler Border configuration;According to the environment configurations, the code compilation is opened, generates the object code.
In another embodiment of the application, as shown in fig. 6, the application also provides a kind of dress of task processing It sets, which includes receiving module 601, determining module 602, the first sending module 603.Wherein,
Receiving module 601 includes target in the first task process instruction for receiving first task process instruction Code and first identifier, the first identifier is for marking the corresponding each cloud server address of the object code;
Determining module 602, for determining the corresponding each cloud service of the object code according to the first identifier Device;
First sending module 603 is opened for sending task from node to one of each cloud server respectively Instruction, the task open command include the object code, and the task open command, which is used to indicate, respectively to be synchronized pair from node The object code carries out task processing.
In the another embodiment of the application, further includes: the second sending module 604, wherein
Second sending module 604, is also used to after receiving rollback instruction, sends client for rollback instruction, The rollback instruction is instruction generated when cloud server goes out current task processing error.
Second sending module 604 is also used to after receiving the second task process instruction, and second task processing is referred to Order is sent to the rollback and instructs corresponding cloud server, and the second task process instruction is that first task processing refers to The previous task process instruction enabled, the second task process instruction are used to indicate the rollback and instruct corresponding cloud service Device carries out task processing according to the second task process instruction.
In the another embodiment of the application, further includes: transfer module 605, wherein
Module 605 is transferred, preview is carried out to the object code from node for transferring one.
After the method for the task processing for describing the application illustrative embodiments and the device of task processing, connect down Come, with reference to Fig. 7 to the application illustrative embodiments, for realizing each step documented in above method embodiment Electronic equipment is illustrated.The computer system/server 70 that Fig. 7 is shown is only an example, should not be implemented to the application The function and use scope of example bring any restrictions.
As shown in fig. 7, computer system/server 70 is showed in the form of universal computing device.Computer system/service The component of device 70 can include but is not limited to: one or more processor or processing unit 701, system storage 702, even Connect the bus 703 of different system components (including system storage 702 and processing unit 701).
Computer system/server 70 typically comprises a variety of computer system readable media.These media, which can be, appoints What usable medium that can be accessed by computer system/server 70, including volatile and non-volatile media, it is moveable and Immovable medium.
System storage 702 may include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (RAM) 7021 and/or cache memory 7022.Computer system/server 70 may further include it Its removable/nonremovable, volatile/non-volatile computer system storage medium.Only as an example, ROM 7023 can be with For reading and writing immovable, non-volatile magnetic media (not showing in Fig. 7, commonly referred to as " hard disk drive ").Although not existing It is shown in Fig. 7, disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") and right can be provided The CD drive of removable anonvolatile optical disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these feelings Under condition, each driver can be connected by one or more data media interfaces with bus 703.In system storage 702 It may include at least one program product, which has one group of (for example, at least one) program module, these program moulds Block is configured to perform the function of each embodiment of the application.
Program/utility 7027 with one group of (at least one) program module 7024, can store in such as system In memory 702, and such program module 7024 includes but is not limited to: operating system, one or more application program, its It may include the realization of network environment in its program module and program data, each of these examples or certain combination. Program module 7024 usually executes function and/or method in embodiments described herein.
Computer system/server 70 can also be with one or more external equipment 704 (such as keyboard, sensing equipment, displays Device etc.) communication.This communication can be carried out by input/output (I/0) interface 707.Also, computer system/server 70 Can also by network adapter 707 and one or more network (such as local area network (LAN), wide area network (WAN) and/or Public network, such as internet) communication.As shown in fig. 7, network adapter 707 passes through bus 703 and computer system/service Other modules (such as processing unit 701) of device 70 communicate.It should be understood that department of computer science can be combined although being not shown in Fig. 7 System/server 70 uses other hardware and/or software module.
The computer program that processing unit 701 is stored in system storage 702 by operation, thereby executing various functions Using and data processing, for example, execute for realizing each step in above method embodiment instruction;Specifically, place Reason unit 701 can execute the computer program stored in system storage 702, and the computer program is performed, following Instruction is run:
When receiving requirement for compiler, code compilation is opened according to the requirement for compiler, generates object code, the compiling It include first identifier in request, the first identifier is for marking the corresponding each cloud server of the object code Location;
Based on the object code, first task process instruction is generated, the first task process instruction is used to indicate cloud Server is held to carry out task processing according to the object code;
The first task process instruction is sent to server.
And following instructions are run:
First task process instruction is received, includes object code and first identifier in the first task process instruction, The first identifier is for marking the corresponding each cloud server address of the object code;
According to the first identifier, the corresponding each cloud server of the object code is determined;
Task open command, the task open command are sent to one of each cloud server from node respectively Comprising the object code, the task open command is used to indicate respectively to synchronize from node and carry out from task to the object code Reason.
Certainly, also included other of electronic equipment instruct the content as described in the device side of equipment side method side, herein no longer It repeats one by one.
In the application, the file to be stored for carrying first identifier that target terminal is sent is received by transfer server, and After the processing that the file to be stored is carried out to predetermined manner, file to be uploaded is generated.Further according to first identifier, by task to be uploaded It handles to cloud server.It, can be by the upload file reception of each terminal user simultaneously by the technical solution of application the application It is uploaded to corresponding cloud server respectively, and then can solve user when uploading data information, due to each cloud service Device is unfamiliar with caused time-consuming problem using rule.
The embodiment of the present application also provides a kind of computer readable storage medium, for storing computer-readable instruction, Described instruction is performed the operation for executing the method for the task processing for including in above-mentioned Fig. 1-Fig. 4.The task processing Method description content, this is no longer going to repeat them.
The above is only the part optional embodiment of the application, be not intended to limit the scope of the patents of the application, it is all Under the design of the application, using equivalent structure transformation made by present specification and accompanying drawing content, or directly/be used in indirectly Other related technical areas are included in the scope of patent protection of the application.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with its The difference of its embodiment, the same or similar part cross-reference between each embodiment.For system embodiment For, since it is substantially corresponding with embodiment of the method, so being described relatively simple, referring to the portion of embodiment of the method in place of correlation It defends oneself bright.
The present processes and device may be achieved in many ways.For example, can by software, hardware, firmware or Software, hardware, firmware any combination realize the present processes and device.The said sequence of the step of for the method Merely to be illustrated, the step of the present processes, is not limited to sequence described in detail above, special unless otherwise It does not mentionlet alone bright.In addition, in some embodiments, also the application can be embodied as to record program in the recording medium, these programs Including for realizing according to the machine readable instructions of the present processes.Thus, the application also covers storage for executing basis The recording medium of the program of the present processes.
The description of the present application is given for the purpose of illustration and description, and is not exhaustively or by the application It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches Embodiment is stated and be the principle and practical application in order to more preferably illustrate the application, and those skilled in the art is enable to manage Solution the application is to design various embodiments suitable for specific applications with various modifications.

Claims (10)

1. a kind of task processing method, which is characterized in that the method is applied to client, including:
When receiving requirement for compiler, code compilation is opened according to the requirement for compiler, generates object code, the requirement for compiler In include first identifier, the first identifier is for marking the corresponding each cloud server address of the object code;
Based on the object code, first task process instruction is generated, the first task process instruction is used to indicate cloud clothes Device be engaged according to object code progress task processing;
The first task process instruction is sent to server.
2. the method as described in claim 1, which is characterized in that the first task process instruction is sent to service described After device, further includes:
When receiving rollback instruction, the second task process instruction is sent to server, the second task process instruction is The previous task process instruction of the first task process instruction.
3. method according to claim 1 or 2, which is characterized in that it is described when receiving requirement for compiler, according to the compiling Code compilation is opened in request, generates object code, comprising:
When receiving requirement for compiler, corresponding environment configurations are downloaded according to the requirement for compiler;
According to the environment configurations, the code compilation is opened, generates the object code.
4. a kind of task processing method, which is characterized in that the method is applied to server, including:
First task process instruction is received, includes object code and first identifier in the first task process instruction, it is described First identifier is for marking the corresponding each cloud server address of the object code;
According to the first identifier, the corresponding each cloud server of the object code is determined;
Task open command is sent to one of each cloud server from node respectively, the task open command includes The object code, the task open command, which is used to indicate respectively to synchronize from node, carries out task processing to the object code.
5. method as claimed in claim 4, which is characterized in that it is described respectively to one of each cloud server from Node is sent after task open command, further includes:
After receiving rollback instruction, client is sent by rollback instruction, the rollback instruction is to work as cloud server Instruction generated when current task processing error out;
After receiving the second task process instruction, it is corresponding that the second task process instruction is sent to the rollback instruction Cloud server, the second task process instruction are the previous task process instruction of the first task process instruction, institute It states the second task process instruction and is used to indicate the corresponding cloud server of the rollback instruction and is handled according to second task and refer to Enable carry out task processing.
6. method as claimed in claim 4, which is characterized in that after the reception first task process instruction, further includes:
It transfers one and preview is carried out to the object code from node.
7. a kind of Task Processing Unit, which is characterized in that described device is applied to client, comprising:
First generation module generates object code, in the requirement for compiler for opening code compilation according to the requirement for compiler It include first identifier, the first identifier is for marking the corresponding each cloud server address of the object code;
Second generation module generates first task process instruction, the first task processing refers to for being based on the object code Order is used to indicate cloud server and carries out task processing according to the object code;
Sending module, for the first task process instruction to be sent to server.
8. a kind of Task Processing Unit, which is characterized in that described device is applied to server, comprising:
Receiving module, include for receiving first task process instruction, in the first task process instruction object code and First identifier, the first identifier is for marking the corresponding each cloud server address of the object code;
Determining module, for determining the corresponding each cloud server of the object code according to the first identifier;
Sending module, for respectively to one of each cloud server from node send task open command, described Open command of being engaged in includes the object code, and the task open command, which is used to indicate, respectively to be synchronized from node to the object code Carry out task processing.
9. a kind of electronic equipment characterized by comprising
Memory, for storing executable instruction;And
It is any in claim 1-6 to complete to execute the executable instruction for communicating with the memory for processor The operation of the method for the task processing.
10. a kind of computer readable storage medium, for storing computer-readable instruction, which is characterized in that described instruction It is performed the operation that perform claim requires any task processing in 1-6.
CN201811267080.1A 2018-10-25 2018-10-25 A kind of task processing method, device, electronic equipment and medium Pending CN109388405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811267080.1A CN109388405A (en) 2018-10-25 2018-10-25 A kind of task processing method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811267080.1A CN109388405A (en) 2018-10-25 2018-10-25 A kind of task processing method, device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN109388405A true CN109388405A (en) 2019-02-26

Family

ID=65426888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811267080.1A Pending CN109388405A (en) 2018-10-25 2018-10-25 A kind of task processing method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN109388405A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479225A (en) * 2010-11-26 2012-05-30 中国移动通信集团四川有限公司 Distributed data analyzing and processing method and system
CN102955698A (en) * 2012-11-26 2013-03-06 中国联合网络通信集团有限公司 Processing method and device based on multi-terminal software development
US20160070729A1 (en) * 2014-09-02 2016-03-10 Ab Initio Technology Llc Compiling graph-based program specifications
CN106385333A (en) * 2016-09-19 2017-02-08 努比亚技术有限公司 Automatic deploying method and system for application program
CN107547608A (en) * 2016-06-29 2018-01-05 华为技术有限公司 Distributed task scheduling treating method and apparatus
CN107807815A (en) * 2017-10-19 2018-03-16 北京京东尚科信息技术有限公司 The method and apparatus of distributed treatment task
CN107943486A (en) * 2017-12-19 2018-04-20 北京星河星云信息技术有限公司 A kind of multilingual code compiling method, distribution method, device and system
CN108388440A (en) * 2018-04-28 2018-08-10 北京辰森世纪科技股份有限公司 A kind of method that web application systems automatically update

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479225A (en) * 2010-11-26 2012-05-30 中国移动通信集团四川有限公司 Distributed data analyzing and processing method and system
CN102955698A (en) * 2012-11-26 2013-03-06 中国联合网络通信集团有限公司 Processing method and device based on multi-terminal software development
US20160070729A1 (en) * 2014-09-02 2016-03-10 Ab Initio Technology Llc Compiling graph-based program specifications
CN107547608A (en) * 2016-06-29 2018-01-05 华为技术有限公司 Distributed task scheduling treating method and apparatus
CN106385333A (en) * 2016-09-19 2017-02-08 努比亚技术有限公司 Automatic deploying method and system for application program
CN107807815A (en) * 2017-10-19 2018-03-16 北京京东尚科信息技术有限公司 The method and apparatus of distributed treatment task
CN107943486A (en) * 2017-12-19 2018-04-20 北京星河星云信息技术有限公司 A kind of multilingual code compiling method, distribution method, device and system
CN108388440A (en) * 2018-04-28 2018-08-10 北京辰森世纪科技股份有限公司 A kind of method that web application systems automatically update

Similar Documents

Publication Publication Date Title
Rademacher et al. Challenges of domain-driven microservice design: A model-driven perspective
US11055082B2 (en) Unified update tool for multi-protocol network adapter
US10013491B2 (en) Methods and systems of workload mobility across divergent platforms
Di Martino et al. Cloud services composition through cloud patterns: a semantic-based approach
CN109656538A (en) Generation method, device, system, equipment and the medium of application program
US20030004670A1 (en) Measurement system software architecture for easily creating high-performance measurement applications
JP5216093B2 (en) Access to device-hosted services from scripting and other programming environments
CN103716347A (en) Virtual machine creating method, virtual machine creating device and cloud server
CN111984261A (en) Compiling method and compiling system
US20130227572A1 (en) Test device, a system, a program and a method
Issarny et al. Composing distributed systems: Overcoming the interoperability challenge
CN111124430A (en) Micro-service deployment method and device of hybrid architecture
Xu et al. A cloud robotic application platform design based on the microservices architecture
Mahapatra et al. Graphical spark programming in IoT mashup tools
Karsai Design tool integration: an exercise in semantic interoperability
CN104717175B (en) The processing method and system of virtual desktop
Parmentelat et al. nepi-ng: an efficient experiment control tool in R2lab
CN109388405A (en) A kind of task processing method, device, electronic equipment and medium
Villacis et al. CAT: A high performance, distributed component architecture toolkit for the grid
Lee et al. Itinerary-based mobile agent as a basis for distributed OSGi services
US20230031636A1 (en) Artificial intelligence (ai) model deployment
Anjum et al. Glueing grids and clouds together: a service-oriented approach
CN114490318A (en) Environment management system and method for realizing weak isolation based on bytecode enhancement
Bouraqadi-Saâdani et al. A reflective infrastructure for coarse-grained strong mobility and its tool-based implementation
Basu et al. Control plane integration for cloud services

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190226