CN110262886A - Task executing method and device, electronic equipment and storage medium - Google Patents

Task executing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110262886A
CN110262886A CN201910549582.1A CN201910549582A CN110262886A CN 110262886 A CN110262886 A CN 110262886A CN 201910549582 A CN201910549582 A CN 201910549582A CN 110262886 A CN110262886 A CN 110262886A
Authority
CN
China
Prior art keywords
subtask
state information
node
target
mark
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
CN201910549582.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.)
Shanghai Sensetime Intelligent Technology Co Ltd
Original Assignee
Shanghai Sensetime Intelligent 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 Shanghai Sensetime Intelligent Technology Co Ltd filed Critical Shanghai Sensetime Intelligent Technology Co Ltd
Priority to CN201910549582.1A priority Critical patent/CN110262886A/en
Publication of CN110262886A publication Critical patent/CN110262886A/en
Pending legal-status Critical Current

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This disclosure relates to a kind of task executing method and device, electronic equipment and storage medium, which comprises according to the current resource information of each execution node of server, determine that the target for executing the first subtask executes node;In the case where being stored with first state information, first state information is loaded into target and executes node;According to first state information, node is executed by target and executes first subtask.Task executing method according to an embodiment of the present disclosure, the target that the first state information of previous subtask can be loaded onto the first current subtask of processing executes node, without caching the first state information of previous subtask in the memory that target executes node, so that the calculation resources that status information occupies are less, the treatment effeciency for improving calculation resources, is conducive to calculation resources parallel processing multiple tasks.

Description

