CN113051041A - Method and device for batch script breakpoint continuous making, electronic equipment and storage medium - Google Patents

Method and device for batch script breakpoint continuous making, electronic equipment and storage medium Download PDF

Info

Publication number
CN113051041A
CN113051041A CN202110484121.8A CN202110484121A CN113051041A CN 113051041 A CN113051041 A CN 113051041A CN 202110484121 A CN202110484121 A CN 202110484121A CN 113051041 A CN113051041 A CN 113051041A
Authority
CN
China
Prior art keywords
batch
breakpoint
script
scripts
steps
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
CN202110484121.8A
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202110484121.8A priority Critical patent/CN113051041A/en
Publication of CN113051041A publication Critical patent/CN113051041A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
    • G06F9/45512Command shells
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method and a device for batch script breakpoint continuous making, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a batch script, and dividing the batch script into a plurality of steps; marking each step to obtain an identifier corresponding to each step; executing the batch scripts and monitoring the execution process of each script in the batch scripts; recording breakpoint information of the batch scripts; the breakpoint information of the batch scripts at least comprises names of all breakpoint scripts and identifications corresponding to the steps of executing errors in all the breakpoint scripts; the breakpoint script refers to a script in the batch script that fails to execute; searching each breakpoint script according to the breakpoint information of the batch scripts; matching the breakpoint scripts to the identifications in the breakpoint information of the batch scripts respectively; and jumping to each matched step, and executing each matched step.

Description

