CN108959063A - A kind of method and apparatus that program executes - Google Patents

A kind of method and apparatus that program executes Download PDF

Info

Publication number
CN108959063A
CN108959063A CN201710377379.1A CN201710377379A CN108959063A CN 108959063 A CN108959063 A CN 108959063A CN 201710377379 A CN201710377379 A CN 201710377379A CN 108959063 A CN108959063 A CN 108959063A
Authority
CN
China
Prior art keywords
program
record
module
executes
described program
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
CN201710377379.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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710377379.1A priority Critical patent/CN108959063A/en
Publication of CN108959063A publication Critical patent/CN108959063A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3612Software analysis for verifying properties of programs by runtime analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of method and apparatus that program executes, and is related to field of computer technology.One specific embodiment of this method includes: to search that the program is corresponding to execute record from existing execution record according to the execution record name of program;The initial position for determining the program this time execution is recorded according to executing;The program is executed since the initial position and is generated and executes record, then the execution of generation record is updated to the program is corresponding to execute record.The embodiment can after program executes failure, using efficiently, economize on resources by the way of carry out program and run again.

Description

A kind of method and apparatus that program executes
Technical field
The present invention relates to computers and computer software technical field, the method and dress that particularly a kind of program executes It sets.
Background technique
Today's society, data have penetrated into each industry field, become the important reference of Instructing manufacture.With Data it is rapid expansion become larger, by the analysis to data, the developing direction in enterprise's future can be instructed.
Present big data is all some very atomizing information, and data really to be allowed to be converted to valuable information, is needed People are wanted to excavate and use mass data, using various technologies and statistical means, by discrete Data Integration at can be with The clear information that present situation and prediction future is presented.
The current most common Data Integration is patrolled this with processing mainly by developer by sql like language The SQL statement collected is packaged into the program of various schedulable execution, it will usually be packaged into python, shell, storing process (prelists The SQL statement translated) or the execution SQL logic in java code.These packaged programs every time operation when, code Execution sequence be all to carry out from top to down, if wherein some functional module executes failure, entire program is carried out mistake It loses.
Currently, common processing mode is as follows when program executes failure:
1, mechanism is run in the failure for relying on dispatching platform again automatically: dispatching platform can restart to execute program, and can not It is re-executed until running succeeded disconnectedly;
2, manually run program again: i.e.: the mode of artificial treatment, developer is by temporarily commenting out successfully Block code, then upload program and continuous race, again remove annotation after program runs succeeded, and upload program again.
In the implementation of the present invention, inventor has found that the prior art has the following technical problems:
1, mechanism is run in the failure for relying on dispatching platform again automatically, is to execute all journey again from the beginning every time Sequence, the functional module to have run succeeded before can repeat, and can not accomplish " breakpoint transmission ", therefore waste resource, prolong The execution time of entire program is grown;
Although 2, at present can the problem of settlement procedure repeats by way of artificial treatment, require people every time Work adds annotation modifications code manually, and must restore original code again after the completion of program executes, and operates so very ineffective It is living, and manually-operated unstability will lead to when executing program next time and exception occurs.
Summary of the invention
In view of this, the present invention provides a kind of method and apparatus that program executes, can be used after program executes failure Efficiently, the mode to economize on resources carries out program and runs again.
To achieve the above object, according to an aspect of the invention, there is provided a kind of method that program executes.
A kind of method that program executes, comprising: searched from existing execution record according to the execution record name of program Described program is corresponding to execute record;According to the initial position for executing and recording and determining that described program this time executes;From described Initial position starts to execute described program and generate to execute record, and the execution record of the generation is then updated to described program It is corresponding to execute record.
Optionally, the execution record name includes program name and parameter.
Optionally, the record that executes includes: program name, the parameter for executing input, module id, block code, mould Block executes the time started, module executes end time and module implementing result.
Optionally, further includes: if do not found from the existing execution record, described program is corresponding to execute note Record then executes described program since first module of described program, and described program is by being no less than a module composition.
It optionally, include: basis according to described the step of executing the initial position for recording determining this execution of described program The last item data record for executing record determines that the breakpoint module that described program executes, the breakpoint module are the journey The last one module that sequence last time executes;The starting that described program this time executes is determined according to the implementing result of the breakpoint module Position.
Optionally, the step of initial position that described program this time executes being determined according to the implementing result of the breakpoint module If including: the implementing result of the breakpoint module is successfully, next module of the breakpoint module to be determined as the journey The initial position that sequence this time executes;If the implementing result of the breakpoint module is failure, the breakpoint module is determined as institute State the initial position that program this time executes.
Optionally, further includes: periodically clear up and described execute record.
According to another aspect of the present invention, a kind of device that program executes is provided.
The device that a kind of program executes, comprising: record search unit, for according to the execution record name of program from existing Execution record in search that described program is corresponding executes record;Position determination unit is determined for being recorded according to the execution The initial position that described program this time executes;Record generation unit, for executing described program simultaneously since the initial position Generation executes record, then records the execution of the generation and is updated to that described program is corresponding to execute record.
Optionally, the execution record name includes program name and parameter.
Optionally, the record that executes includes: program name, the parameter for executing input, module id, block code, mould Block executes the time started, module executes end time and module implementing result.
It optionally, further include Predicated execution unit, if described for not found from the existing execution record Program is corresponding to execute record, then described program is executed since first module of described program, described program is by no less than One module composition.
Optionally, the position determination unit is also used to: being determined according to the last item data record for executing record The breakpoint module that described program executes, the breakpoint module are the last one module executed described program last time;According to described The implementing result of breakpoint module determines the initial position that described program this time executes.
Optionally, the position determination unit is also used to: if the implementing result of the breakpoint module be successfully, will be described Next module of breakpoint module is determined as the initial position that described program this time executes;If the implementing result of the breakpoint module For failure, then the breakpoint module is determined as the initial position that described program this time executes.
Optionally, further include record cleaning unit, be used for: periodically clearing up and described execute record.
According to another aspect of the invention, a kind of terminal that program executes is provided.
A kind of terminal that program executes, comprising: one or more processors;Storage device, for storing one or more Program, when one or more of programs are executed by one or more of processors, so that one or more of processors Realize the method that program provided by the embodiment of the present invention executes.
In accordance with a further aspect of the present invention, a kind of computer-readable medium is provided.
A kind of computer-readable medium is stored thereon with computer program, realizes this when described program is executed by processor The method that program provided by inventive embodiments executes.
One embodiment in foregoing invention have the following advantages that or the utility model has the advantages that
Record is executed according to program is corresponding, quickly determines breakpoint module, and then determines the starting that program this time executes Point position, to save the time of program execution, avoid program repeats the bring wasting of resources, overcomes artificial Operate that bring is not flexible and unstability disadvantage.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the key step schematic diagram for the method that program according to an embodiment of the present invention executes;
Fig. 2 is the flow chart for the method that program according to an embodiment of the present invention executes;
Fig. 3 is the main modular schematic diagram for the device that program according to an embodiment of the present invention executes;
Fig. 4 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 5 is adapted for the structural schematic diagram for the computer system for realizing the terminal of the embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the key step schematic diagram for the method that program according to an embodiment of the present invention executes.As shown in Figure 1, this hair The method that the program of bright embodiment executes mainly includes the following steps, namely S101 to step S103.
Step S101: the corresponding execution of the program is searched from existing execution record according to the execution record name of program Record.
According to an embodiment of the invention, executing record name may include program name and parameter.Also, execute record master It may include: program name, the parameter for executing input, module id, block code, module executes the time started, module is held The contents such as row end time and module implementing result.According to an embodiment of the invention, executing record can also include for example should The contents such as the corresponding object table of module.
Wherein, the execution record of program is to generate during program executes, and be saved, and forms a journey The memory file of program process.Program can generate during execution and execute record accordingly, each executes record text Part has a globally unique title, and title can be made of program name and parameter, also may include the contents such as execution date. Since execute record is to facilitate breakpoint when program execution failure is continuous to run there are purpose, the same execution record name pair The content answered can by multi-fold, and only retain it is the last execute record, without retain it is all execute record, so as to To save memory space, and it is more convenient, is quickly found the place of program last time execution failure.
" breakpoint is continuous to be run " addressed in the present invention, is derived from breakpoint transmission, and breakpoint transmission refers to when uploading downloading file, If encountering network failure, it can continue to upload the unfinished part of downloading since the part for having uploaded or having downloaded, must not From the beginning (first module of program) to start to upload downloading, be improved efficiency with saving the time.Similarly, continuous run of breakpoint just refers to journey Sequence continues to execute, it is not necessary to from the beginning (the of program after executing the failure of some functional module since the place that last time executes failure One module) start.
By taking the content genres of execution record as follows as an example:
breakpoint_test.py
2011-01-01#app
sq1_1#table_1#select*from test#2011-01-01 09:00#2011-01-01 09:01# successed
sq1_2#table_2#select*from table_1#2011-01-01 09:02#2011-01-01 09:05# failed
Wherein, the 1st row " breakpoint_test.py " indicates the program name of the program executed;2nd row " 2011-01- 01#app " indicates the parameter string inputted when this secondary program executes, is split when there is multiple parameters using " # ", " 2011-01- 01 " indicates received first parameter, and " app " indicates received second parameter, if there are also other parameters, it can successively class It pushes away;3rd row and the 4th row indicate the main part of execution record, and one separate functional blocks code of every a line record executes note Record is executed and is split between the multiple contents for including in record with " # ", and the content of segmentation is module id, the module respectively Corresponding object table, block code, module execute the time started, module executes end time, module implementing result (success/mistake Lose mark).
Step S102: the initial position for determining the program this time execution is recorded according to executing.
Wherein, if in step S101, if not finding the corresponding execution of the program from the existing execution record Record, then execute the program since first module of program, wherein the program in the embodiment of the present invention can be drawn according to function It is divided into a no less than module.
When being executed due to an independent program, functional module wherein included serially executes, so executing note The last item data record in record is to carry out the breakpoint continuous important reference run program next time.
Technical solution according to an embodiment of the present invention, step S102 determine rising for the program this time execution according to record is executed Beginning position can specifically include following step:
Step S1021: the breakpoint module that the program executes, breakpoint are determined according to the last item data record for executing record Module is the last one module executed the program last time;
Step S1022: the initial position that the program this time executes is determined according to the implementing result of breakpoint module.
Wherein, step S1022 determines the initial position of the program this time execution according to the implementing result of breakpoint module, specifically May include following two situation:
If the implementing result of breakpoint module is successfully, next module of breakpoint module to be determined as the program and is this time held Capable initial position;
If the implementing result of breakpoint module is failure, breakpoint module is determined as the start bit that the program this time executes It sets.
Program generates according to program name and the execution parameter of input before starting execution and executes record name, then root According to record name is executed, look for whether to execute record there are corresponding in the execution record generated.
Record is executed if there is no corresponding, illustrates that (Exactly-once is within one day with program on the day of the program Example) it is to execute for the first time, then program is normally executed since first module of program.
If have found it is corresponding execute record, illustrate to have executed on the day of the program, then execute record according to what is found In the last item data record find the program last time execution breakpoint module, wherein breakpoint module be program last time execute The last one module.Then, determine what program this time executed according to the module implementing result in the last item data record Initial position.Wherein, text information matching is carried out by the module implementing result to breakpoint module, whether to obtain breakpoint module It runs succeeded.If breakpoint module has run succeeded, program is executed since next module of breakpoint module;If breakpoint module Failure is executed, then executes program since breakpoint module.Record automatic positioning program, which is executed, by dependence above-mentioned executes starting Whether the mode of point can quickly judge to run under the same terms on the day of the program and which the breakpoint of last time operation is in In, so as to avoid the waste for running time and resource again caused by by way of artificial annotation program.
Step S103: executing the program and generated since the initial position and execute record, and generation is executed record It is updated to that the program is corresponding to execute record.
Due to execute record to be that breakpoint when program being facilitated to execute failure is continuous there are purpose run, can be by will be newborn At execution record be updated to the corresponding mode for executing record of the program, only retain it is the last executes record, so as to this Program next time can quickly determine initial point position when executing.
In addition, the technical solution of embodiment according to the present invention, it is also necessary to periodically clear up and described execute record.Due to general In the case of, program can only execute once within some date, therefore settable daily cleaning once executes record.Cleaning executes note The purpose of record is to will cause mistake when program re-executes after avoiding more days.Record is executed to be mainly used for executing failure in program Afterwards, efficiency can be improved when re-executing, save unnecessary repetition step, therefore, program should the same day solution when executing failure Certainly problem, otherwise just will affect second day normal operation, so the execution generated on the day of 24 daily point deletions can be set Record.
Such as: assuming that certain program existing record time for executing record is the year two thousand twenty January 1, if timing is not cleared up Execute record, then when the execution logic that for example the year two thousand twenty had adjusted the program on March 1 when the later period needs to re-execute, system meeting It is mistaken for program to execute failure and need to carry out the continuous race of breakpoint, therefore can be looked into from the execution record that the year two thousand twenty January 1 saves Breakpoint module is looked for, just will appear the case where reporting an error at this time.
Meanwhile timing cleaning execution record can also reduce the space that system storage executes record, and quickening executes note The search speed of record saves program execution time.
According to procedure described above S101 to step S103, may be implemented on the day of after program execution failure, efficient, intelligence Energy ground carries out the continuous race of breakpoint of program, and can save system resource.
Fig. 2 is the flow chart for the method that program according to an embodiment of the present invention executes.As shown in Fig. 2, program starts to execute Before, record name (step S201) is executed by generating the execution parameter splicing of program name and input, then according to generation Execution record name from existing execution record in search whether to execute record (step S202) there are corresponding.
Record is executed if there is corresponding, then obtains the last item data record for executing record, and obtain the program The last one module that last time executes, to obtain the breakpoint module (step S203) of program last time execution.Then, according to most The implementing result of the breakpoint module saved in latter data record judges whether breakpoint module runs succeeded (step S204).Such as Resolute point module runs succeeded, then executes program (step S205) since next module of breakpoint module;Otherwise, from breakpoint Module starts to execute program (step S206).It is corresponding that the execution record generated when finally, the program being executed covers the program It is existing to execute record, so that update the program executes record (step S207).
Record is executed if there is no corresponding, then is held since first module of program according to the execution parameter of input Line program (step S208), and save generation executes record (step S209).
By above-mentioned step S201 to step S209, record can be executed according to program is corresponding, quickly determine breakpoint Module, and then determine that the initial position that program this time executes avoids the repetition of program to save the time of program execution The bring wasting of resources is executed, overcomes that manual operation bring is not flexible and unstability disadvantage.
Fig. 3 is the main modular schematic diagram for the device that program according to an embodiment of the present invention executes.As shown in figure 3, this hair The device 300 that the program of bright embodiment executes mainly includes that record search unit 301, position determination unit 302 and record generate Unit 303.
Record search unit 301 is used to search the journey from existing execution record according to the execution record name of program Sequence is corresponding to execute record;
Position determination unit 302 is used for according to the initial position for executing and recording and determining that described program this time executes;
Record generation unit 303, which is used to execute described program since the initial position and generate, executes record, then The execution of generation record is updated to described program is corresponding to execute record.
Wherein, executing record name may include program name and parameter.
According to an embodiment of the invention, executing record mainly may include: program name, the parameter for executing input, module Mark, block code, module execute the time started, module executes end time and module implementing result.
Technical solution according to an embodiment of the present invention, the device 300 that program executes can also include determining whether execution unit (figure In be not shown), if for not finding that the program is corresponding to execute record from existing execution record, from the program First module starts to execute the program, and program is by being no less than a module composition.
According to an embodiment of the invention, position determination unit 302 can be also used for: according to the last item number for executing record According to the breakpoint module for determining that the program executes is recorded, breakpoint module is the last one module executed the program last time;According to disconnected The implementing result of point module determines the initial position that the program this time executes.
Wherein, position determination unit 302 can be also used for: if the implementing result of breakpoint module is successfully, by breakpoint mould Next module of block is determined as the initial position that sequence this time executes;If the implementing result of breakpoint module is failure, by breakpoint Module is determined as the initial position that program this time executes.
In addition, the device 300 that the program of the embodiment of the present invention executes can also include that record cleaning unit (does not show in figure Out), be used for: timing cleaning executes record.
Fig. 4 is shown can be using the exemplary of the device that the method or program that the program of the embodiment of the present invention executes executes System architecture 400.
As shown in figure 4, system architecture 400 may include terminal device 401,402,403, network 404 and server 405. Network 404 between terminal device 401,402,403 and server 405 to provide the medium of communication link.Network 404 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 401,402,403 and be interacted by network 404 with server 405, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 401,402,403 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 401,402,403 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 405 can be to provide the server of various services, such as utilize terminal device 401,402,403 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath -- merely illustrative) feed back to terminal device.
It should be noted that the method that program provided by the embodiment of the present invention executes generally is executed by server 405, phase Ying Di, the device that program executes are generally positioned in server 405.
It should be understood that the number of terminal device, network and server in Fig. 4 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 5, it illustrates the knots of the computer system 500 for the terminal for being suitable for being used to realize the embodiment of the present invention Structure schematic diagram.Terminal shown in Fig. 5 is only an example, should not function to the embodiment of the present invention and use scope bring and appoint What is limited.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various movements appropriate and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data. CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always Line 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 509, and/or from can Medium 511 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 501, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in unit involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include record search unit, position determination unit and record generation unit.Wherein, the title of these units is not under certain conditions The restriction to the unit itself is constituted, for example, record search unit is also described as " for executing record according to program Title searches the corresponding unit for executing record of described program from existing execute in record ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes The equipment includes: that described program is corresponding executes note for lookup from existing executions record according to the execution record name of program Record;According to the initial position for executing and recording and determining that described program this time executes;Since the initial position described in execution Program simultaneously generates and executes record, then the execution record of the generation is updated to described program is corresponding to execute record.
Technical solution according to an embodiment of the present invention executes record according to program is corresponding, quickly determines breakpoint module, And then determine the initial point position that program this time executes, to save the time of program execution, the repetition for avoiding program is held The row bring wasting of resources, overcomes that manual operation bring is not flexible and unstability disadvantage.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (16)

