CN112433876A - Method and device for processing job error information and storage medium - Google Patents

Method and device for processing job error information and storage medium Download PDF

Info

Publication number
CN112433876A
CN112433876A CN202011324666.4A CN202011324666A CN112433876A CN 112433876 A CN112433876 A CN 112433876A CN 202011324666 A CN202011324666 A CN 202011324666A CN 112433876 A CN112433876 A CN 112433876A
Authority
CN
China
Prior art keywords
target
job
information
error
script
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
CN202011324666.4A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202011324666.4A priority Critical patent/CN112433876A/en
Publication of CN112433876A publication Critical patent/CN112433876A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides a job error information processing method, apparatus and storage medium, wherein the method comprises: acquiring target operation identification information of the operation error information; determining a target operation task item corresponding to the operation error information according to the target operation identification information; acquiring target annotation information corresponding to the target job task item, wherein the target annotation information is pre-embedded information for annotating a target job task script of the target job task item; and generating an error processing dynamic execution script according to the target annotation information so as to call a corresponding interface program to process a job error event corresponding to the job error information according to the error processing dynamic execution script. The processing efficiency of the operation error information can be effectively improved, and the user experience is improved.

Description

Method and device for processing job error information and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing job error information, and a storage medium.
Background
Currently, in some operating systems, such as an operating system of a large host platform, job tasks exist in the form of script instances, and are scheduled and executed by the system. In the scheduling process of the job script, when an exceptional error event occurs, for example, an unexpected situation such as a script syntax error, a script reference data file error, and the like occurs, the system cannot identify the cause of the error event and output related parameters, and a job scheduling tool in the system cannot sense a job task item in which the exceptional error event occurs. Meanwhile, the system cannot acquire internal information of corresponding job task items, and further cannot automatically record related information and automatically process the error event.
Therefore, it is desirable to provide a job error information processing method to solve the above problems and improve the user experience.
Disclosure of Invention
The disclosure provides a method and a device for processing job error information and a storage medium, which can automatically identify and position job task items corresponding to the job error information so as to allow a system to perform subsequent recording and processing and improve user experience.
In one aspect, the present disclosure provides a method for processing job error information, the method including:
acquiring target operation identification information of the operation error information;
determining a target operation task item corresponding to the operation error information according to the target operation identification information;
acquiring target annotation information corresponding to the target job task item, wherein the target annotation information is pre-embedded information for annotating a target job task script of the target job task item;
and generating an error processing dynamic execution script according to the target annotation information so as to call a corresponding interface program to process the job error event corresponding to the job error information according to the error processing dynamic execution script.
In another aspect, the present disclosure provides a job error information processing apparatus, the apparatus including:
a first obtaining module: target job identification information for acquiring job error information;
a determination module: the target job task item corresponding to the job error information is determined according to the target job identification information;
a second obtaining module: the target annotation information is pre-embedded information for annotating a target job task script of the target job task item;
a generation module: and the interface program is used for generating an error processing dynamic execution script according to the target annotation information so as to call a corresponding interface program to process the job error event corresponding to the job error information according to the error processing dynamic execution script.
In another aspect, the present disclosure provides a computer storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the job error information processing method as described above.
In another aspect, the present disclosure provides a job error information processing apparatus including the above-described job error information processing device or storage medium.
In another aspect, the present disclosure provides an electronic device, which includes a processor and a memory, where at least one instruction and at least one program are stored in the memory, and the at least one instruction and the at least one program are loaded by the processor and executed to implement the above-mentioned job error information processing method.
The job error information processing method, the job error information processing device, the job error information processing equipment, the storage medium and the electronic equipment have the following technical effects:
according to the method and the device, the target operation identification information of the operation error information is obtained, the operation task item corresponding to the operation error information is automatically identified and positioned, the dynamic execution script is automatically generated according to the target annotation information of the target operation task item, and then the system is automatically triggered to record and process the information of the operation error event, so that the processing efficiency of the operation error information can be effectively improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions and advantages of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive efforts.
Fig. 1 is a schematic flowchart of a method for processing job error information according to an embodiment of the present disclosure;
FIG. 2 is a tool class operation interface of the ZOS operating system provided by an embodiment of the present disclosure;
FIG. 3 is a sample annotation information generated in a job task script according to a format agreed upon by a job error handler provided by an embodiment of the present disclosure;
FIG. 4 is a screenshot of a program running to generate interface parameters according to target job identification information provided by an embodiment of the present disclosure;
FIG. 5 is a screenshot of a program running to determine a target job task item and obtain target annotation information provided by an embodiment of the present disclosure;
FIG. 6 is a program execution screenshot of generating an error handling dynamic execution script based on target annotation information provided by an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a job error information processing apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic flow chart of a job error information processing method provided by an embodiment of the present disclosure, and the present disclosure provides method operation steps as in the embodiment or the flow chart, but may include more or less operation steps based on conventional or non-creative labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel processor or multi-threaded environment) according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 1, the job error information processing method may include:
s200: target job identification information of the job error information is acquired.
In the embodiment of the disclosure, the job error information can represent the grade of the corresponding job error event, the grade can reflect the category and the severity of the job error event, and the system or the tool can sense and process the corresponding job task result according to the job error information.
In practical applications, the target job identification information includes information capable of characterizing a target job task name, including but not limited to a target job task name and/or a target job task ID, where the target job task name may include information such as a task name and an execution script name of the target job task, and the target job task ID includes information such as a number of execution instances of the target job task, for example, a specific execution instance.
In some embodiments, the job error information may be displayed on an interface of the operating system in the form of a job return code.
S400: and determining a target job task item corresponding to the job error information according to the target job identification information.
In the embodiment of the disclosure, the job task item is a job task generated by scheduling and executing the job task script by the system, and the target job task item is a job task in which an error exception occurs in the scheduling and executing processes of the job task script.
In some embodiments, each job task item may have respective, mutually different unique identification information, and the target job identification information may include the unique identification information of the target job task.
S600: and acquiring target annotation information corresponding to the target job task item, wherein the target annotation information is pre-embedded information for annotating a target job task script of the target job task item.
In the embodiment of the present disclosure, the target annotation information may be automatically generated when the target job task is triggered, and specifically, may be generated before or during execution of the target job task script.
In practical applications, the job task script may be generated by a job script generating program, in which an annotation generating function is pre-programmed, and the annotation generating function may automatically embed the target annotation information into the target job task script during a generating process, a scheduling process or an executing process of the job script.
Further, the target annotation information may include target business information and related elements of a target job task script to be generated, executed by throwing, or scheduled to be executed, and the annotation generating function may compile the target annotation information.
In a specific embodiment, the target annotation information includes information that needs to be collected when a job error event occurs, such as call information of a target job task, job service content information, scheduled identification ID information, and the like.
It should be noted that the content included in the target comment information is not limited to the above description, and since the operating system itself does not have the function of retaining the job content information in the job error event scenario such as JCLERROR, and the job error event cannot be handled actively by the system program and subjected to the trap-grabbing process in the current operating system, any information related to the job, particularly information related to the execution of the present instance of the job, can be compiled as the target comment information in the automatic processing of the job error event.
In some embodiments, the target annotation information is compiled according to a first preset format, and the compiled target annotation information is automatically embedded into a preset location in the target job script to form a target script annotation line. Preferably, the preset position may be a start position and/or an end position of the target job script, so as to improve processing efficiency of operations such as scanning and parsing.
In one embodiment, the compiled target annotation information may be retained in the form of a target feature string.
S800: and generating an error processing dynamic execution script according to the target annotation information so as to call a corresponding interface program to process a job error event corresponding to the job error information according to the error processing dynamic execution script.
In the embodiment of the present disclosure, a dynamic script generation mode may be adopted, and an error handling dynamic execution script may be automatically generated according to the target annotation information.
In practical application, after the error processing dynamic execution script is generated, the system may call the corresponding interface program through the operating system interface, so that the corresponding interface program records the relevant information of the job error event, and performs subsequent processing of the job error event.
By the above processing method for the job error information, the job task item corresponding to the job error information is automatically identified and positioned by acquiring the target job identification information of the job error information, and the dynamic execution script is automatically generated according to the target annotation information of the target job task item, so that the system is automatically triggered to record and process the information of the job error event, the processing efficiency of the job error information can be effectively improved, and the user experience is improved.
Based on the foregoing specific implementation, in this embodiment of the present disclosure, before step S200, the job error information processing method may further include:
s100: in response to the job error event, job error information is generated from the target annotation information.
In practical applications, some systems cannot identify a job error event or cannot sense and identify a part of job error event, for example, error abnormality caused by exceptional cases such as script syntax error, script reference data file error, etc., in some cases, the systems can only return error event notification information, but cannot generate job error information, such as a ZOS system of a mainframe, and in the event of error abnormality of the exceptional cases, the systems can only return JCLEROR information, and the systems cannot perform screening and subsequent processing of the cause of the job error event according to the information.
In a specific embodiment, the host system pre-embeds information to be collected when a job error event occurs in an annotated form into a job task script to be generated, scheduled to be executed or being scheduled to be executed by compiling target annotation information, and explains the job task script through the target annotation information. When the job task script is scheduled or executed and error abnormality occurs, the target annotation information can be reserved, so that a system or a tool can respond to a job error event and generate recognizable job error information according to the reserved corresponding target annotation information, and subsequent information collection and processing are facilitated.
In some embodiments, the job error information may include a plurality of categories of job return codes, different job error events may correspond to different job return codes, the job return codes may characterize a category or level of job error, and so on.
Based on the foregoing specific implementation, in this embodiment of the present disclosure, step S200 may include:
s210: and capturing target job identification information in the job error information by adopting the job error information processing script.
In practical applications, the job error information may include, but is not limited to, job identification information.
In the specific embodiment, after the system senses and identifies the operation error event and generates corresponding operation error information, the system calls an operation error information processing script through a system interface; and after the job error information processing script receives the job error information, capturing target job identification information in the job error information through a preset function.
In some embodiments, the job error information processing script fetches the target job identification information by a preset function, which is a function corresponding to the job return code of the job error information.
In some embodiments, the job error information processing script parameterizes part or all of the target job identification information to generate the job identification information having a second preset format to trigger the subsequent process. Therefore, only the operation matched with the second preset format can trigger the subsequent flow, and the error processing of operation error information caused by accidental triggering is avoided, such as calling an error subsequent processing script or program.
In some embodiments, the job error information processing script compiles information including, but not limited to, target job identification information into an interface parameter, and calls a subsequent related program according to the interface parameter.
Based on some or all of the foregoing specific embodiments, in this disclosure, the target job identification information includes a target job task name and/or a target job task ID, and accordingly, step S400 may include:
s420: a job task item queue including a target job task item is scanned.
S441: in the scanning process, matching is carried out according to the target job task name and the job task name of each job task item in the job task item queue so as to determine the target job task item;
and/or the presence of a gas in the gas,
s442: and in the scanning process, matching is carried out according to the target job task ID and the job task ID of each job task item in the job task item queue so as to determine the target job task item.
In practical application, several job task items may form a job task queue, each job task item has its own job task name and job task ID, and the job task queue may be displayed on the system interface in a table form.
In some embodiments, the job content information scanning program is called through the interface parameters compiled by the target job identification information and other information to perform scanning check of the job task item queue, and matching check is performed on each job task item in the job task item queue through the target job task name and/or the target job task ID, so that automatic positioning of the target job task item is realized.
In some embodiments, the target job identification information may further include a target job task user, and during the scanning, each job task item in the job task item queue may be further matched according to at least one of the target job task user, the target job task name, and the target job task ID to determine the target job task item.
In some embodiments, at least one of the job task user, the target job task name, and the target job task ID is the aforementioned unique identification information of the target job task item.
It should be noted that the features included in the unique identification information are not limited to the above description, and may include other features capable of characterizing the task item for identifying the target job.
Based on some or all of the foregoing specific embodiments, in this disclosure, step S600 may include:
s610: acquiring a target script log corresponding to the target job task script, wherein the target script log comprises a target log annotation line corresponding to the target annotation information;
s620: identifying a target log annotation line in a target script log;
s630: extracting a target feature string in a target log annotation line;
s640: and analyzing the target characteristic string to obtain target annotation information.
In practical applications, the target script log is an event record generated by executing the target job task script. Specifically, target annotation information is embedded in the target job task script in advance, and the target annotation information is recorded in a target script annotation line of the target job task script in the form of a target feature string. And after the target job task script is scheduled to be executed, generating a target script log, and in the process, generating a corresponding target log annotation line according to the target script annotation line, wherein the target log annotation line is recorded in the target script log and comprises a target characteristic string corresponding to target annotation information.
In a specific embodiment, after the target job task item and the corresponding target script log are located, the target script log may be further automatically scanned by the job content information scanning program, and after a target log annotation line matching the first preset format is detected, a target feature string in the target log annotation line is extracted and analyzed as target annotation information.
In some embodiments, the job content information scanner may scan the target script log by forward or reverse sorting.
In some embodiments, the target feature string may be feature information generated by an annotation generation function tailored as needed. Specifically, the target feature string may include a randomly generated code, and may be random information or hash information that can be used as a unique identifier.
In some embodiments, after the target annotation information is obtained, the target annotation information is cached for a subsequent job error information processing flow.
In one embodiment, during the scanning process, a target job task log of a corresponding job task item may be matched according to a target job task name and/or a target job task user, and then a target feature string in the target job task log may be obtained.
Based on some or all of the foregoing specific embodiments, in this embodiment of the present disclosure, before step S800, the job error information processing method provided by the present disclosure may further include S710: judging whether the target annotation information has logic errors or grammar errors; and if the target annotation information does not exist, generating an error processing dynamic execution script according to the target annotation information.
In practical application, as before, the target annotation information has a first preset format, and when the job task script is called and executed in batch, and the conditions such as network attack, operating system error, storage error, memory error and the like are encountered, a compilation error may occur when the target annotation information is generated, so that the annotation information which does not meet the first preset format is generated. The format of the target annotation information may be checked to determine whether it matches the first preset format, and if it matches, step S800 is executed.
Further, if there is no match, step S720 may be executed: and sending application abnormal information to trigger preset alarm operation.
Specifically, by throwing out the corresponding application exception information, it is prompted that the target annotation information of the target job task item is not matched according to the first preset format, and subsequent processing cannot be performed. In addition, the user is prompted to carry out corresponding operation and processing by triggering preset alarm operation.
In a specific embodiment, whether the target annotation information is matched with the first preset format or not can be determined by judging whether the target annotation information has a logic error or a syntax error. In some embodiments, it may be determined whether the length of the feature string, the identifier key, and the like satisfy the first preset format before parsing, and whether the content of the annotation information satisfies the first preset format or whether a description error exists after parsing. For example, it is determined whether a certain number of digits in the feature string of the target annotation information matches a set attribute, such as whether the number is odd.
Based on some or all of the foregoing specific embodiments, in this disclosure, step S800 may include S810: and inserting the target annotation information into a preset dynamic script template to generate an error processing dynamic execution script.
In practical applications, after acquiring the target comment information, the above steps S710, S720 and/or S800 may be executed by calling a job error handler.
In a specific embodiment, the job error handling program may use a dynamic script generation mode to insert the received target annotation information into a preset dynamic script template according to a preset grammar rule, so as to form an error handling dynamic execution script.
Further, the error processing dynamic execution script is thrown out and executed through a system interface so as to call a corresponding interface program to process the job error event corresponding to the job error information according to the error processing dynamic execution script.
The method for processing job error information provided by the embodiments of the present disclosure is described below with reference to the ZOS operating system of IBM mainframe platform, and please refer to FIGS. 2-6.
Currently, in the ZOS operating system of the IBM mainframe platform, a job task is scheduled to be executed through a JES2 subsystem in the form of a job task script instance. Referring to fig. 2, the ZOS operating system is provided with a tool class interface, referred to as sdsf (room Display and Search facility). The execution state and the execution result of the job task script scheduled by the JES2 subsystem can be checked through the tool type operation interface, but the tool type operation interface can only carry out work receiving inquiry and check and cannot carry out automatic processing.
During the scheduling process of the job script, for the pre-stored job error event which can be perceived and identified, the system displays on the operation interface in the form of a job return code, such as RC4, RC8, RC16 and the like, and the category and the severity of the job error event are distinguished according to the job return code. In addition, when unexpected situations such as script syntax errors, script reference data file errors and the like occur, the JES2 subsystem of the ZOS only returns JCLERROR information at present, cannot identify the types, levels and other job error information of corresponding job error events, cannot generate clear job return codes, cannot capture corresponding job task items, cannot perform subsequent automatic information acquisition, retention, event processing and the like.
Moreover, for JCLEROR event type operation error events, the error HANDLE collapse syntax of the ZOS system can not cover such scenes at present, and further can not output corresponding operation results to process the subsequent operation error events. Meanwhile, since the job result cannot be output in this scenario, the internal information required for recording and processing the job error event cannot be automatically acquired.
In this embodiment, an annotation generating function is first generated in the job script generating program according to the grammar rule in the ZOS operating system, so as to generate annotation information into information such as a feature string when the job task script is generated, scheduled or executed, and the information such as the feature string is automatically embedded into a preset position in the job task script to form a corresponding script annotation line, where the annotation information matches the agreed format of the job error handling program of this embodiment. The comment information includes key information required for collecting and processing a job error event, for example, call information of a target job task, job service content information, scheduled identification ID information, and the like, and can be retained when a job exception error event such as a JCLERROR event occurs, and specifically, can be retained in a script log generated by execution of a job task script. The annotation information may be saved in the form of a feature string in a particular log annotation line in the script date. In this way, after the JCLERROR event occurs, the job execution result and the job execution information can be output based on the comment information. Referring to FIG. 3, a sample annotation information generated in a job task script according to the format agreed upon by the job error handler is shown in FIG. 3.
Further, in the scheduling or executing process of the target job task item, after a job exception error event such as JCLERROR event occurs, the system will throw out error information such as IEF453I/IEF452I/IEFC452I, which can be obtained by the sa (system automation) subsystem through a specific function.
Further, after the sa (system automation) subsystem acquires the job error information, the system calls the created job error information processing script and sends the job error information to the job error information processing script. After receiving the operation error information, the operation error information processing script captures target operation identification information in the operation error information through a preset function, and parameterizes the target operation identification information according to an operation task name rule and the like in parameter configuration so as to trigger a subsequent process. The target job identification information may include, but is not limited to, a target job task name, a target job task user, a target job task ID, and the like.
Further, the job error information processing script compiles at least one of information such as a target job task name, a target job task user, and a target job task ID as an interface parameter to call a job content information scanning program and a subsequent job error processing program. Referring to fig. 4, fig. 4 shows a screenshot of the program for generating interface parameters according to the target job identification information in the present embodiment. Wherein, the job content information scanning program and the job error processing program can be triggered by calling the prepared JERRPROC interface program.
Further, a job task item queue in the JES2 subsystem is scanned and checked through the job content information scanning program, matching check is carried out on the job task items in the queue, and a target job task item is located. The elements for matching check include, but are not limited to, at least one of information such as a target job task name, a target job task user, a target job task ID, and the like. For example, during the scanning process, the corresponding job task item may be matched according to the name of the target job task and/or the target job task user.
Furthermore, after the accurate target job task item is matched, a target script log corresponding to the target job task item is obtained, the target script log is a log generated by executing the target job task script, and information in the target script log is further scanned and detected through a job content information scanning program. According to the agreed key words and the format of the key information, after a target log annotation line containing key information required by subsequent processing is detected, the information is extracted to obtain a target feature string, and the target feature string is analyzed to obtain target annotation information. And then passes the target comment information as a parameter to the job error handler. Referring to fig. 5, fig. 5 shows a screenshot of the program for determining a target job task item and acquiring target comment information according to the present embodiment.
Further, the job error processing program checks the received target annotation information, judges whether the target annotation information has a logic error or a syntax error, if not, inserts the target annotation information into a preset dynamic script template with a set format, writes key information contained in the target annotation information into a corresponding position in the preset dynamic script template, and generates a job error dynamic execution script for information acquisition and processing of job exception error events such as subsequent JCLERROR events.
Furthermore, the error processing dynamic execution script is thrown out and executed through a system interface so as to call a corresponding interface program to trigger the error processing dynamic execution script, and further, information recording and processing are carried out on job exception error events such as JCLEROR events and the like corresponding to job error information. Specifically, the corresponding interface program dynamically executes the script according to the error processing, and dynamically generates subsequent processing programs of job exception error events such as JCLEROR events and the like by combining the acquired key information, and automatically submits the subsequent processing programs to the system for execution. Referring to fig. 6, fig. 6 shows a program execution screenshot of the present embodiment for generating an error handling dynamic execution script according to target comment information.
According to the technical scheme provided by the embodiment of the disclosure, the embodiment of the disclosure can realize automatic perception and identification of the system on the operation error events including exception error events and the like, automatically position the corresponding operation task direction with errors, and further realize automatic information acquisition, retention and event processing by capturing the pre-embedded target annotation information.
The embodiment of the disclosure provides a terminal, which includes a processor and a memory, where the memory stores at least one instruction and at least one program, and the at least one instruction and the at least one program are loaded and executed by the processor to implement the above-mentioned job error information processing method.
The embodiment of the disclosure provides a server, which includes a processor and a memory, where the memory stores at least one instruction and at least one program, and the at least one instruction and the at least one program are loaded and executed by the processor to implement the above-mentioned job error information processing method.
In the embodiment of the present disclosure, the memory may be used to store software programs and modules, and the processor executes various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
The embodiment of the present disclosure also provides a job error information processing apparatus, as shown in fig. 7, the apparatus may include:
the first acquisition module 10: target job identification information for acquiring job error information;
the determination module 20: the target job task item corresponding to the job error information is determined according to the target job identification information;
the second acquisition module 30: the target annotation information is pre-embedded information for annotating a target job task script of the target job task item;
the generation module 40: and the interface program is used for generating an error processing dynamic execution script according to the target annotation information so as to call the corresponding interface program to process the job error event corresponding to the job error information according to the error processing dynamic execution script.
Based on the above detailed description, in the embodiment of the present disclosure, the job error information processing apparatus may further include:
an error information generation module: and generating the job error information according to the target comment information in response to the job error event before acquiring the target job identification information of the job error information.
Based on the foregoing specific implementation, in this embodiment of the present disclosure, the first obtaining module may include a grabbing unit: and the target job identification information in the job error information is grabbed by adopting the job error information processing script.
Based on some or all of the foregoing specific embodiments, in this disclosure, the target job identification information includes a target job task name and/or a target job task ID, and the determining module 20 includes:
a first scanning unit: scanning a job task item queue including a target job task item;
a matching unit: the system comprises a task item queue, a task item matching module and a task item matching module, wherein the task item matching module is used for matching a target task item with the task item of each task item in the task item queue according to the target task item name in the scanning process so as to determine the target task item; and/or the use of the (co) polymer,
and in the scanning process, matching is carried out according to the target job task ID and the job task ID of each job task item in the job task item queue so as to determine the target job task item.
Based on some or all of the above specific embodiments, in the embodiment of the present disclosure, the second obtaining module 30 includes:
a log acquisition unit: the target script log is used for acquiring a target script log corresponding to the target job task script, and the target script log comprises a target log annotation line corresponding to the target annotation information;
an identification unit: for identifying a target log annotation line in the target script log;
an extraction unit: the method comprises the steps of extracting a target feature string in a target log annotation line;
an analysis unit: and the target annotation processing module is used for analyzing the target characteristic string to obtain target annotation information.
Based on some or all of the foregoing detailed description, in the embodiments of the present disclosure, the generating module includes: a generation unit: and the dynamic execution script is used for inserting the target annotation information into a preset dynamic script template to generate an error processing dynamic execution script.
Based on some or all of the above detailed description, in this disclosure, the job error information processing apparatus further includes a determining module: the method comprises the steps of judging whether logic errors or syntax errors exist in target annotation information before generating an error processing dynamic execution script according to the target annotation information; and if the target annotation information does not exist, generating an error processing dynamic execution script according to the target annotation information.
The device embodiments and the method embodiments of (1) are based on the same inventive concept.
The embodiment of the disclosure also provides a computer storage medium, where at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the above-mentioned job error information processing method.
The embodiment of the present disclosure further provides an electronic device, which includes a memory and a processor, where the memory stores at least one instruction and at least one program, and the at least one instruction and the at least one program are loaded and executed by the processor to implement the above-mentioned job error information processing method.
Further, fig. 8 shows a hardware structure diagram of an electronic device for implementing the job error information processing method provided by the embodiment of the present disclosure, and the electronic device may participate in constituting or including the apparatus or system provided by the embodiment of the present disclosure. As shown in fig. 8, the electronic device 1 may comprise one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may comprise, but are not limited to, processing means such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission means 106 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 8 is only an illustration and is not intended to limit the structure of the electronic device. For example, the electronic device 1 may also include more or fewer components than shown in FIG. 8, or have a different configuration than shown in FIG. 8.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Furthermore, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the electronic device 1 (or mobile device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the methods in the embodiments of the present disclosure, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement one of the above-mentioned methods for determining vehicle speed. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the electronic device 1 over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the electronic device 1. In one example, the transmission device 106 includes a network adapter (NIC) that can be connected to other network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the electronic device 1 (or mobile device).
As can be seen from the above embodiments of the job error information processing method, apparatus, device, terminal, server, system or storage medium provided by the present disclosure, by obtaining the target job identification information of the job error information, automatically identifying and locating the job task item corresponding to the job error information, and automatically generating the dynamic execution script according to the target annotation information of the target job task item, the system is further automatically triggered to record and process the information of the job error event, so that the processing efficiency of the job error information can be effectively improved, and the user experience is improved.
It should be noted that: the precedence order of the embodiments of the present disclosure is merely for description, and does not represent the merits of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, system and server embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present disclosure and is not intended to limit the present disclosure, so that any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (13)

1. A method for processing job error information, the method comprising:
acquiring target operation identification information of the operation error information;
determining a target operation task item corresponding to the operation error information according to the target operation identification information;
acquiring target annotation information corresponding to the target job task item, wherein the target annotation information is pre-embedded information for annotating a target job task script of the target job task item;
and generating an error processing dynamic execution script according to the target annotation information so as to call a corresponding interface program to process the job error event corresponding to the job error information according to the error processing dynamic execution script.
2. The method according to claim 1, wherein before the acquiring target job identification information of job error information, the method further comprises:
and responding to the job error event, and generating job error information according to the target annotation information.
3. The method according to claim 1, wherein the target job identification information includes a target job task name and/or a target job task ID, and accordingly, the determining the target job task item corresponding to the job error information according to the target job identification information includes:
scanning a job task item queue comprising the target job task item;
in the scanning process, matching is carried out according to the target job task name and the job task name of each job task item in the job task item queue so as to determine the target job task item; and/or the presence of a gas in the gas,
and in the scanning process, matching the target job task ID with the job task ID of each job task item in the job task item queue to determine the target job task item.
4. The method according to claim 1, wherein the obtaining of target annotation information corresponding to the target job task item comprises:
acquiring a target script log corresponding to the target job task script, wherein the target script log comprises a target log annotation line corresponding to the target annotation information;
identifying a target log annotation line in the target script log;
extracting a target feature string in the target log annotation line;
and analyzing the target feature string to obtain the target annotation information.
5. The method of claim 1, wherein generating an error handling dynamic execution script based on the target annotation information comprises:
and inserting the target annotation information into a preset dynamic script template to generate the error processing dynamic execution script.
6. The method of claim 1, wherein prior to said generating an error handling dynamic execution script from said target annotation information, said method further comprises:
judging whether the target annotation information has logic errors or grammar errors;
and if the target annotation information does not exist, executing the step of generating the error processing dynamic execution script according to the target annotation information.
7. A job error information processing apparatus, characterized by comprising:
a first obtaining module: target job identification information for acquiring job error information;
a determination module: the target job task item corresponding to the job error information is determined according to the target job identification information;
a second obtaining module: the target annotation information is pre-embedded information for annotating a target job task script of the target job task item;
a generation module: and the interface program is used for generating an error processing dynamic execution script according to the target annotation information so as to call a corresponding interface program to process the job error event corresponding to the job error information according to the error processing dynamic execution script.
8. The apparatus of claim 7, further comprising:
an error information generation module: and generating the job error information according to the target annotation information in response to the job error event before acquiring the target job identification information of the job error information.
9. The apparatus of claim 7, wherein the target job identification information comprises a target job task name and/or a target job task ID, and wherein the determination module comprises:
a first scanning unit: a job task item queue for scanning a job task item including the target job task item;
a matching unit: the system comprises a task item queue, a task item matching module and a task item matching module, wherein the task item matching module is used for matching the target task item name with the task item names of all the task items in the task item queue in the scanning process so as to determine the target task item; and/or the use of the (co) polymer,
and in the scanning process, matching the target job task ID with the job task ID of each job task item in the job task item queue to determine the target job task item.
10. The apparatus of claim 7, wherein the second obtaining module comprises:
a second scanning unit: the target job task script is used for scanning the target job task item so as to determine a target annotation line in the target job task script;
an extraction unit: for extracting the target feature string in the target annotation line;
an analysis unit: and the target annotation information is obtained by analyzing the target feature string.
11. The apparatus of claim 7, wherein the generating module comprises:
a generation unit: and the target annotation information is inserted into a preset dynamic script template to generate the error processing dynamic execution script.
12. The apparatus of claim 7, further comprising a determination module to:
the system is used for judging whether logic errors or syntax errors exist in the target annotation information before generating an error processing dynamic execution script according to the target annotation information; and for the purpose of,
and if the target annotation information does not exist, executing the step of generating the error processing dynamic execution script according to the target annotation information.
13. A computer storage medium, wherein at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the job error information processing method according to any one of claims 1 to 6.
CN202011324666.4A 2020-11-23 2020-11-23 Method and device for processing job error information and storage medium Pending CN112433876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011324666.4A CN112433876A (en) 2020-11-23 2020-11-23 Method and device for processing job error information and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011324666.4A CN112433876A (en) 2020-11-23 2020-11-23 Method and device for processing job error information and storage medium

Publications (1)

Publication Number Publication Date
CN112433876A true CN112433876A (en) 2021-03-02

Family

ID=74693793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011324666.4A Pending CN112433876A (en) 2020-11-23 2020-11-23 Method and device for processing job error information and storage medium

Country Status (1)

Country Link
CN (1) CN112433876A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419887A (en) * 2021-06-23 2021-09-21 中国工商银行股份有限公司 Method and device for processing abnormal online transaction of host
CN117172203A (en) * 2023-09-07 2023-12-05 芯华章科技股份有限公司 Method for processing script command, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5892898A (en) * 1996-10-04 1999-04-06 Honeywell, Inc. Error management system for supporting the identification and logging of error messages
US20030037291A1 (en) * 2001-08-17 2003-02-20 International Business Machines Corporation Method, system and program for handling errors occurring in function calls
CN102981943A (en) * 2012-10-29 2013-03-20 新浪技术(中国)有限公司 Method and system for monitoring application logs
CN109325865A (en) * 2018-08-13 2019-02-12 中国平安人寿保险股份有限公司 Abnormality eliminating method, device, computer equipment and storage medium
US10528454B1 (en) * 2018-10-23 2020-01-07 Fmr Llc Intelligent automation of computer software testing log aggregation, analysis, and error remediation
CN110825560A (en) * 2018-08-10 2020-02-21 北京嘀嘀无限科技发展有限公司 Execution error processing method, device, equipment and computer readable storage medium
CN111506470A (en) * 2020-03-24 2020-08-07 平安国际智慧城市科技股份有限公司 Browser error detection and alarm method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5892898A (en) * 1996-10-04 1999-04-06 Honeywell, Inc. Error management system for supporting the identification and logging of error messages
US20030037291A1 (en) * 2001-08-17 2003-02-20 International Business Machines Corporation Method, system and program for handling errors occurring in function calls
CN102981943A (en) * 2012-10-29 2013-03-20 新浪技术(中国)有限公司 Method and system for monitoring application logs
CN110825560A (en) * 2018-08-10 2020-02-21 北京嘀嘀无限科技发展有限公司 Execution error processing method, device, equipment and computer readable storage medium
CN109325865A (en) * 2018-08-13 2019-02-12 中国平安人寿保险股份有限公司 Abnormality eliminating method, device, computer equipment and storage medium
US10528454B1 (en) * 2018-10-23 2020-01-07 Fmr Llc Intelligent automation of computer software testing log aggregation, analysis, and error remediation
CN111506470A (en) * 2020-03-24 2020-08-07 平安国际智慧城市科技股份有限公司 Browser error detection and alarm method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419887A (en) * 2021-06-23 2021-09-21 中国工商银行股份有限公司 Method and device for processing abnormal online transaction of host
CN117172203A (en) * 2023-09-07 2023-12-05 芯华章科技股份有限公司 Method for processing script command, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN107562620B (en) Automatic buried point setting method and device
CN114546738B (en) Universal test method, system, terminal and storage medium for server
CN112433876A (en) Method and device for processing job error information and storage medium
CN111198797B (en) Operation monitoring method and device and operation analysis method and device
CN113448854A (en) Regression testing method and device
CN111190573A (en) Application program point burying method and device and electronic equipment
CN111190807A (en) Buried point testing method and device
CN109783284A (en) Information acquisition method, system and server, computer readable storage medium
CN115237713A (en) Application data acquisition method and device, computer equipment and storage medium
CN110245059B (en) Data processing method, device and storage medium
CN110134583B (en) Software testing and data processing method and device
CN109559121B (en) Transaction path call exception analysis method, device, equipment and readable storage medium
CN108650123B (en) Fault information recording method, device, equipment and storage medium
CN112131127B (en) Interface testing method, device and system and electronic equipment
CN114265737A (en) System migration integrity detection method and device and electronic equipment
CN112433936A (en) Test method, test device and storage medium
CN112416735A (en) Application program detection method and device, terminal equipment and storage medium
US20050114362A1 (en) System and method for providing computer support tools
CN115587046A (en) Code exception processing method and device, storage medium and computer equipment
US20150326677A1 (en) Screen information collecting computer, screen information collecting method, and computer-readable storage medium
CN110620698A (en) Software abnormity diagnosis method, device, equipment and system
CN114064510A (en) Function testing method and device, electronic equipment and storage medium
CN113037521B (en) Method for identifying state of communication equipment, communication system and storage medium
CN113868137A (en) Method, device and system for processing buried point data and server
CN105391602A (en) Data acquisition test 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