Method and device for batch script breakpoint continuous making, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of script batch execution technologies, and in particular, to a method and an apparatus for batch script breakpoint continuous execution, an electronic device, and a storage medium.
Background
The batch script can solve the processing of abnormal conditions in the online processing process, or relieve the online pressure and process some functions with high non-real-time requirements.
However, in the batch scripts, attention is mainly paid to the implementation of functions of the batch scripts, and an exception handling mechanism for exception is still deficient when the batch scripts run. Therefore, when the batch scripts run in error, development or maintenance personnel are required to check one by one to determine the error scripts and error positions, and the error positions cannot be directly and accurately positioned, so that the efficiency is very low.
In addition, when the batch script is re-run, the whole batch script is re-run, so that a large amount of resources of the system are re-occupied, and the pressure of the system is increased.
Disclosure of Invention
Based on the defects of the prior art, the application provides a method and a device for continuous making of batch script breakpoints, electronic equipment and a storage medium, so as to solve the problems that the prior art cannot accurately position the position where the batch script makes an error in execution, and the batch script is rerun to bring extra pressure to the system.
In order to achieve the above object, the present application provides the following technical solutions:
the application provides a method for batch script breakpoint continuous making in a first aspect, including:
acquiring a batch script, and dividing the batch script into a plurality of steps;
marking each step to obtain an identifier corresponding to each step;
executing the batch scripts and monitoring the execution process of each script in the batch scripts;
recording breakpoint information of the batch scripts; the breakpoint information of the batch scripts at least comprises names of all breakpoint scripts and identifications corresponding to the steps of executing errors in all the breakpoint scripts; the breakpoint script refers to a script in the batch script that fails to execute;
searching each breakpoint script according to the breakpoint information of the batch scripts;
matching the breakpoint scripts to the identifications in the breakpoint information of the batch scripts respectively;
and jumping to each matched step, and executing each matched step.
Optionally, in the method for breakpoint continuation of batch scripts, before finding each breakpoint script according to the breakpoint information of the batch scripts, the method further includes:
judging whether the current re-running condition of the batch scripts is met;
and if the current re-running condition of the batch scripts is judged to be met, executing the breakpoint scripts searched according to the breakpoint information of the batch scripts.
Optionally, in the method for breakpoint continuation of batch scripts, before the step of matching the breakpoint script in each breakpoint script with the identifier in the breakpoint information of the batch script, the method further includes:
and respectively cleaning up dirty data generated when the steps are executed previously aiming at the matched steps.
Optionally, in the above method for batch script breakpoint resumption, the cleaning, for each matched step, dirty data generated when the step is executed previously includes:
respectively judging whether the steps belong to a first type step or a second type step aiming at each matched step; wherein, the first step refers to the step of analyzing data into a library; the second class step refers to a step of text generation class;
and if the step is judged to belong to the first class step or the second class step, cleaning up dirty data generated when the step is executed previously aiming at the step.
This application second aspect provides a device that batch script breakpoint continued to be done, includes:
the device comprises a dividing unit, a processing unit and a processing unit, wherein the dividing unit is used for acquiring a batch script and dividing the batch script into a plurality of steps;
the marking unit is used for marking each step to obtain an identifier corresponding to each step;
the monitoring unit is used for executing the batch scripts and monitoring the execution process of each script in the batch scripts;
the recording unit is used for recording breakpoint information of the batch scripts; the breakpoint information of the batch scripts at least comprises names of all breakpoint scripts and identifications corresponding to the steps of executing errors in all the breakpoint scripts; the breakpoint script refers to a script in the batch script that fails to execute;
the searching unit is used for searching each breakpoint script according to the breakpoint information of the batch scripts;
a matching unit, configured to match a step corresponding to the identifier in the breakpoint information of the batch scripts from each breakpoint script;
and the skipping unit is used for skipping to each matched step and executing each matched step.
Optionally, in the apparatus for batch script breakpoint continuation, the apparatus further includes:
the first judging unit is used for judging whether the rerun condition of the batch scripts is met currently;
if the first judging unit judges that the rerun condition of the batch scripts is currently met, the searching unit executes the breakpoint scripts searched according to the breakpoint information of the batch scripts.
Optionally, in the apparatus for batch script breakpoint continuation, the apparatus further includes:
and the cleaning unit is used for cleaning the dirty data generated when the steps are executed previously respectively aiming at the matched steps.
Optionally, in the apparatus for batch script breakpoint continuation, the cleaning unit includes:
a second judging unit, configured to judge whether the step belongs to the first class step or the second class step for each matched step; wherein, the first step refers to the step of analyzing data into a library; the second class step refers to a step of text generation class;
a cleaning subunit, configured to, when the second determining unit determines that the step belongs to the first-class step or the second-class step, clean, for the step, dirty data generated when the step is executed previously.
A third aspect of the present application provides an electronic device comprising:
a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to execute the program, and when the program is executed, the processor is specifically configured to implement the method for batch script breakpoint continuation as described in any one of the above.
A fourth aspect of the present application provides a computer storage medium for storing a computer program, wherein the computer program is configured to implement the method for batch script breakpoint resumption as any one of the above.
According to the method for continuous making of the breakpoints of the batch scripts, the batch scripts are obtained and divided into a plurality of steps, and then marking is carried out on each step to obtain the identification corresponding to each step. And executing the batch scripts and monitoring the execution process of each script in the batch scripts. And recording breakpoint information of the breakpoint script which fails to be executed in the batch scripts, and realizing accurate recording of execution errors. The breakpoint information of the batch script at least comprises the name of each breakpoint script and an identification breakpoint script corresponding to the step of executing the error in each breakpoint script, wherein the identification breakpoint script refers to the script which fails to be executed in the batch script. Therefore, when the batch scripts are re-run, each breakpoint script is searched according to the breakpoint information of the batch scripts, the steps corresponding to the identifiers in the breakpoint information of the batch scripts are matched from the breakpoint scripts respectively, the steps are skipped to and executed in the matched steps, and the matched steps are executed, so that breakpoint continuous operation of the batch scripts is realized, the batch scripts do not need to be re-executed again, and the pressure on the system is effectively reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for batch script breakpoint continuous processing according to an embodiment of the present application;
FIG. 2 is a flowchart of another method for batch script breakpoint resumption according to another embodiment of the present application;
FIG. 3 is a flowchart of a method for cleaning dirty data according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus for batch script breakpoint continuation according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a cleaning unit according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a cleaning unit according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In this application, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a method for batch script breakpoint continuous making, which specifically includes the following steps as shown in fig. 1:
s101, acquiring a batch script, and dividing the batch script into a plurality of steps.
First, it should be noted that the breakpoint of the batch script is continued, which means that the batch script is executed again from the breakpoint of the execution process when the process is executed in the batch script and the batch script is re-executed.
The batch script comprises a plurality of scripts.
The batch script is divided into a plurality of steps, and one script may be divided into a plurality of steps for each script in the batch script. Of course, a script may also contain one step, or multiple steps that are interdependent, combined into one step.
And S102, marking each step to obtain an identifier corresponding to each step.
And the identifier corresponding to each step is a unique identifier. Specifically, each step is marked by the identifier corresponding to each step so as to identify and distinguish each step, and when an error occurs in the step, the identifier corresponding to the step is recorded so that the error step can be found finally when the batch script is executed again in the following.
S103, executing the batch scripts and monitoring the executing process of each script in the batch scripts.
It should be noted that marking is not required to be performed before the batch script every time, and the batch script is divided into a plurality of steps and marked on each step only when one batch script is executed for the first time, so that the workload of the system is reduced. Of course, since the script is continuously updated, each time the batch script is executed, step S101 and step S102 may be required to be executed for the batch script.
It should be further noted that the batch script included in the batch script in the embodiments of the present application may be regarded as a script including a plurality of parts, each part includes at least one script, and the scripts of one part include interrelationships, and each step that needs to be sequentially executed in the execution process, that is, the execution of the next step needs to depend on the previous step. Therefore, for a part of scripts, when one script fails to execute, other subsequent steps in the part cannot be executed continuously. The scripts of different parts are independent from each other and do not influence each other in the execution process.
Of course, the batch script may be a script in which all scripts are related to each other, that is, the batch script only includes one partial script, and if one script fails to be executed, the batch script cannot be executed continuously. Or, each script in the batch script is independent.
In the batch script execution process, the execution process of each script in the batch script is monitored, so that when the script execution failure is monitored, step S104 is executed for the script with the execution failure.
S104, recording breakpoint information of the batch scripts; the breakpoint information of the batch script at least comprises the name of each breakpoint script and the identifier corresponding to the step of executing the error in each breakpoint script.
Wherein, the breakpoint script refers to a script that fails to execute in the batch script. Specifically, when the breakpoint script fails to be executed, the name of the breakpoint script and the identifier corresponding to the step in which the breakpoint script is executed with an error are recorded. And storing the recorded breakpoint information of the batch scripts in a database.
Optionally, in addition to recording the name of the breakpoint script and the identifier corresponding to the step of executing the error in the breakpoint script, the start time and the end time of executing the script may be recorded, so that it can be determined in what time the executed script has the error according to the execution time, and the breakpoint script can be conveniently and accurately found in the following. Of course, other information of the breakpoint script may be further recorded.
Specifically, when the batch script needs to be re-executed, step S105 may be executed according to the recorded breakpoint information of the batch script.
Optionally, in another embodiment of the present application, after performing step S104 and before performing step S105, further performing: and judging whether the current re-running condition of the batch scripts is met.
It should be noted that the batch script needs to be rerun to satisfy a plurality of conditions, so that a batch script rerun condition can be configured in advance, a script execution failure occurs in the execution process of the batch script, and after the execution of the batch script is stopped, whether the rerun condition of the matching script is satisfied at present is judged in real time. If the re-running condition of the batch script is currently satisfied, step S105 is executed.
S105, searching each breakpoint script according to the breakpoint information of the batch scripts.
Specifically, according to each script name in the breakpoint information of the batch scripts, the corresponding breakpoint script is searched from the database.
And S106, matching the breakpoint scripts to obtain the corresponding identifications in the breakpoint information of the batch scripts.
Each breakpoint script includes a step of executing an error, that is, a step corresponding to an identifier in the breakpoint information. Specifically, for each breakpoint script, the identifier corresponding to each step in the breakpoint script is matched with the identifier in the breakpoint information of the batch scripts, so that the step of matching the identifiers is found out.
S107, jumping to each matched step, and executing each matched step.
Specifically, the steps are respectively skipped to and executed, so that the breakpoint continuous operation of the batch scripts is realized. It should be noted that, if there is a correlation between the matched steps and the steps that need to be executed in sequence, after jumping to the step and executing the step, the steps that are associated with the matched steps are automatically executed in sequence.
According to the method for continuous making of the breakpoints of the batch scripts, the batch scripts are obtained and divided into a plurality of steps, and then marking is carried out on each step to obtain the identification corresponding to each step. And executing the batch scripts and monitoring the execution process of each script in the batch scripts. And recording breakpoint information of the breakpoint script which fails to be executed in the batch scripts, and realizing accurate recording of execution errors. The breakpoint information of the batch script at least comprises the name of each breakpoint script and an identification breakpoint script corresponding to the step of executing the error in each breakpoint script, wherein the identification breakpoint script refers to the script which fails to be executed in the batch script. Therefore, when the batch scripts are re-run, each breakpoint script is searched according to the breakpoint information of the batch scripts, the steps corresponding to the identifiers in the breakpoint information of the batch scripts are matched from the breakpoint scripts respectively, the steps are skipped to and executed in the matched steps, and the matched steps are executed, so that breakpoint continuous operation of the batch scripts is realized, the batch scripts do not need to be re-executed again, and the pressure on the system is effectively reduced.
Another embodiment of the present application provides another method for batch script breakpoint resumption, which, as shown in fig. 2, specifically includes the following steps:
s201, obtaining a batch script, and dividing the batch script into a plurality of steps.
It should be noted that, the specific implementation process of step S201 may refer to the implementation manner of step S101 in the foregoing method embodiment, and details are not described here.
S202, marking each step to obtain an identifier corresponding to each step.
It should be noted that, the specific implementation process of step S202 may refer to the implementation manner of step S102 in the foregoing method embodiment, and details are not described here.
S203, executing the batch scripts, and judging whether the execution failure occurs in the execution process of the scripts in the batch scripts.
Specifically, the batch scripts are executed, and the execution process of each script in the batch scripts is monitored in real time, so that whether too small execution failure of the script in the execution process exists in the batch scripts can be judged.
If it is determined that the script in the batch script fails to be executed in the execution process, step S204 is executed.
S204, recording breakpoint information of the batch scripts; the breakpoint information of the batch script at least comprises the name of each breakpoint script and the identifier corresponding to the step of executing the error in each breakpoint script.
Wherein, the breakpoint script refers to a script that fails to execute in the batch script. Specifically, when an error occurs in the script execution, the name of the breakpoint script with the error and the identifier corresponding to the error step in the breakpoint script are recorded and stored.
S205, when the current re-running condition of the batch scripts is met, each breakpoint script is found according to the breakpoint information of the batch scripts.
Specifically, when the rerun condition of the batch script is currently satisfied, the breakpoint script of each name recorded in the breakpoint information of the batch script is found from the scripts stored in the database, and then step S206 is executed.
S206, matching the breakpoint scripts to correspond to the marks in the breakpoint information of the batch scripts.
It should be noted that, the specific implementation process of step S206 may refer to the implementation manner of step S106 in the foregoing method embodiment, and details are not described here.
And S207, cleaning up dirty data generated in the previous step aiming at each matched step.
It should be noted that Dirty data (Dirty Read) in the field of the present application means that data in the source system is not in a given range or has no meaning for actual services, or the data format is illegal, and there is irregular coding and ambiguous service logic in the source system. Since the script and the step may generate data in the execution process, the data may be generated, and since the step has an execution error, the process of processing the data may not be completely executed, so that a large amount of dirty data may exist in the generated data, in this embodiment of the present application, before the step having the error is executed again, the dirty data generated in the previous execution step is cleaned for each matched step, and step S208 is executed after the dirty data is cleaned.
Optionally, in another embodiment of the present application, a specific implementation manner of step S208, as shown in fig. 3, includes the following steps:
s301, respectively aiming at each matched step, judging whether the step belongs to a first type step or a second type step; the first category of steps refers to the steps of parsing data into a library class, and the second category of steps refers to the steps of generating a text class.
The step of parsing data into a library means that, when the step is executed, the data is parsed and an interface obtained by parsing is written into a database. The step of generating the text type refers to a step of generating a text in the execution process. If the execution process of the two types of steps has an execution error, a large amount of dirty data remains, so that the two types of steps cannot be executed again from the exact step, and therefore, the two types of steps need to be subjected to data cleaning.
If it is determined that a step belongs to the first class step or the second class step, step S302 is executed for the step. If it is determined that a step does not belong to the first class step or the second class step, step S208 may be directly performed for the step.
S302, cleaning up dirty data generated when the step is executed previously.
Wherein, the previous execution of the step means that the last execution of the step has an error.
S208, jumping to each matched step, and executing each matched step.
Specifically, when it is determined that a step does not belong to the first class step or the second class step, the step is directly skipped to and executed. And when a step is judged to belong to the first class step or the second class step, dirty data generated when the step is executed in the past needs to be cleaned, and the step is skipped to and executed.
Another embodiment of the present application provides an apparatus for batch script breakpoint continuous processing, as shown in fig. 4, including the following units:
the dividing unit 401 is configured to obtain a batch script and divide the batch script into multiple steps.
And the marking unit 402 is configured to mark each step to obtain an identifier corresponding to each step.
And a monitoring unit 403, configured to execute the batch scripts and monitor execution processes of each script in the batch scripts.
And the recording unit is used for recording the breakpoint information 404 of the batch script.
The breakpoint information of the batch script at least comprises the name of each breakpoint script and the identifier corresponding to the step of executing the error in each breakpoint script. Breakpoint scripts refer to scripts that fail execution in a batch script.
A searching unit 404, configured to search each breakpoint script according to the breakpoint information of the batch scripts;
a matching unit 405, configured to match a step corresponding to the identifier in the breakpoint information of the batch script from each breakpoint script.
And a skipping unit 406, configured to skip to the matched steps and execute the matched steps.
Optionally, in an apparatus for batch script breakpoint continuation provided in another embodiment of the present application, the apparatus may further include the following unit:
and the first judging unit is used for judging whether the rerun condition of the batch script is met currently.
If the first judging unit judges that the current re-running condition of the batch scripts is met, the searching unit searches each breakpoint script according to the breakpoint information of the batch scripts.
Optionally, in an apparatus for batch script breakpoint continuation provided in another embodiment of the present application, the apparatus may further include the following unit:
and the cleaning unit is used for cleaning the dirty data generated when the steps are executed previously respectively aiming at the matched steps.
Optionally, in an apparatus for batch script breakpoint continuation provided in another embodiment of the present application, a cleaning unit, as shown in fig. 5, includes the following units:
a second judging unit 501, configured to judge, for each matched step, whether the step belongs to the first-class step or the second-class step.
Wherein, the first step refers to the step of analyzing data into a library; the second class of steps refers to the steps of the text generation class.
A cleaning subunit 502, configured to, when the second determining unit 501 determines that the step belongs to the first-class step or the second-class step, clean, with respect to the step, dirty data generated when the step was executed previously.
It should be noted that, for the specific working processes of each unit provided in the foregoing embodiments of the present application, corresponding steps in the foregoing method embodiments may be referred to, and are not described herein again.
The application provides a device that batch script breakpoint continues to do obtains batch script through dividing the unit to divide batch script into a plurality of steps, then mark the mark unit and beat the mark to each step, obtain the sign that every step corresponds. The monitoring unit executes the batch scripts and monitors the execution process of each script in the batch scripts. And the recording unit records breakpoint information of breakpoint scripts which fail to execute in the batch of scripts, so that accurate recording of execution errors is realized. The breakpoint information of the batch script at least comprises the name of each breakpoint script and the marked breakpoint script corresponding to the step of executing the error in each breakpoint script, and the script which fails to be executed in the batch script is referred to. Therefore, when the batch scripts are re-run, the searching unit can search each breakpoint script according to the breakpoint information of the batch scripts, the matching unit matches the steps corresponding to the identifiers in the breakpoint information of the batch scripts from the breakpoint scripts respectively, and finally the skipping unit skips to the matched steps and executes the matched steps, so that breakpoint re-running of the batch scripts is realized, the batch scripts do not need to be re-executed again, and pressure on the system is effectively reduced.
Another embodiment of the present application provides an electronic device, as shown in fig. 6, including:
a memory 601 and a processor 602.
The memory 601 is used for storing programs.
The processor 602 is configured to execute the program stored in the memory 601, and when the program is executed by the processor 602, the method for batch script breakpoint resumption provided by any of the above embodiments is specifically implemented.
It should be noted that, for a specific implementation process, reference may be made to the specific implementation process of each step in the method for batch script breakpoint resumption provided in the foregoing method embodiment, and details are not described here again.
Another embodiment of the present application provides a computer storage medium for storing a computer program, which when executed, is used to implement the method for batch script breakpoint resumption provided in any one of the above embodiments.
It should be noted that, for a specific implementation process, reference may be made to the specific implementation process of each step in the method for batch script breakpoint resumption provided in the foregoing method embodiment, and details are not described here again.
Computer storage media, including permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transmyedia) such as modulated data signals and carrier waves.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for batch script breakpoint continuous operation is characterized by comprising the following steps:
acquiring a batch script, and dividing the batch script into a plurality of steps;
marking each step to obtain an identifier corresponding to each step;
executing the batch scripts and monitoring the execution process of each script in the batch scripts;
recording breakpoint information of the batch scripts; the breakpoint information of the batch scripts at least comprises names of all breakpoint scripts and identifications corresponding to the steps of executing errors in all the breakpoint scripts; the breakpoint script refers to a script in the batch script that fails to execute;
searching each breakpoint script according to the breakpoint information of the batch scripts;
matching the breakpoint scripts to the identifications in the breakpoint information of the batch scripts respectively;
and jumping to each matched step, and executing each matched step.
2. The method according to claim 1, wherein before each breakpoint script is found according to the breakpoint information of the batch script, the method further comprises:
judging whether the current re-running condition of the batch scripts is met;
and if the current re-running condition of the batch scripts is judged to be met, executing the breakpoint scripts searched according to the breakpoint information of the batch scripts.
3. The method according to claim 1, wherein before the step of matching out the breakpoint script from each of the breakpoint scripts respectively corresponding to the identifier in the breakpoint information of the batch script, the method further comprises:
and respectively cleaning up dirty data generated when the steps are executed previously aiming at the matched steps.
4. The method according to claim 3, wherein said cleaning up dirty data generated when said steps are performed previously, respectively for each of said matched steps, comprises:
respectively judging whether the steps belong to a first type step or a second type step aiming at each matched step; wherein, the first step refers to the step of analyzing data into a library; the second class step refers to a step of text generation class;
and if the step is judged to belong to the first class step or the second class step, cleaning up dirty data generated when the step is executed previously aiming at the step.
5. A device for batch script breakpoint continuous operation is characterized by comprising:
the device comprises a dividing unit, a processing unit and a processing unit, wherein the dividing unit is used for acquiring a batch script and dividing the batch script into a plurality of steps;
the marking unit is used for marking each step to obtain an identifier corresponding to each step;
the monitoring unit is used for executing the batch scripts and monitoring the execution process of each script in the batch scripts;
the recording unit is used for recording breakpoint information of the batch scripts; the breakpoint information of the batch scripts at least comprises names of all breakpoint scripts and identifications corresponding to the steps of executing errors in all the breakpoint scripts; the breakpoint script refers to a script in the batch script that fails to execute;
the searching unit is used for searching each breakpoint script according to the breakpoint information of the batch scripts;
a matching unit, configured to match a step corresponding to the identifier in the breakpoint information of the batch scripts from each breakpoint script;
and the skipping unit is used for skipping to each matched step and executing each matched step.
6. The apparatus of claim 5, further comprising:
the first judging unit is used for judging whether the rerun condition of the batch scripts is met currently;
if the first judging unit judges that the rerun condition of the batch scripts is currently met, the searching unit executes the breakpoint scripts searched according to the breakpoint information of the batch scripts.
7. The method of claim 1, further comprising:
and the cleaning unit is used for cleaning the dirty data generated when the steps are executed previously respectively aiming at the matched steps.
8. The apparatus of claim 7, wherein the cleaning unit comprises:
a second judging unit, configured to judge whether the step belongs to the first class step or the second class step for each matched step; wherein, the first step refers to the step of analyzing data into a library; the second class step refers to a step of text generation class;
a cleaning subunit, configured to, when the second determining unit determines that the step belongs to the first-class step or the second-class step, clean, for the step, dirty data generated when the step is executed previously.
9. An electronic device, comprising:
a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to execute the program, and when the program is executed, the program is specifically configured to implement the method for batch script breakpoint resuming according to any one of claims 1 to 4.
10. A computer storage medium storing a computer program which, when executed, implements a method of batch scripting breakpoint resumption as claimed in any one of claims 1 to 4.
CN202110484121.8A 2021-04-30 2021-04-30 Method and device for batch script breakpoint continuous making, electronic equipment and storage medium Pending CN113051041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110484121.8A CN113051041A (en) 2021-04-30 2021-04-30 Method and device for batch script breakpoint continuous making, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110484121.8A CN113051041A (en) 2021-04-30 2021-04-30 Method and device for batch script breakpoint continuous making, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113051041A true CN113051041A (en) 2021-06-29