1. a kind of method that program executes characterized by comprising
Search that described program is corresponding executes record from existing execution record according to the execution record name of program;
According to the initial position for executing and recording and determining that described program this time executes;
Described program is executed since the initial position and is generated and executes record, and then the execution of the generation is recorded and is updated Record is executed for described program is corresponding.
2. the method according to claim 1, wherein the execution record name includes program name and parameter.
3. the method according to claim 1, wherein the record that executes includes: program name, executes input Parameter, module id, block code, module execute the time started, module executes end time and module implementing result.
4. the method according to claim 1, wherein further include:
If do not found from the existing execution record, described program is corresponding to execute record, from the of described program One module starts to execute described program, and described program is by being no less than a module composition.
5. determining that described program this time executes the method according to claim 1, wherein recording according to the execution Initial position the step of include:
The breakpoint module that described program executes, the breakpoint module are determined according to the last item data record for executing record The last one module executed for described program last time;
The initial position that described program this time executes is determined according to the implementing result of the breakpoint module.
6. according to the method described in claim 5, it is characterized in that, determining the journey according to the implementing result of the breakpoint module Sequence this time execute initial position the step of include:
If the implementing result of the breakpoint module is successfully, next module of the breakpoint module to be determined as described program The initial position this time executed;
If the implementing result of the breakpoint module is failure, the breakpoint module is determined as that described program this time executes Beginning position.
7. the method according to claim 1, wherein further include:
Timing, which is cleared up, described executes record.
8. the device that a kind of program executes characterized by comprising
It is corresponding to search described program from existing execution record for the execution record name according to program for record search unit Execute record;
Position determination unit, for executing the initial position for recording and determining that described program this time executes according to described;
Record generation unit executes record for executing described program since the initial position and generating, then will be described The execution record of generation is updated to that described program is corresponding to execute record.
9. device according to claim 8, which is characterized in that the execution record name includes program name and parameter.
10. device according to claim 8, which is characterized in that the execution record includes: program name, executes input Parameter, module id, block code, module executes the time started, module executes end time and module implementing result.
11. device according to claim 8, which is characterized in that further include Predicated execution unit, be used for:
If do not found from the existing execution record, described program is corresponding to execute record, from the of described program One module starts to execute described program, and described program is by being no less than a module composition.
12. device according to claim 8, which is characterized in that the position determination unit is also used to:
The breakpoint module that described program executes, the breakpoint module are determined according to the last item data record for executing record The last one module executed for described program last time;
The initial position that described program this time executes is determined according to the implementing result of the breakpoint module.
13. device according to claim 12, which is characterized in that the position determination unit is also used to:
If the implementing result of the breakpoint module is successfully, next module of the breakpoint module to be determined as described program The initial position this time executed;
If the implementing result of the breakpoint module is failure, the breakpoint module is determined as that described program this time executes Beginning position.
14. device according to claim 8, which is characterized in that further include record cleaning unit, be used for:
Timing, which is cleared up, described executes record.
15. the terminal that a kind of program executes characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-7.
16. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in claim 1-7 is realized when row.
CN201710377379.1A 2017-05-25 2017-05-25 A kind of method and apparatus that program executes Pending CN108959063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710377379.1A CN108959063A (en) 2017-05-25 2017-05-25 A kind of method and apparatus that program executes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710377379.1A CN108959063A (en) 2017-05-25 2017-05-25 A kind of method and apparatus that program executes