Task executing method and device, electronic equipment and storage medium
Technical field
This disclosure relates to field of computer technology more particularly to a kind of task executing method and device, electronic equipment and deposit Storage media.
Background technique
With popularizing for artificial intelligence, machine learning and artificial intelligence programming education are increasingly becoming one that K12 is educated Important component.To the teaching programming of student, especially low age student, it will usually disassemble a programmed tasks for multiple steps Suddenly to guide student by being programmed to the target of each step, it is finally completed the instructional objective of whole programming experiment.
When multiple students handle course or experimental code by calculation resources simultaneously, during processing, each student into State variable caused by capable experiment can be buffered in calculation resources, occupied calculation resources, reduced the processing of calculation resources Efficiency is unfavorable for calculation resources parallel processing multiple tasks, for example, be unfavorable for calculation resources while handling what multiple students carried out Experiment.
Summary of the invention
The present disclosure proposes a kind of task executing method and devices, electronic equipment and storage medium.
According to the one side of the disclosure, a kind of task executing method is provided, comprising:
When receiving the execution request for the first subtask of goal task, worked as according to each execution node of server Preceding resource information determines that the target for executing first subtask executes node, and first subtask is the mesh Any one subtask of mark task;
In the case where being stored with first state information, the first state information is loaded into the target and executes section Point, wherein the first state information is the status information of the previous subtask of the first subtask;
According to the first state information, node is executed by the target and executes first subtask, obtained described The implementing result of first subtask.
The first state information of previous subtask can be loaded by task executing method according to an embodiment of the present disclosure The target of the first current subtask of processing executes node, without caching previous subtask in the memory that target executes node First state information so that status information occupy calculation resources it is less, improve the treatment effeciency of calculation resources, be conducive to transport Calculate resource parallel processing multiple tasks.
In one possible implementation, the method also includes:
In the case where the not stored first state information, node is executed by the target and executes first son times Business, obtains the implementing result of first subtask.
In one possible implementation, in the case where being stored with first state information, the first state is believed Breath is loaded into the target and executes node, comprising:
The Variables Sequence of the first state information is loaded into the target and executes node;
Node is executed by the target, unserializing processing is carried out to the Variables Sequence of the first state information, obtain The first state information.
In this way, the status information of serializing can load convenient for storage, and convenient for executing when follow-up work, pass through Status information is obtained after unserializing processing, node processing can be executed convenient for target.
In one possible implementation, the implementing result of first subtask includes the of first subtask Two-state information, the method also includes:
Store the second status information of first subtask.
In one possible implementation, the second status information of first subtask is stored, comprising:
Serializing processing is carried out to second status information, obtains the Variables Sequence of second status information;
Store the Variables Sequence of second status information.
In this way, the second status information can be serialized, convenient for long-term storage and subsequent calling, and can The memory that target executes node is discharged, occupancy calculation resources are lower, improve treatment effeciency, it is more to be conducive to calculation resources parallel processing A task.
In one possible implementation, described to execute the mark and described first that request includes the goal task The mark of subtask, wherein the method also includes:
According to the mark of the goal task and the mark of first subtask, judge whether to be stored with described first The first state information of the previous subtask of subtask.
In one possible implementation, described to execute mark, the mark of the goal task that request includes user And the mark of first subtask, wherein the method also includes:
According to the mark of the mark of the user, the mark of the goal task and first subtask, judgement is The first state information of the previous subtask of no the first subtask for being stored with the user.
In this way, the first of the previous subtask of the first subtask can accurately be inquired according to request is executed Status information adequately loads first state information and executes the first subtask offer basis.
In one possible implementation, the method also includes:
The implementing result of first subtask is sent to terminal.
According to another aspect of the present disclosure, a kind of task execution device is provided, comprising:
Determining module, for receive for goal task the first subtask execution request when, according to server The current resource information of each execution node, determine that the target for executing first subtask executes node, described first Subtask is any one subtask of the goal task;
Loading module, in the case where being stored with first state information, the first state information to be loaded into institute It states target and executes node, wherein the first state information is the status information of the previous subtask of the first subtask;
First execution module executes node by the target and executes described for according to the first state information One subtask obtains the implementing result of first subtask.
In one possible implementation, described device further include:
Second execution module, for executing section by the target in the case where the not stored first state information Point executes first subtask, obtains the implementing result of first subtask.
In one possible implementation, the loading module is further configured to:
The Variables Sequence of the first state information is loaded into the target and executes node;
Node is executed by the target, unserializing processing is carried out to the Variables Sequence of the first state information, obtain The first state information.
In one possible implementation, the implementing result of first subtask includes the of first subtask Two-state information, described device further include:
Memory module, for storing the second status information of first subtask.
In one possible implementation, the memory module is further configured to:
Serializing processing is carried out to second status information, obtains the Variables Sequence of second status information;
Store the Variables Sequence of second status information.
In one possible implementation, described to execute the mark and described first that request includes the goal task The mark of subtask, wherein described device further include:
First judgment module, for according to the mark of the goal task and the mark of first subtask, judgement Whether the first state information of the previous subtask of first subtask is stored with.
In one possible implementation, described to execute mark, the mark of the goal task that request includes user And the mark of first subtask, wherein described device further include:
Second judgment module, for according to the mark of the user, the mark of the goal task and first son The mark of task judges whether the first state information of the previous subtask for the first subtask for being stored with the user.
In one possible implementation, described device further include:
Sending module, for sending the implementing result of first subtask to terminal.
According to another aspect of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to: execute the above method.
According to another aspect of the present disclosure, a kind of computer readable storage medium is provided, computer journey is stored thereon with Sequence instruction, the computer program instructions realize the above method when being executed by processor.
It should be understood that above general description and following detailed description is only exemplary and explanatory, rather than Limit the disclosure.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the other feature and aspect of the disclosure will become It is clear.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and those figures show meet this public affairs The embodiment opened, and together with specification it is used to illustrate the technical solution of the disclosure.
Fig. 1 shows the flow chart of the task executing method according to the embodiment of the present disclosure;
Fig. 2 shows the flow charts according to the task executing method of the embodiment of the present disclosure;
Fig. 3 shows the flow chart of the task executing method according to the embodiment of the present disclosure;
Fig. 4 shows the flow chart of the task executing method according to the embodiment of the present disclosure;
Fig. 5 shows the flow chart of the task executing method according to the embodiment of the present disclosure;
Fig. 6 shows the flow chart of the task executing method according to the embodiment of the present disclosure;
Fig. 7 shows the application schematic diagram of the task executing method according to the embodiment of the present disclosure;
Fig. 8 shows the block diagram of the task execution device according to the embodiment of the present disclosure;
Fig. 9 shows the block diagram of the task execution device according to the embodiment of the present disclosure;
Figure 10 shows the block diagram of the electronic device according to the embodiment of the present disclosure;
Figure 11 shows the block diagram of the electronic device according to the embodiment of the present disclosure.
Specific embodiment
Various exemplary embodiments, feature and the aspect of the disclosure are described in detail below with reference to attached drawing.It is identical in attached drawing Appended drawing reference indicate element functionally identical or similar.Although the various aspects of embodiment are shown in the attached drawings, remove It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein Middle term "at least one" indicate a variety of in any one or more at least two any combination, it may for example comprise A, B, at least one of C can indicate to include any one or more elements selected from the set that A, B and C are constituted.
In addition, giving numerous details in specific embodiment below in order to which the disclosure is better described. It will be appreciated by those skilled in the art that without certain details, the disclosure equally be can be implemented.In some instances, for Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the disclosure.
In the treatment process of task, each step of task is there may be intermediate variable, for example, state variable, these State variable can be buffered in the memory of the calculation resources such as CPU and/or GPU, to carry out subsequent processing by state variable, but Calculation resources can be occupied by being buffered in calculation resources, and operation efficiency is caused to decline, and be unfavorable for calculation resources and be performed simultaneously multiple Business.Also, some tasks are commonly divided into multiple steps, and each step generates intermediate variable and is buffered in calculation resources, if Stopping processing (for example, suspended task or shut down computer) after some step is finished, then cache (transient state in calculation resources Storage) intermediate variable may lose, be unfavorable for continuing with subsequent step in next time, whole tasks can only be handled again, led Cause treatment effeciency lower.
In this example, in computer-related teaching, it will usually disassemble a programmed tasks for multiple steps to draw Student is led by being programmed to the target of each step, is finally completed the instructional objective of whole programming experiment, step it Between, teacher may suspend explanation, or multiple steps are arranged in multiple periods respectively and are imparted knowledge to students, it is therefore desirable in certain steps It is out of service after the completion of rapid.And calculation resources in the related technology be difficult to continue to execute when restarting execution task next time it is surplus Remaining step, and multiple students execute the intermediate variable that experimental procedure generates and are buffered in calculation resources, cause calculation resources negative Lotus is larger, and operational efficiency is lower, it is difficult to undertake the operation of the experimental implementation of more student.
The task executing method of the disclosure can will load the status information of a upper sub-steps when executing certain sub-steps, It is not necessary that status information to be buffered in calculation resources, calculation resources can be saved, operation efficiency is improved, is conducive to execute parallel multiple Task can also be suspended or be stopped at any time by task, the stress state information when continuing to execute task next time, complete without re-executing Portion's task improves treatment effeciency.The task executing method can be used in the computer teachings course such as artificial intelligence, and teaching is real Understandable multiple steps can be divided by testing, and the status information of each step improves operation effect without being buffered in calculation resources Rate is conducive to more student and carries out experimental implementation, and teaching task can suspend at any time, it is subsequent continue teaching when, can load The status information of one subtask or step, is conducive to teachers ' teaching and student understands.The task executing method can also be used in In development project or scientific research project, the multiple personnel for being conducive to team carry out project development, improve treatment effeciency, project It can suspend and continue at any time, the progress control and work for being conducive to project distribute.The disclosure answers the task executing method With no restrictions with scene.
Fig. 1 shows the flow chart of the task executing method according to the embodiment of the present disclosure, as shown in Figure 1, which comprises
In step s 11, when receiving the execution request for the first subtask of goal task, according to server It is each to execute the current resource information of node, determine that the target for executing first subtask executes node, first son Task is any one subtask of the goal task;
In step s 12, judge whether the first state information for being stored with the previous subtask of first subtask;
In step s 13, in the case where being stored with the first state information, the first state information is loaded into The target executes node;
In step S14, according to the first state information, node is executed by the target and executes first son times Business, obtains the implementing result of first subtask.
The first state information of previous subtask can be loaded by task executing method according to an embodiment of the present disclosure The target of the first current subtask of processing executes node, without caching previous subtask in the memory that target executes node First state information so that status information occupy calculation resources it is less, improve the treatment effeciency of calculation resources, be conducive to transport Calculate resource parallel processing multiple tasks.
In one possible implementation, the server can correspond to multiple terminals, and the terminal can be commonly The browser of computer, or the application software or program installed on computers, the software or program may include operation circle Face.Terminal can be used for receiving the operational orders such as the code of goal task and (refer to for example, receiving operation in browser or operation interface Enable), and can be generated according to operational order and execute request, and be sent to server.
In one possible implementation, goal task may include multiple subtasks, for example, goal task is computer Teaching experiment, multiple subtasks can be multiple steps of the experiment, and the operational order (example of each step can be received by terminal Such as, code).In this example, currently will performance objective task the first subtask (for example, some experiment in some step Suddenly), the operational order (for example, execution code of the step) of the first subtask can be received by terminal, terminal can be directed to the behaviour That makees the first subtask of instruction generation executes request, and execution request may include the operational order, and server is receiving After stating execution request, the operational order (that is, executing the first subtask) can be performed.
In one possible implementation, the calculation resources such as CPU in the server and/or GPU can be divided into more A execution node, each execution node can have certain operational capability, and each execute can be mutually indepedent between node, example Such as, in computer teaching experiment, executing node 1 can be performed some subtask of student 1, and executing node 2 can be performed student's 2 Some subtask ... disclosure to execute node quantity with no restrictions.
In one possible implementation, in step s 11, the server is in the execution for receiving the first subtask When request, the current resource information of node can be executed according to each, determined from multiple execution nodes for executing described first The target of subtask executes node.
For example, the occupation condition for respectively executing node is different, the lower execution node of resources occupation rate can be preferentially selected Request is executed handle the first subtask.For example, server can receive what multiple students used in computer teaching experiment What terminal was sent executes request, and each execution request can occupy calculation resources, appoints in the target for receiving the transmission of some terminal When the execution request of the first subtask of business, the execution node that resource occupation can be selected less from multiple execution nodes is as mesh Mark executes node, executes the first subtask with higher treatment effeciency, the treatment effeciency of the first subtask can be improved.
In one possible implementation, in step s 12, when executing the first subtask, it may be necessary to the first son The first state information of the previous subtask of task.For example, being needed when executing some step in computer teaching experiment The status information (for example, state variable) that the previous step of the step generates when being executed, and according to the shape of previous step The step is executed based on state variable, for example, (for example, circulation every time, as a result increases in the experiment of some circulate operation It is big 1), in the 2nd step, state variable 2, when executing the 3rd step, need be with the state variable of the 2nd step Basis, then increase 1.
In one possible implementation, it to reduce the occupancy to calculation resources, by cloud or can be locally stored Device stores the status information of each subtask, it is not necessary that status information to be buffered in the memory of calculation resources.Executing certain When a subtask, the status information of the previous subtask of the subtask is searched beyond the clouds or in local storage.In example In, the status information of each subtask can be stored in the form of Variables Sequence, for example, can by the status information of transient state (such as State variable) Variables Sequence with long preservation period is converted to, in order to store for a long time beyond the clouds or in local storage.In cloud In end or local storage, the Variables Sequence of multiple subtasks of task performed by multiple users can be stored, for example, can be with The state variable of the multiple steps for the experiment that multiple students are done is stored in the form of Variables Sequence.If the first subtask is mesh First subtask of mark task or the previous subtask of the first subtask do not generate status information, then are not present first Status information.Before executing the first subtask, it may be determined that no in cloud or local storage to be stored with first subtask Previous subtask first state information.
In one possible implementation, it is loaded by the first state information of the previous subtask of the first subtask Before executing node to target, it can confirm and no in cloud or local storage be stored with first state information.
In this example, the first subtask is first subtask of goal task, then in cloud or local storage not There are the first state information of the previous subtask of the first subtask.Alternatively, the previous subtask of the first subtask does not produce Raw status information, for example, the previous subtask of the first subtask is that will not generate state letter the step of loading certain code packets Breath, then there is no the first state information of the previous subtask of the first subtask in cloud or local storage.
In this example, the first subtask is not first subtask of goal task, and the previous height of the first subtask Task produces status information, then there are the first shapes of the previous subtask of the first subtask in cloud or local storage State information.For example, the previous subtask of the first subtask defines certain variables, or operation or spy are carried out to certain variables The processing such as sign extraction, then the previous subtask of the first subtask can produce status information, deposit in cloud or local storage First state information in the previous subtask of the first subtask.
In one possible implementation, it can judge whether deposit in cloud or local storage according to request is executed First state information in the previous subtask of the first subtask.It is described execute request include the goal task mark with And the mark of first subtask.In this example, the mark of the goal task and the mark of the first subtask can be used for looking into It askes and whether there is first state information in cloud or local storage.
Fig. 2 shows the flow charts according to the task executing method of the embodiment of the present disclosure, as shown in Fig. 2, the method is also wrapped It includes:
In step S14, according to the mark of the goal task and the mark of first subtask, judge whether to deposit Contain the first state information of the previous subtask of first subtask.
In this example, the executable one or more tasks of terminal (can not distinguish the user of execution task, that is, any user The same task can be performed), the status information of the subtask of each task can be reserved for beyond the clouds or in local storage. It, can be according to the mark for executing the goal task in request when server receives the execution request of the first subtask of goal task Know come the storage location for the status information for determining each subtask of storage goal task, and in the storage location, according to first Subtask identifies to search the first state information of the previous subtask of the first subtask.For example, goal task is some Computer teaching is tested, and the status information of multiple steps of multiple experiments is stored in cloud or local storage (for example, shape State variable), it, can be first according to the mark of the experiment beyond the clouds or in local storage when executing some step of the experiment The storage location for storing the status information of each step of the experiment is determined, then in the storage location, according to what will be executed The mark of step inquires the status information of the previous step of the step, for example, the step of will executing is step 3, it can be at this The status information of step 2 is inquired in storage location.
In one possible implementation, described to execute mark, the mark of the goal task that request includes user And the mark of first subtask.In this example, the mark of the user, the mark of goal task and the first subtask Mark can be used for inquiring in cloud or local storage with the presence or absence of first state information.
In this example, the first subtask is first subtask of goal task, then in cloud or local storage not There are the first state information of the previous subtask of the first subtask.Alternatively, the previous subtask of the first subtask does not produce Raw status information, for example, the previous subtask of the first subtask is that will not generate state letter the step of loading certain code packets Breath, then there is no the first state information of the previous subtask of the first subtask in cloud or local storage.
In this example, the first subtask is not first subtask of goal task, and the previous height of the first subtask Task produces status information, then there are the first shapes of the previous subtask of the first subtask in cloud or local storage State information.For example, the previous subtask of the first subtask defines certain variables, or operation or spy are carried out to certain variables The processing such as sign extraction, then the previous subtask of the first subtask can produce status information, deposit in cloud or local storage First state information in the previous subtask of the first subtask.
Fig. 3 shows the flow chart of the task executing method according to the embodiment of the present disclosure, as shown in Fig. 2, the method is also wrapped It includes:
In step S15, according to the mark of the user, the mark of the goal task and first subtask Mark, judges whether the first state information of the previous subtask for the first subtask for being stored with the user.
In this example, server corresponds to multiple users, and one or more tasks can be performed in each use per family, each task The status information of subtask can be reserved for beyond the clouds or in local storage.The first son of goal task is received in server , can be according to the mark for executing the user in request when the execution request of task, it is corresponding that the task that the user executes is stored in inquiry Storage location, and storage goal task can be determined according to the mark of the goal task executed in request in the storage location Junior's storage location of the status information of each subtask, and in junior's storage location, according to the mark of the first subtask Come search the first subtask previous subtask first state information.
In this example, goal task is the experiment of some computer teaching, is stored in cloud or local storage multiple The status information (for example, state variable) of multiple steps of experiment can be first when some user executes some step of the experiment Storage location corresponding with the user is first searched according to user identifier, and the mark in the storage location according to the experiment is true Surely junior's storage location of the status information of each step of the experiment is stored, then in junior's storage location, according to i.e. By the mark for the step of executing, the status information of the previous step of the step is inquired, in this example, i.e., will be the step of execution Step 3 can inquire the status information of step 2 in the storage location.It, can be with the 2nd for example, in junior's storage location The corresponding position of the mark (that is, mark of subtask) of step saves the status information of step 2, can be according to the when executing step 3 The mark of 3 steps, the status information to be inquired of determination are the status information of step 2, and in position corresponding with the mark of step 2 Inquire the status information of step 2.
In this example, the user also replaceable terminal executes task, for example, terminal A can be used to hold for some user The second sub-steps of terminal B performance objective task can be used, in user's using terminal in first sub-steps of row goal task Before A or terminal B execution task, user identifier can be inputted, server can be inquired according to user identifier to be stored the user and execute The corresponding storage location of task.
In this way, the first of the previous subtask of the first subtask can accurately be inquired according to request is executed Status information adequately loads first state information and executes the first subtask offer basis.
In one possible implementation, in step s 12, if being stored with first in cloud or local storage First state information is then loaded into the target and executes node by status information.
In one possible implementation, every height is stored in the form of Variables Sequence in cloud or local storage Variables Sequence can be converted to computer-readable status information (for example, state variable), in order to mesh by the status information of task Mark executes node and executes subsequent subtask according to status information.
Step S12 can include: the Variables Sequence of the first state information is loaded into the target and executes node;Pass through The target executes node and carries out unserializing processing to the Variables Sequence of the first state information, obtains the first state Information.
In this example, target executes node can obtain the Variables Sequence of first state information first, that is, by cloud or local The Variables Sequence of first state information in storage device is loaded onto target and executes node, and then, target executes node can be to institute It states Variables Sequence and carries out unserializing processing, obtain computer-readable first state information.And then it can be believed according to first state Breath executes the first subtask.
In this way, the status information of serializing can load convenient for storage, and convenient for executing when follow-up work, pass through Status information is obtained after unserializing processing, node processing can be executed convenient for target.
In one possible implementation, in step s 13, target execution node can be according to the first state information The first subtask is executed, the implementing result of first subtask is obtained.
In this example, (for example, 1) circulation every time, as a result increases, in the 2nd step in the experiment of some circulate operation In (the previous subtask of the first subtask), state variable 2, the state variable is stored beyond the clouds in the form of Variables Sequence Or in local storage.When executing the 3rd step (the first subtask), need using the state variable of the 2nd step as base Plinth, can search the Variables Sequence of the 2nd step of the experiment beyond the clouds or in local storage, and is loaded onto target and executes section Point, target, which executes node, to carry out unserializing for the Variables Sequence of the 2nd step, obtain the state variable (example of the 2nd step Such as, 2), target, which executes node, can execute the first subtask according to the state variable, for example, in the state variable of the 2nd step On the basis of (for example, 2), then plus 1, obtain the 3rd step implementing result (for example, 3).The disclosure is to goal task and respectively The status information of subtask with no restrictions, for example, goal task can also be artificial intelligence test, for example, training nerve net In the experiment of network, status information may include the network parameter of neural network, in the experiment for executing certain processing by neural network In, status information may include the feature etc. that neural network is extracted.
In one possible implementation, in cloud or local storage may not stored first subtask it is previous The first state information of a subtask, for example, the first subtask is first subtask or the first subtask of goal task Previous subtask be generate status information.
Fig. 4 shows the flow chart of the task executing method according to the embodiment of the present disclosure, as shown in Fig. 2, the method is also wrapped It includes:
In step s 16, in the case where the not stored first state information, node is executed by the target and is executed First subtask obtains the implementing result of first subtask.
In this example, the first subtask is first subtask of goal task or the previous height of the first subtask Task does not generate status information, can execute node by target and directly execute the first subtask, for example, the first son can be executed directly Operational order (for example, executing code) in the execution request of task.
In this example, the previous subtask of the first subtask does not generate status information, for example, the previous subtask For the step of loading certain code packets, status information will not be generated, also the first two can be inquired beyond the clouds or in storage device and appoint The status information of the last one subtask of generation status information before the status information of business or the first subtask, and according to The status information executes the first subtask.
In one possible implementation, when target executes node and executes the first subtask, it can get the first son and appoint Second status information of business.The implementing result of first subtask may include the second status information of first subtask. For example, when executing the 3rd step (the first subtask), obtaining the execution of the 3rd step in the experiment of the circulate operation The current status information (that is, second status information of the first subtask) of as a result (for example, 3), the experiment of the circulate operation is 3。
Fig. 5 shows the flow chart of the task executing method according to the embodiment of the present disclosure, as shown in figure 5, the method is also wrapped It includes:
In step S17, the second status information of first subtask is stored.
In one possible implementation, target executes the second state that node can will generate when executing the first subtask Information is stored to cloud or local storage, can be loaded when subtask convenient for continuing after execution, can also be by the second status information It is deleted from the memory that target executes node, avoids occupying the calculation resources that target executes node, improve treatment effeciency.
In one possible implementation, cloud or local storage can store second in the form of Variables Sequence Status information is convenient for subsequent child task call in order to store for a long time beyond the clouds or in local storage.Step S17 can be wrapped It includes: serializing processing being carried out to second status information, obtains the Variables Sequence of second status information;Store described The Variables Sequence of two-state information.
In one possible implementation, target execute node can by computer-readable second status information (for example, State variable) Variables Sequence for being convenient for storing for a long time is converted to, and store beyond the clouds or in local storage, to execute It is called when subsequent subtask.In this example, the mark of the first subtask can be also stored, is looked into when subtask in order to continue after execution Look for the second status information of the first subtask.
In this way, the second status information can be serialized, convenient for long-term storage and subsequent calling, and can The memory that target executes node is discharged, occupancy calculation resources are lower, improve treatment effeciency, it is more to be conducive to calculation resources parallel processing A task.
In one possible implementation, terminal can be the browser of computer or that installs on computers answer With software or program, terminal can have visual interface, can be used for receiving the operational order and display implementing result of user.
Fig. 6 shows the flow chart of the task executing method according to the embodiment of the present disclosure, as shown in fig. 6, the method is also wrapped It includes:
In step S18, the implementing result of first subtask is sent to terminal.
In one possible implementation, target executes node and is executing the first subtask and obtaining the first subtask After implementing result, implementing result can be sent to terminal, terminal can show the implementing result in visual interface.For example, In the experiment of the circulate operation, when target executes node and executes the 3rd step (the first subtask), the 3rd step is obtained Implementing result (for example, 3), target execute node the implementing result can be sent to terminal, terminal can be shown in visual interface The implementing result for showing the 3rd step is 3.In another example executing node in artificial intelligence experiment in target and executing some subtask (for example, subtask of feature extraction processing), and implementing result (for example, the characteristic pattern extracted) is obtained, target executes node The implementing result can be sent to terminal, terminal can show this feature figure in visual interface.
Task executing method according to an embodiment of the present disclosure can request beyond the clouds or in local storage according to executing Accurately inquire the first state information of the previous subtask of the first subtask, and by the first shape of the previous subtask State information obtains status information after unserializing is handled, and can execute node processing convenient for target.It further, can be by second Status information is serialized and is stored in cloud or local storage, convenient for long-term storage and subsequent calling, and can The memory that target executes node is discharged, without the buffer status information in the memory that target executes node, so that status information accounts for Calculation resources are less, and occupancy calculation resources are lower, improve treatment effeciency, are conducive to calculation resources parallel processing multiple Business.
Fig. 7 shows the application schematic diagram of the task executing method according to the embodiment of the present disclosure, as shown in fig. 7, goal task It can be computer teaching experiment, which can be multiple subtasks by computer programming Task-decomposing (that is, being decomposed into multiple steps Suddenly), for example, experimental procedure 1, experimental procedure 2 and experimental procedure 3, in order to which teachers ' teaching and student understand.
In one possible implementation, student can be in terminal (for example, the browser of computer or on computers The application software or program of installation) visual interface in input experimental procedure 1, experimental procedure 2 or experimental procedure 3 operational order (for example, code), terminal can execute request for operational order generation, and be sent to server.Server can be according to each execution The current resource information of node is determined to execute the execution node of the experimental procedure.In this example, when carrying out experimental procedure 1, The operational order of experimental procedure 1 can be executed by executing node 3, when carrying out experimental procedure 2, can by execution node 2 come The operational order for executing experimental procedure 2 can execute the behaviour of experimental procedure 3 by executing node 5 when carrying out experimental procedure 3 It instructs.The disclosure executes node with no restrictions to used in each step of execution.
In one possible implementation, in the execution request of experimental procedure 1, it may include the mark of user calculates The mark of machine teaching experiment and the mark of experimental procedure 1.The operational order of experimental procedure 1 can be executed by executing node 3, and The status information of experimental procedure 1 is obtained, in this example, the status information may include state variable (for example, programming in python In teaching experiment, state variable may include number, character string, list, tuple, dictionary, array, function, class, module etc.), it executes Node 3 can serialize the status information of experimental procedure 1, the Variables Sequence of experimental procedure 1 be obtained, for example, can pass through Dill.dump function serializes the status information of experimental procedure 1, the disclosure to the method for serializing with no restrictions.Beyond the clouds It or include that in the storage location, can be wrapped in storage location corresponding with the mark for being currently the user tested in storage device Junior corresponding with the mark of experiment storage location is included, it can be by the Variables Sequence of experimental procedure 1 and the mark of experimental procedure 1 It is stored in junior's storage location.
In one possible implementation, experimental procedure 2 can be executed by executing node 2.In holding for experimental procedure 2 In row request, it may include mark, the mark of computer teaching experiment and the mark of experimental procedure 2 of user.It can be according to user's The mark of mark and computer teaching experiment determines that the ongoing target of the user tests corresponding junior's storage location, and According to the mark of experimental procedure 2, the status information to be inquired of determination is the status information of experimental procedure 1, can be according to experimental procedure 1 Mark inquiry experimental procedure 1 Variables Sequence and load and execution node 2, execute node 2 can be to the Variables Sequence of experimental procedure 1 Unserializing processing is carried out, for example, can carry out at unserializing by Variables Sequence of the dill.load function to experimental procedure 1 Reason, obtains the status information of experimental procedure 1, the disclosure to the method for unserializing with no restrictions.Further, node 2 is executed The operational order of experimental procedure 2 can be executed on the basis of the status information of experimental procedure 1, obtain the state letter of experimental procedure 2 Breath.The status information of experimental procedure 2 can be serialized by executing node 2, obtain the Variables Sequence of experimental procedure 2, and experiment is walked Rapid 2 Variables Sequence and the mark of experimental procedure 2 are stored in junior corresponding with the mark of experiment storage location.By same Mode, can get the Variables Sequence of experimental procedure 3, and the mark of the Variables Sequence of experimental procedure 3 and experimental procedure 3 is saved In junior corresponding with the mark of experiment storage location.
In one possible implementation, when executing each experimental procedure, it can get the implementing result of each experimental procedure, The implementing result of experimental procedure can be sent to terminal by the execution node for executing each experimental procedure, and terminal is made to show implementing result.
In one possible implementation, the task executing method can be used for the computer teachings course such as artificial intelligence In, multiple calculation resources and memory source for executing node reusable CPU/GPU can provide service for multiple students and teacher, And teaching task can be divided into understandable multiple steps, the status information of each step can be reserved for beyond the clouds or be locally stored dress In setting, after execution continue step when can stress state information therefore can suspend experiment at any time, and after experiment restarts add Status information is carried to continue to test, explains experimentation convenient for teacher, is also convenient for complicated experiment being divided into multiple courses to teach It learns, student can also exit experiment at any time, and stress state information is conducive to student's root to continue to test when re-starting experiment Freely learn according to the progress of oneself.The memory that can also less occupy CPU/GPU simultaneously improves the use effect of calculation resources Rate reduces operation cost.The disclosure to the application scenarios of the task executing method with no restrictions.
Fig. 8 shows the block diagram of the task execution device according to the embodiment of the present disclosure, as shown in figure 8, described device includes:
Determining module 11, for receive for goal task the first subtask execution request when, according to service The current resource information of each execution node of device determines that the target for executing first subtask executes node, described the One subtask is any one subtask of the goal task;
Loading module 12, in the case where being stored with first state information, the first state information to be loaded into The target executes node, wherein the first state information is the status information of the previous subtask of the first subtask;
First execution module 13, for being executed described in node execution by the target according to the first state information First subtask obtains the implementing result of first subtask.
Fig. 9 shows the block diagram of the task execution device according to the embodiment of the present disclosure, and the execution request includes the target The mark of task and the mark of first subtask, wherein described device further include:
First judgment module 14, for sentencing according to the mark of the goal task and the mark of first subtask The first state information of the disconnected previous subtask for whether being stored with first subtask.
In one possible implementation, described to execute mark, the mark of the goal task that request includes user And the mark of first subtask, wherein described device further include:
Second judgment module 15, for according to the mark of the user, the mark of the goal task and described first The mark of subtask judges whether the first state information of the previous subtask for the first subtask for being stored with the user.
In one possible implementation, described device further include:
Second execution module 16, for being executed by the target in the case where the not stored first state information Node executes first subtask, obtains the implementing result of first subtask.
In one possible implementation, the implementing result of first subtask includes the of first subtask Two-state information, described device further include:
Memory module 17, for storing the second status information of first subtask.
In one possible implementation, described device further include:
Sending module 18, for sending the implementing result of first subtask to terminal.
In one possible implementation, the loading module is further configured to:
The Variables Sequence of the first state information is loaded into the target and executes node;
Node is executed by the target, unserializing processing is carried out to the Variables Sequence of the first state information, obtain The first state information.
In one possible implementation, the memory module is further configured to:
Serializing processing is carried out to second status information, obtains the Variables Sequence of second status information;
Store the Variables Sequence of second status information.
It is appreciated that above-mentioned each embodiment of the method that the disclosure refers to, without prejudice to principle logic, To engage one another while the embodiment to be formed after combining, as space is limited, the disclosure is repeated no more.
In addition, the disclosure additionally provides task execution device, electronic equipment, computer readable storage medium, program, it is above-mentioned It can be used to realize any task executing method that the disclosure provides, corresponding technical solution and description and referring to method part It is corresponding to record, it repeats no more.
It will be understood by those skilled in the art that each step writes sequence simultaneously in the above method of specific embodiment It does not mean that stringent execution sequence and any restriction is constituted to implementation process, the specific execution sequence of each step should be with its function It can be determined with possible internal logic.
In some embodiments, the embodiment of the present disclosure provides the function that has of device or comprising module can be used for holding The method of row embodiment of the method description above, specific implementation are referred to the description of embodiment of the method above, for sake of simplicity, this In repeat no more.
The embodiment of the present disclosure also proposes a kind of computer readable storage medium, is stored thereon with computer program instructions, institute It states when computer program instructions are executed by processor and realizes the above method.Computer readable storage medium can be non-volatile meter Calculation machine readable storage medium storing program for executing.
The embodiment of the present disclosure also proposes a kind of electronic equipment, comprising: processor;For storage processor executable instruction Memory;Wherein, the processor is configured to the above method.
The equipment that electronic equipment may be provided as terminal, server or other forms.
Figure 10 is the block diagram of a kind of electronic equipment 800 shown according to an exemplary embodiment.For example, electronic equipment 800 It can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, Body-building equipment, the terminals such as personal digital assistant.
Referring to Fig.1 0, electronic equipment 800 may include following one or more components: processing component 802, memory 804, Power supply module 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, And communication component 816.
The integrated operation of the usual controlling electronic devices 800 of processing component 802, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 802 may include one or more processors 820 to hold Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more moulds Block, convenient for the interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, with Facilitate the interaction between multimedia component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in electronic equipment 800.These data Example include any application or method for being operated on electronic equipment 800 instruction, contact data, telephone directory Data, message, picture, video etc..Memory 804 can by any kind of volatibility or non-volatile memory device or it Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable Except programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, fastly Flash memory, disk or CD.
Power supply module 806 provides electric power for the various assemblies of electronic equipment 800.Power supply module 806 may include power supply pipe Reason system, one or more power supplys and other with for electronic equipment 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between the electronic equipment 800 and user. In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, Multimedia component 808 includes a front camera and/or rear camera.When electronic equipment 800 is in operation mode, as clapped When taking the photograph mode or video mode, front camera and/or rear camera can receive external multi-medium data.It is each preposition Camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when electronic equipment 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone It is configured as receiving external audio signal.The received audio signal can be further stored in memory 804 or via logical Believe that component 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, for providing the state of various aspects for electronic equipment 800 Assessment.For example, sensor module 814 can detecte the state that opens/closes of electronic equipment 800, the relative positioning of component, example As the component be electronic equipment 800 display and keypad, sensor module 814 can also detect electronic equipment 800 or The position change of 800 1 components of electronic equipment, the existence or non-existence that user contacts with electronic equipment 800, electronic equipment 800 The temperature change of orientation or acceleration/deceleration and electronic equipment 800.Sensor module 814 may include proximity sensor, be configured For detecting the presence of nearby objects without any physical contact.Sensor module 814 can also include optical sensor, Such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which may be used also To include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between electronic equipment 800 and other equipment. Electronic equipment 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.Show at one In example property embodiment, communication component 816 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, short to promote Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 800 can be by one or more application specific integrated circuit (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing is additionally provided, for example including calculating The memory 804 of machine program instruction, above-mentioned computer program instructions can be executed by the processor 820 of electronic equipment 800 to complete The above method.
Figure 11 is the block diagram of a kind of electronic equipment 1900 shown according to an exemplary embodiment.For example, electronic equipment 1900 may be provided as a server.Referring to Fig.1 1, it further comprises one that electronic equipment 1900, which includes processing component 1922, A or multiple processors and memory resource represented by a memory 1932, can be by processing component 1922 for storing The instruction of execution, such as application program.The application program stored in memory 1932 may include one or more every One corresponds to the module of one group of instruction.In addition, processing component 1922 is configured as executing instruction, to execute the above method.
Electronic equipment 1900 can also include that a power supply module 1926 is configured as executing the power supply of electronic equipment 1900 Management, a wired or wireless network interface 1950 is configured as electronic equipment 1900 being connected to network and an input is defeated (I/O) interface 1958 out.Electronic equipment 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing is additionally provided, for example including calculating The memory 1932 of machine program instruction, above-mentioned computer program instructions can by the processing component 1922 of electronic equipment 1900 execute with Complete the above method.
The disclosure can be system, method and/or computer program product.Computer program product may include computer Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the disclosure.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations lead to It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/ Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing disclosure operation can be assembly instruction, instruction set architecture (ISA) instructs, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the disclosure Face.
Referring herein to according to the flow chart of the method, apparatus (system) of the embodiment of the present disclosure and computer program product and/ Or block diagram describes various aspects of the disclosure.It should be appreciated that flowchart and or block diagram each box and flow chart and/ Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special purpose computer or other programmable datas The processor of processing unit, so that a kind of machine is produced, so that these instructions are passing through computer or other programmable datas When the processor of processing unit executes, function specified in one or more boxes in implementation flow chart and/or block diagram is produced The device of energy/movement.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to It enables so that computer, programmable data processing unit and/or other equipment work in a specific way, thus, it is stored with instruction Computer-readable medium then includes a manufacture comprising in one or more boxes in implementation flow chart and/or block diagram The instruction of the various aspects of defined function action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other In equipment, so that series of operation steps are executed in computer, other programmable data processing units or other equipment, to produce Raw computer implemented process, so that executed in computer, other programmable data processing units or other equipment Instruct function action specified in one or more boxes in implementation flow chart and/or block diagram.
The flow chart and block diagram in the drawings show system, method and the computer journeys according to multiple embodiments of the disclosure The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation One module of table, program segment or a part of instruction, the module, program segment or a part of instruction include one or more use The executable instruction of the logic function as defined in realizing.In some implementations as replacements, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
The presently disclosed embodiments is described above, above description is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport In principle, the practical application or to the technological improvement in market for best explaining each embodiment, or make the art its Its those of ordinary skill can understand each embodiment disclosed herein.

Claims (10)

1. a kind of task executing method, which is characterized in that the method is used for server, comprising:
When receiving the execution request for the first subtask of goal task, current according to each execution node of server Resource information determines that the target for executing first subtask executes node, and first subtask is that the target is appointed Any one subtask of business;
In the case where being stored with first state information, the first state information is loaded into the target and executes node, In, the first state information is the status information of the previous subtask of the first subtask;
According to the first state information, node is executed by the target and executes first subtask, obtains described first The implementing result of subtask.
2. the method according to claim 1, wherein the method also includes:
In the case where the not stored first state information, node is executed by the target and executes first subtask, Obtain the implementing result of first subtask.
3., will be described the method according to claim 1, wherein in the case where being stored with first state information First state information is loaded into the target and executes node, comprising:
The Variables Sequence of the first state information is loaded into the target and executes node;
Node is executed by the target, unserializing processing is carried out to the Variables Sequence of the first state information, obtain described First state information.
4. method described in any one of -3 according to claim 1, which is characterized in that the implementing result of first subtask The second status information including first subtask, the method also includes:
Store the second status information of first subtask.
5. according to the method described in claim 4, it is characterized in that, the second status information of storage first subtask, packet It includes:
Serializing processing is carried out to second status information, obtains the Variables Sequence of second status information;
Store the Variables Sequence of second status information.
6. method described in any one of -5 according to claim 1, which is characterized in that the execution request includes the target The mark of task and the mark of first subtask, wherein the method also includes:
According to the mark of the goal task and the mark of first subtask, judge whether that being stored with first son appoints The first state information of the previous subtask of business.
7. method described in any one of -5 according to claim 1, which is characterized in that described to execute the mark that request includes user The mark of knowledge, the mark of the goal task and first subtask, wherein the method also includes:
According to the mark of the mark of the user, the mark of the goal task and first subtask, judge whether to deposit Contain the first state information of the previous subtask of the first subtask of the user.
8. a kind of task execution device characterized by comprising
Determining module, for receive for goal task the first subtask execution request when, according to each of server The current resource information of node is executed, determines that the target for executing first subtask executes node, first son is appointed Business is any one subtask of the goal task;
Loading module, in the case where being stored with first state information, the first state information to be loaded into the mesh Mark executes node, wherein the first state information is the status information of the previous subtask of the first subtask;
First execution module, for executing node by the target and executing first son according to the first state information Task obtains the implementing result of first subtask.
9. a kind of electronic equipment characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, it the processor is configured to calling the instruction of the memory storage, is required with perform claim any in 1 to 7 Method described in one.
10. a kind of computer readable storage medium, is stored thereon with computer program instructions, which is characterized in that the computer Method described in any one of claim 1 to 7 is realized when program instruction is executed by processor.
CN201910549582.1A 2019-06-24 2019-06-24 Task executing method and device, electronic equipment and storage medium Pending CN110262886A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910549582.1A CN110262886A (en) 2019-06-24 2019-06-24 Task executing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910549582.1A CN110262886A (en) 2019-06-24 2019-06-24 Task executing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110262886A true CN110262886A (en) 2019-09-20

Family

ID=67920901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910549582.1A Pending CN110262886A (en) 2019-06-24 2019-06-24 Task executing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110262886A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708641A (en) * 2020-07-14 2020-09-25 腾讯科技(深圳)有限公司 Memory management method, device and equipment and computer readable storage medium
CN112637267A (en) * 2020-11-27 2021-04-09 成都质数斯达克科技有限公司 Service processing method and device, electronic equipment and readable storage medium
CN112631781A (en) * 2020-12-29 2021-04-09 上海商汤智能科技有限公司 Operator execution method and device, electronic equipment and storage medium
CN112988194A (en) * 2021-03-29 2021-06-18 北京市商汤科技开发有限公司 Program optimization method and device based on equipment information, electronic equipment and storage medium
CN113391914A (en) * 2020-03-11 2021-09-14 上海商汤智能科技有限公司 Task scheduling method and device
CN115564322A (en) * 2022-12-06 2023-01-03 连连(杭州)信息技术有限公司 Business processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729257A (en) * 2012-10-16 2014-04-16 阿里巴巴集团控股有限公司 Distributed parallel computing method and system
CN105139703A (en) * 2015-09-24 2015-12-09 杭州华恩教育科技有限公司 Cloud teaching system
CN106296042A (en) * 2016-09-28 2017-01-04 枣庄学院 Teaching and Production MIS towards College Project practice training centre
CN108874520A (en) * 2018-06-06 2018-11-23 成都四方伟业软件股份有限公司 Calculation method and device
CN109271158A (en) * 2018-07-25 2019-01-25 深圳点猫科技有限公司 A kind of method and its system realized based on graphic programming platform with buyun variable

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729257A (en) * 2012-10-16 2014-04-16 阿里巴巴集团控股有限公司 Distributed parallel computing method and system
CN105139703A (en) * 2015-09-24 2015-12-09 杭州华恩教育科技有限公司 Cloud teaching system
CN106296042A (en) * 2016-09-28 2017-01-04 枣庄学院 Teaching and Production MIS towards College Project practice training centre
CN108874520A (en) * 2018-06-06 2018-11-23 成都四方伟业软件股份有限公司 Calculation method and device
CN109271158A (en) * 2018-07-25 2019-01-25 深圳点猫科技有限公司 A kind of method and its system realized based on graphic programming platform with buyun variable

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周毅: "《广播电视数字化、网络化的理论创新与科学实践》", 31 January 2015 *
彭渊: "《大规模分布式系统架构与设计实战》", 28 February 2014 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113391914A (en) * 2020-03-11 2021-09-14 上海商汤智能科技有限公司 Task scheduling method and device
CN111708641A (en) * 2020-07-14 2020-09-25 腾讯科技(深圳)有限公司 Memory management method, device and equipment and computer readable storage medium
CN111708641B (en) * 2020-07-14 2024-03-19 腾讯科技(深圳)有限公司 Memory management method, device, equipment and computer readable storage medium
CN112637267A (en) * 2020-11-27 2021-04-09 成都质数斯达克科技有限公司 Service processing method and device, electronic equipment and readable storage medium
CN112631781A (en) * 2020-12-29 2021-04-09 上海商汤智能科技有限公司 Operator execution method and device, electronic equipment and storage medium
CN112988194A (en) * 2021-03-29 2021-06-18 北京市商汤科技开发有限公司 Program optimization method and device based on equipment information, electronic equipment and storage medium
CN115564322A (en) * 2022-12-06 2023-01-03 连连(杭州)信息技术有限公司 Business processing method and device, electronic equipment and storage medium
CN115564322B (en) * 2022-12-06 2023-09-19 连连(杭州)信息技术有限公司 Service processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110262886A (en) Task executing method and device, electronic equipment and storage medium
CN110827378B (en) Virtual image generation method, device, terminal and storage medium
CN108805091B (en) Method and apparatus for generating a model
US9299268B2 (en) Tagging scanned data with emotional tags, predicting emotional reactions of users to data, and updating historical user emotional reactions to data
CN111476871B (en) Method and device for generating video
CN109614613A (en) The descriptive statement localization method and device of image, electronic equipment and storage medium
CN110288682B (en) Method and apparatus for controlling changes in a three-dimensional virtual portrait mouth shape
CN109740018B (en) Method and device for generating video label model
CN109783256A (en) Artificial intelligence tutoring system and method, electronic equipment, storage medium
CN109919300A (en) Neural network training method and device and image processing method and device
JP2021514497A (en) Face recognition methods and devices, electronic devices and storage media
US11386804B2 (en) Intelligent social interaction recognition and conveyance using computer generated prediction modeling
CN109829432A (en) Method and apparatus for generating information
CN109919244A (en) Method and apparatus for generating scene Recognition model
CN109145970A (en) Question and answer treating method and apparatus, electronic equipment and storage medium based on image
TW202105311A (en) System, method and electronic device for teaching and storage medium thereof
CN109165738A (en) Optimization method and device, electronic equipment and the storage medium of neural network model
KR20230079321A (en) Communication system providing chatbot service
CN110532983A (en) Method for processing video frequency, device, medium and equipment
KR102284862B1 (en) Method for providing video content for programming education
CN109920016A (en) Image generating method and device, electronic equipment and storage medium
CN108182472A (en) For generating the method and apparatus of information
CN107948437A (en) Put out screen and show method and apparatus
CN114446305A (en) Personal voice recommendation using audience feedback
CN114140814A (en) Emotion recognition capability training method and device and electronic equipment

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: 20190920