Family

ID=76517992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110484121.8A Pending CN113051041A (en) 2021-04-30 2021-04-30 Method and device for batch script breakpoint continuous making, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113051041A (en)

Citations (4)

* 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
CN104317960A (en) * 2014-11-14 2015-01-28 中国建设银行股份有限公司 Method and device for processing batch job
CN106648842A (en) * 2016-12-27 2017-05-10 中国建设银行股份有限公司 Method and device for continuous running of batch jobs
CN107463500A (en) * 2017-08-09 2017-12-12 网易(杭州)网络有限公司 Adjustment method, medium, system and the computing device of test script

Patent Citations (4)

* 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
CN104317960A (en) * 2014-11-14 2015-01-28 中国建设银行股份有限公司 Method and device for processing batch job
CN106648842A (en) * 2016-12-27 2017-05-10 中国建设银行股份有限公司 Method and device for continuous running of batch jobs
CN107463500A (en) * 2017-08-09 2017-12-12 网易(杭州)网络有限公司 Adjustment method, medium, system and the computing device of test script

Similar Documents

Publication Publication Date Title
CN106656536B (en) Method and equipment for processing service calling information
US9442821B2 (en) System and method to classify automated code inspection services defect output for defect analysis
US8688625B1 (en) Extract, transform, and load application complexity management framework
US20150067410A1 (en) Hardware failure prediction system
AU2019275633B2 (en) System and method of automated fault correction in a network environment
WO2017107808A1 (en) Method and system for locating obfuscated scripting language
JP2015011372A (en) Debug support system, method, program, and recording medium
CN110716539A (en) Fault diagnosis and analysis method and device
CN112328631A (en) Production fault analysis method and device, electronic equipment and storage medium
CN107783879B (en) Method and equipment for analyzing workflow execution path
CN108665237A (en) Method for establishing automatic inspection model and positioning abnormity based on business system
CN112231403A (en) Consistency checking method, device, equipment and storage medium for data synchronization
CN115509858A (en) Business system monitoring method and device, storage medium and computer equipment
CN111143103A (en) Incidence relation determining method, device, equipment and readable storage medium
CN111427736B (en) Log monitoring method, device, equipment and computer readable storage medium
CN110147313B (en) Log output method and device
CN114500249B (en) Root cause positioning method and device
CN113051041A (en) Method and device for batch script breakpoint continuous making, electronic equipment and storage medium
CN115981901A (en) Fault positioning method, equipment and medium for automatic test of switch
CN111753511B (en) Method and system for fusing event information of different industrial assets
CN113468029A (en) Log management method and device, electronic equipment and readable storage medium
Zhao et al. How to Manage Change-Induced Incidents? Lessons from the Study of Incident Life Cycle
CN112612882B (en) Review report generation method, device, equipment and storage medium
CN109885505A (en) A kind of method of fault location, system and associated component
CN110647473A (en) Anti-interference method and device for automatic regression test, computer equipment and storage medium

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