Publications (1)

Publication Number Publication Date
CN108959063A true CN108959063A (en) 2018-12-07

Family

ID=64494487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710377379.1A Pending CN108959063A (en) 2017-05-25 2017-05-25 A kind of method and apparatus that program executes

Country Status (1)

Country Link
CN (1) CN108959063A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124465A (en) * 2019-11-28 2020-05-08 武汉虹信技术服务有限责任公司 Cross-network C/S program remote upgrading method and system
CN113450627A (en) * 2021-06-25 2021-09-28 上海商汤临港智能科技有限公司 Experiment project operation method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989225A (en) * 2009-07-29 2011-03-23 中兴通讯股份有限公司 Method and device for automated test based on breakpoint
CN102221995A (en) * 2011-05-19 2011-10-19 中国石油集团川庆钻探工程有限公司 Breakpoint recovery method for seismic data processing operation
CN102385536A (en) * 2010-08-27 2012-03-21 中兴通讯股份有限公司 Method and system for realization of parallel computing
CN102495906A (en) * 2011-12-23 2012-06-13 天津神舟通用数据技术有限公司 Incremental data migration method capable of realizing breakpoint transmission
EP2518627A2 (en) * 2011-04-25 2012-10-31 Hitachi, Ltd. Partial fault processing method in computer system
CN104462469A (en) * 2014-12-17 2015-03-25 小米科技有限责任公司 Updating method and updating device for website static files
CN106649000A (en) * 2017-01-03 2017-05-10 星环信息科技(上海)有限公司 Fault recovery method for real-time processing engine, and corresponding server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989225A (en) * 2009-07-29 2011-03-23 中兴通讯股份有限公司 Method and device for automated test based on breakpoint
CN102385536A (en) * 2010-08-27 2012-03-21 中兴通讯股份有限公司 Method and system for realization of parallel computing
EP2518627A2 (en) * 2011-04-25 2012-10-31 Hitachi, Ltd. Partial fault processing method in computer system
CN102221995A (en) * 2011-05-19 2011-10-19 中国石油集团川庆钻探工程有限公司 Breakpoint recovery method for seismic data processing operation
CN102495906A (en) * 2011-12-23 2012-06-13 天津神舟通用数据技术有限公司 Incremental data migration method capable of realizing breakpoint transmission
CN104462469A (en) * 2014-12-17 2015-03-25 小米科技有限责任公司 Updating method and updating device for website static files
CN106649000A (en) * 2017-01-03 2017-05-10 星环信息科技(上海)有限公司 Fault recovery method for real-time processing engine, and corresponding server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124465A (en) * 2019-11-28 2020-05-08 武汉虹信技术服务有限责任公司 Cross-network C/S program remote upgrading method and system
CN111124465B (en) * 2019-11-28 2023-06-20 武汉虹信技术服务有限责任公司 Cross-network C/S program remote upgrading method and system
CN113450627A (en) * 2021-06-25 2021-09-28 上海商汤临港智能科技有限公司 Experiment project operation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109871311B (en) Method and device for recommending test cases
CN110472207A (en) List generation method and device
CN112416425B (en) APP construction method and device, computer equipment and storage medium
CN110321544B (en) Method and device for generating information
CN110858172A (en) Automatic test code generation method and device
CN108121814B (en) Search result ranking model generation method and device
CN111104479A (en) Data labeling method and device
CN109241033A (en) The method and apparatus for creating real-time data warehouse
CN106919711A (en) The method and apparatus of the markup information based on artificial intelligence
CN110019437A (en) A kind of method and system exporting data
CN107609192A (en) The supplement searching method and device of a kind of search engine
CN112988583A (en) Method and device for testing syntax compatibility of database
CN110019539A (en) A kind of method and apparatus that the data of data warehouse are synchronous
CN110162448A (en) The method and apparatus of log collection
CN110688096A (en) Method, device, medium and electronic equipment for constructing application program containing plug-in
CN110019363A (en) A kind of method and apparatus verifying data
CN111611479A (en) Data processing method and related device for network resource recommendation
CN109992495A (en) The method and apparatus of interface testing
CN108959063A (en) A kind of method and apparatus that program executes
CN108845864A (en) A kind of JVM rubbish recovering method and device based on spring frame
CN104008116A (en) File synchronization method and electronic device
CN109725913A (en) The method and apparatus that data update
CN116450353A (en) Processor core matching method and device, electronic equipment and storage medium
CN110119279A (en) A kind of method and apparatus applied and its upgrade
CN110109912A (en) A kind of identifier generation method and device

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