A Monitoring Method, Device, Mobile Terminal and Medium for Batch Jobs

By obtaining information from the batch scheduling platform and automatically detecting the execution status of batch jobs using image recognition technology, the problem of manual monitoring in the existing technology is solved, and automated batch job monitoring and exception handling is realized.

CN114418429BActive Publication Date: 2025-07-25AGRICULTURAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210093447.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-26
Publication Date
2025-07-25
Estimated Expiration
2042-01-26

AI Technical Summary

Technical Problem

The monitoring plan for batch operations in the existing technology requires staff to pay attention to the batch operation process at any time in order to promptly confirm abnormalities and deal with them. It is time-consuming and labor-intensive and has high requirements for staff.

Method used

By obtaining job information and node information from the batch scheduling platform, batch jobs are automatically allocated to matching job nodes, and receiving timed monitoring interface screenshots, using image recognition technology to detect execution status, and automatically provide alarm prompt information.

Benefits of technology

It realizes that without the continuous attention of staff, automatically detects the execution status of batch operations, promptly detects and handles abnormal situations, reduces manpower demand and improves monitoring efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114418429B_ABST
    Figure CN114418429B_ABST
Patent Text Reader

Abstract

The present invention discloses a monitoring method, device, mobile terminal and medium for batch jobs. The method includes: obtaining job information of each batch job and node information of each job node from a batch scheduling platform; obtaining node identification information and job parameters of job nodes matching each batch job input by a user; sending the node identification information and job parameters to the batch scheduling platform; receiving a screenshot image corresponding to a batch job monitoring interface regularly sent by the batch scheduling platform; performing image recognition on the screenshot image to obtain monitoring information in a monitoring information display area corresponding to each batch job and the color of a color indication area; and if there is a target batch job with an execution status of execution failure, providing corresponding alarm prompt information to the user. Embodiments of the present invention can automatically obtain information related to the execution process of batch jobs, and automatically detect whether there is an abnormal situation of execution failure according to the obtained information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular, to a monitoring method, device, mobile terminal and medium for batch jobs. Background Art

[0002] Batch jobs are an important work link in an enterprise. How to effectively ensure that batch jobs are executed on time without affecting the development of enterprise business is the focus of the batch job process.

[0003] In related technologies, the monitoring solution for batch jobs is that staff actively check the execution process of each batch job manually.

[0004] The monitoring solution for batch jobs in related technologies requires staff to pay attention to the relevant information of the batch job process at any time in order to confirm and handle the anomalies in the batch job process in a timely manner, which is time-consuming and laborious and requires high requirements for staff. Summary of the Invention

[0005] The present invention provides a monitoring method, device, mobile terminal and medium for batch jobs to solve the problem that the monitoring solution for batch jobs in related technologies requires staff to pay attention to the relevant information of the batch job process at any time in order to confirm and handle the anomalies in the batch job process in a timely manner, which is time-consuming and laborious and requires high requirements for staff.

[0006] According to one aspect of the present invention, a monitoring method for batch jobs is provided, including:

[0007] Obtain the job information of each batch job and the node information of each job node from the batch scheduling platform, and provide the job information and the node information to the user through the batch job display interface;

[0008] Obtain the node identification information of the job nodes matching each batch job and the job parameters of each batch job input by the user through the batch job display interface;

[0009] Send the node identification information and the job parameters to the batch scheduling platform, so that the batch scheduling platform sends each batch job, the job information and job parameters of each batch job to the matching job nodes according to the node identification information, and instructs each job node to execute the matching batch job;

[0010] Receive the screenshot images corresponding to the batch job monitoring interface sent by the batch scheduling platform at regular intervals; wherein, the batch job monitoring interface includes a monitoring information display area and a color indication area corresponding to each batch job, the monitoring information display area is used to display the monitoring information corresponding to the batch job, the monitoring information includes job identification information and node identification information, and the color indication area is used to indicate the execution status of the batch job;

[0011] Perform image recognition on the screenshot images to obtain the monitoring information in the monitoring information display area corresponding to each batch job, and the colors of the color indication areas corresponding to each batch job;

[0012] Determine the execution status of each batch job according to the colors of the color indication areas corresponding to each batch job. If there is a target batch job with an execution status of execution failure, provide the alarm prompt information corresponding to the target batch job to the user.

[0013] According to another aspect of the present invention, there is provided a monitoring device for batch jobs, including:

[0014] An information providing module, configured to obtain the job information of each batch job and the node information of each job node from the batch scheduling platform, and provide the job information and the node information to the user through the batch job display interface;

[0015] An information obtaining module, configured to obtain the node identification information of the job nodes matching each batch job input by the user and the job parameters of each batch job through the batch job display interface;

[0016] An information sending module, configured to send the node identification information and the job parameters to the batch scheduling platform, so that the batch scheduling platform sends each batch job, the job information and job parameters of each batch job to the matching job nodes according to the node identification information, and instructs each job node to execute the matching batch job;

[0017] A picture receiving module, configured to receive the screenshot images corresponding to the batch job monitoring interface sent by the batch scheduling platform at regular intervals; wherein, the batch job monitoring interface includes a monitoring information display area and a color indication area corresponding to each batch job, the monitoring information display area is used to display the monitoring information corresponding to the batch job, the monitoring information includes job identification information and node identification information, and the color indication area is used to indicate the execution status of the batch job;

[0018] An image recognition module, configured to perform image recognition on the screenshot image to obtain the monitoring information in the monitoring information display area corresponding to each batch job, and the color of the color indication area corresponding to each batch job;

[0019] An alarm information providing module, configured to determine the execution status of each batch job according to the color of the color indication area corresponding to each batch job. If there is a target batch job with an execution status of execution failure, the alarm prompt information corresponding to the target batch job is provided to the user.

[0020] According to another aspect of the present invention, there is provided a mobile terminal, which includes:

[0021] At least one processor; and

[0022] A memory communicatively connected to the at least one processor; wherein,

[0023] The memory stores a computer program executable by the at least one processor. When the computer program is executed by the at least one processor, the at least one processor is enabled to execute the monitoring method of the batch job according to any embodiment of the present invention.

[0024] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for enabling a processor to implement the monitoring method of the batch job according to any embodiment of the present invention when executed.

[0025] The technical solution of the embodiment of the present invention obtains the job information of each batch job and the node information of each job node from the batch scheduling platform, and provides the job information and node information to the user through the batch job display interface; then, through the batch job display interface, obtains the node identification information of the job nodes matching each batch job and the job parameters of each batch job input by the user; sends the node identification information and job parameters to the batch scheduling platform, so that the batch scheduling platform sends each batch job, the job information and job parameters of each batch job to the matching job nodes according to the node identification information and the job parameters, and instructs each job node to execute the matching batch job; then receives the screenshot images corresponding to the batch job monitoring interface regularly sent by the batch scheduling platform; the batch job monitoring interface includes a monitoring information display area and a color indication area corresponding to each batch job, the monitoring information display area is used to display the monitoring information corresponding to the batch job, the monitoring information includes job identification information and node identification information, and the color indication area is used to indicate the execution status of the batch job; performs image recognition on the screenshot images to obtain the monitoring information in the monitoring information display area corresponding to each batch job and the color of the color indication area corresponding to each batch job; determines the execution status of each batch job according to the color of the color indication area corresponding to each batch job. If there is a target batch job with an execution status of execution failure, provides the alarm prompt information corresponding to the target batch job to the user, solving the problem that in the monitoring scheme of batch jobs in the related art, it is necessary for staff to pay attention to the relevant information of the batch job process at any time to confirm the anomalies in the batch job process in time and process them, which is time-consuming and laborious and requires high requirements for staff. It has achieved the beneficial effect that after allocating each batch job to the matching job nodes according to the user's needs, automatically obtains the information related to the execution process of each batch job, and according to the obtained information, automatically detects whether there are anomalies of execution failure in the execution process of each batch job, and provides the detected anomalies to the user, so that the user can conveniently remotely control the execution process of each batch job based on the mobile terminal, without having to keep viewing the information related to the execution process of each batch job, and can timely learn about the anomalies in the execution process of each batch job and process the anomalies.

[0026] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0028] Figure 1 This is a flowchart of a monitoring method for batch operations provided in Embodiment 1 of the present invention.

[0029] Figure 2 This is a flowchart of a monitoring method for batch operations provided in Embodiment 2 of the present invention.

[0030] Figure 3 This is a schematic structural diagram of a monitoring device for batch operations provided in Embodiment 3 of the present invention.

[0031] Figure 4 This is a schematic structural diagram of a mobile terminal for implementing the monitoring method of batch operations in the embodiments of the present invention. Detailed implementation manners

[0032] In order to enable those skilled in the art to better understand the solutions of the present invention, the following clearly and completely describes the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0033] It should be noted that the terms "target", "first", "second", etc. in the specification and claims of the present invention and the above accompanying drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising", "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0034] Embodiment 1

[0035] Figure 1The flowchart of a monitoring method for batch jobs provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of allocating each batch job to a matching job node and monitoring the process of each job node executing the matching batch job. This method can be executed by a monitoring device for batch jobs, which can be implemented in the form of hardware and / or software, and can be configured in a mobile terminal. As Figure 1 shown, the method includes:

[0036] Step 101, obtain the job information of each batch job and the node information of each job node from the batch scheduling platform, and provide the job information and the node information to the user through the batch job display interface.

[0037] Optionally, the mobile terminal in the embodiment of the present invention is the mobile terminal used by the staff responsible for monitoring the batch job process. The mobile terminal establishes a communication connection with the batch scheduling platform and can perform information interaction with the batch scheduling platform according to the established communication connection.

[0038] Optionally, the batch scheduling platform is a computer device used to allocate each batch job to a matching job node according to the information sent by the mobile terminal, instruct each job node to execute the matching batch job, and send the monitoring information associated with the execution process of the batch job to the mobile terminal. The batch scheduling platform establishes a communication connection with each job node and can perform information interaction with each job node according to the established communication connection.

[0039] Optionally, a batch job refers to an executable unit, such as a program or a script, used to complete specific task logic processing. The job information of the batch job is the information related to the batch job, which may include: the job identification information of the batch job, the job name, the business category, and / or the job data.

[0040] Optionally, the job identification information of the batch job is the identification information used to identify the batch job. Each batch job has a unique corresponding job identification information. According to the job identification information, different batch jobs can be distinguished. The job identification information can be a digital identifier. The job name of the batch job is the name of the batch job. The business category of the batch job is the business category to which the batch job belongs. The job data of the batch job is the data required to execute the batch job.

[0041] Optionally, a job node is a computer device used to execute a batch job. The node information of the job node is the information related to the job node, which may include: the node identification information of the job node, the business category, and / or the node status.

[0042] Optionally, the node identification information of a job node is the identification information used to identify the job node. Each job node has a unique corresponding node identification information. Different job nodes are distinguished based on the node identification information. The node identification information may be a digital identification. The business category of a job node is the business category to which the batch jobs that the job node can process belong. The node status of a job node is the working status of the job node, which may be an idle status or a working status. When the node status of a job node is the idle status, it indicates that the job node is not processing any batch job at the current moment. When the node status of a job node is the working status, it indicates that the job node is processing a certain batch job at the current moment.

[0043] Optionally, the user uploads each batch job, the job information of each batch job, and the node information of each job node to the batch scheduling platform. The batch scheduling platform stores each batch job, the job information of each batch job, and the node information of each job node. The mobile terminal obtains the job information of each batch job and the node information of each job node from the batch scheduling platform.

[0044] Optionally, the batch job display interface includes a job information display area and a node information display area; providing the job information and the node information to the user through the batch job display interface includes: in the job information display area, displaying the job information of each batch job; wherein, the job information of each batch job includes: the job identification information, job name, business category, and / or job data of each batch job; in the node information display area, displaying the node information of each job node; wherein, the node information of each job node includes: the node identification information, business category, and / or node status of each job node.

[0045] Optionally, the batch job display interface is an interface in the mobile terminal used to interact with the user, provide various types of information related to batch jobs to the user, and obtain control instructions or information related to batch jobs input by the user. The job information display area is an interface area in the batch job display interface used to display the job information of each batch job. The node information display area is an interface area in the batch job display interface used to display the node information of each job node.

[0046] Optionally, the mobile terminal displays the batch job display interface, which includes a job information display area and a node information display area, so that the user can browse the job information of each batch job displayed in the job information display area and can browse the node information of each job node displayed in the node information display area, thereby providing the job information and the node information to the user through the batch job display interface.

[0047] Step 102: Obtain the node identification information of the job nodes matching each batch job and the job parameters of each batch job input by the user through the batch job display interface.

[0048] Optionally, the user sets the job nodes matching each batch job by inputting the node identification information of the job nodes matching each batch job on the batch job display interface. The job nodes matching each batch job are the job nodes for executing each batch job.

[0049] Optionally, the user sets the job parameters of each batch job by inputting the job parameters of each batch job on the batch job display interface. The job parameters of a batch job are parameters related to the execution process of the batch job. The job parameters of a batch job may include the execution time of the batch job. The execution time of a batch job is the time when the job node starts to execute the batch job.

[0050] Optionally, the batch job display interface includes a node information input area and a parameter input area corresponding to each batch job; obtaining the node identification information of the job nodes matching each batch job and the job parameters of each batch job input by the user through the batch job display interface includes: obtaining the node identification information of the job nodes matching each batch job input by the user in the node information input area corresponding to each batch job; obtaining the job parameters of each batch job input by the user in the parameter input area corresponding to each batch job; wherein, the job parameters of each batch job include the execution time of each batch job.

[0051] Optionally, the node information input area corresponding to a batch job is an interface area for inputting the node identification information of the job nodes matching each batch job. The user can fill in or select the node identification information of the job nodes matching the batch job in the node information input area corresponding to the batch job.

[0052] Optionally, the parameter input area corresponding to a batch job is an interface area for inputting the job parameters of the batch job. The user can fill in or select the job parameters of the batch job in the parameter input area corresponding to the batch job.

[0053] Optionally, the mobile terminal obtains the node identification information of the job nodes matching each batch job input by the user in the node information input area corresponding to each batch job, and obtains the job parameters of each batch job input by the user in the parameter input area corresponding to each batch job.

[0054] Step 103: Send the node identification information and the job parameters to the batch scheduling platform, so that the batch scheduling platform sends each batch job, the job information and job parameters of each batch job to the matching job nodes according to the node identification information, and instructs each job node to execute the matching batch job.

[0055] Optionally, the mobile terminal sends the node identification information and the job parameters to the batch scheduling platform, so that the batch scheduling platform sends each batch job, the job information and job parameters of each batch job to the matching job nodes according to the node identification information, and instructs each job node to execute the matching batch job.

[0056] Optionally, the batch scheduling platform receives the node identification information of the job nodes matching each batch job and the job parameters of each batch job sent by the mobile terminal; the batch scheduling platform determines the job nodes matching each batch job according to the node identification information of the job nodes matching each batch job; the batch scheduling platform sends each batch job, the job information of each batch job, and the job parameters of each batch job to the matching job nodes, and instructs each job node to execute the matching batch job. Each job node receives the matching batch job, the job information of the matching batch job, and the job parameters of the matching batch job sent by the batch scheduling platform, and executes the matching batch job according to the job information and job parameters of the matching batch job.

[0057] Step 104: Receive the screenshot image corresponding to the batch job monitoring interface sent by the batch scheduling platform at regular intervals.

[0058] Wherein, the batch job monitoring interface includes a monitoring information display area and a color indication area corresponding to each batch job. The monitoring information display area is used to display the monitoring information corresponding to the batch job. The monitoring information includes job identification information and node identification information. The color indication area is used to indicate the execution status of the batch job.

[0059] Optionally, the batch job monitoring interface is a display interface in the batch scheduling platform for displaying the execution status of each batch job. The batch job monitoring interface includes a monitoring information display area and a color indication area corresponding to each batch job.

[0060] Optionally, the monitoring information display area corresponding to each batch job is an interface area in the batch job monitoring interface for displaying the monitoring information corresponding to each batch job. The monitoring information corresponding to each batch job includes the job identification information of each batch job and the node identification information of the job nodes matching each batch job.

[0061] Optionally, the color indication area corresponding to each batch job is an interface area for indicating the execution status of the batch job. The batch job monitoring interface updates the color of the color indication area corresponding to each batch job according to the execution status of each batch job periodically fed back by each job node. For each batch job, if the execution status of the batch job fed back by the job node matching the batch job is not executed, the batch scheduling platform updates the color of the color indication area corresponding to the batch job to the first preset color; if the execution status of the batch job fed back by the job node matching the batch job is successfully executed, the batch scheduling platform updates the color of the color indication area corresponding to the batch job to the second preset color; if the execution status of the batch job fed back by the job node matching the batch job is failed to execute, the batch scheduling platform updates the color of the color indication area corresponding to the batch job to the third preset color.

[0062] Optionally, the first preset color, the second preset color, and the third preset color can be set according to business requirements. Exemplarily, the first preset color is white, the second preset color is blue, and the third preset color is red.

[0063] Optionally, receiving the screenshot image corresponding to the batch job monitoring interface sent by the batch scheduling platform periodically includes: receiving the screenshot image corresponding to the batch job monitoring interface sent by the batch scheduling platform at a preset time interval. The batch scheduling platform takes a screenshot of the batch job monitoring interface at a preset time interval to obtain a screenshot image corresponding to the batch job monitoring interface, and sends the screenshot image corresponding to the batch job monitoring interface to the mobile terminal. The preset time interval can be set according to business requirements. Exemplarily, the preset time interval is 10 minutes.

[0064] Step 105: Perform image recognition on the screenshot image to obtain the monitoring information in the monitoring information display area corresponding to each batch job and the color of the color indication area corresponding to each batch job.

[0065] Optionally, the image recognition of the screenshot image to obtain the monitoring information in the monitoring information display area corresponding to each batch job and the color of the color indication area corresponding to each batch job includes: performing text information recognition on the monitoring information display area corresponding to each batch job in the screenshot image to obtain the text information included in the monitoring information display area corresponding to each batch job in the screenshot image, and determining the text information as the monitoring information in the monitoring information display area corresponding to each batch job; using a preset color recognition model to perform color recognition on the color indication area corresponding to each batch job to obtain the color of the color indication area corresponding to each batch job; storing the monitoring information in the monitoring information display area corresponding to each batch job and the color of the color indication area corresponding to each batch job.

[0066] Optionally, the preset color recognition model is a model pre-trained for recognizing the color of a specified area in an image.

[0067] Step 106: Determine the execution status of each batch job according to the color of the color indication area corresponding to each batch job. If there is a target batch job with an execution status of execution failure, provide the alarm prompt information corresponding to the target batch job to the user.

[0068] Optionally, the determining the execution status of each batch job according to the color of the color indication area corresponding to each batch job includes: performing the following operations for each batch job: if the color of the color indication area corresponding to the batch job is the first preset color, determine that the execution status of the batch job is not executed; if the color of the color indication area corresponding to the batch job is the second preset color, determine that the execution status of the batch job is executed successfully; if the color of the color indication area corresponding to the batch job is the third preset color, determine that the execution status of the batch job is executed failure.

[0069] Thus, the mobile terminal determines the execution status of each batch job according to the color of the color indication area corresponding to each batch job. If there is a target batch job with an execution status of execution failure among each batch job, the mobile terminal provides the alarm prompt information corresponding to the target batch job to the user. The alarm prompt information corresponding to the target batch job is information for prompting that the execution status of the target batch job is execution failure and the execution process of the target batch job is abnormal.

[0070] Optionally, providing the alarm prompt information corresponding to the target batch job to the user includes: the mobile terminal provides the alarm prompt information corresponding to the target batch job to the user through a prompt display page. The prompt display page is a pop-up interface for displaying the alarm prompt information corresponding to the target batch job.

[0071] Optionally, providing the alarm prompt information corresponding to the target batch job to the user includes: the mobile terminal provides the alarm prompt information corresponding to the target batch job to the user by means of a text message.

[0072] Optionally, after providing the alarm prompt information corresponding to the target batch job to the user, it further includes: obtaining, through the batch job display interface, a restart instruction input by the user corresponding to the target batch job; sending the restart instruction to the batch scheduling platform so that the batch scheduling platform, according to the restart instruction, instructs the job node matching the target batch job to re-execute the target batch job.

[0073] Optionally, the restart instruction corresponding to the target batch job is an instruction for instructing the job node matching the target batch job to re-execute the target batch job. A restart control corresponding to the target batch job is provided on the batch job display interface. The user inputs a restart instruction corresponding to the target batch job by clicking the restart control corresponding to the target batch job. The mobile terminal sends the restart instruction input by the user corresponding to the target batch job to the batch scheduling platform. The batch scheduling platform forwards the restart instruction to the job node matching the target batch job, instructing the job node matching the target batch job to re-execute the target batch job.

[0074] Optionally, after providing the alarm prompt information corresponding to the target batch job to the user, it further includes: obtaining, through the batch job display interface, a skip instruction input by the user corresponding to the target batch job; sending the skip instruction to the batch scheduling platform so that the batch scheduling platform, according to the skip instruction, instructs the job node matching the target batch job to skip the target batch job and no longer execute the target batch job.

[0075] Optionally, the skip instruction corresponding to the target batch job is an instruction for indicating a job node matched by the target batch job to skip the target batch job and no longer execute the target batch job. A skip control corresponding to the target batch job is provided on the batch job display interface. The user inputs a skip instruction corresponding to the target batch job by clicking the skip control corresponding to the target batch job. The mobile terminal sends the skip instruction corresponding to the target batch job input by the user to the batch scheduling platform. The batch scheduling platform forwards the skip instruction to the job node matched by the target batch job, instructing the job node matched by the target batch job to skip the target batch job and no longer execute the target batch job.

[0076] The technical solution of the embodiment of the present invention obtains the job information of each batch job and the node information of each job node from the batch scheduling platform, and provides the job information and node information to the user through the batch job display interface; then, through the batch job display interface, obtains the node identification information of the job nodes matching each batch job and the job parameters of each batch job input by the user; sends the node identification information and job parameters to the batch scheduling platform, so that the batch scheduling platform sends each batch job, the job information and job parameters of each batch job to the matching job nodes according to the node identification information and the job parameters, and instructs each job node to execute the matching batch job; then receives the screenshot image corresponding to the batch job monitoring interface regularly sent by the batch scheduling platform; the batch job monitoring interface includes a monitoring information display area and a color indication area corresponding to each batch job, the monitoring information display area is used to display the monitoring information corresponding to the batch job, the monitoring information includes job identification information and node identification information, and the color indication area is used to indicate the execution status of the batch job; performs image recognition on the screenshot image to obtain the monitoring information in the monitoring information display area corresponding to each batch job and the color of the color indication area corresponding to each batch job; determines the execution status of each batch job according to the color of the color indication area corresponding to each batch job. If there is a target batch job with an execution status of execution failure, provides the alarm prompt information corresponding to the target batch job to the user, solving the problem that in the monitoring scheme of batch jobs in the related art, it is necessary for staff to pay attention to the relevant information of the batch job process at any time to confirm the abnormality in the batch job process in time and process it, which is time-consuming and laborious and has high requirements for staff. It achieves the beneficial effect that after allocating each batch job to the matching job nodes according to the user's needs, automatically obtains the information related to the execution process of each batch job, and according to the obtained information, automatically detects whether there is an abnormal situation of execution failure in the execution process of each batch job, and provides the detected abnormal situation to the user, so that the user can conveniently remotely control the execution process of each batch job based on the mobile terminal, without having to keep checking the information related to the execution process of each batch job, and can timely learn the abnormal situation in the execution process of each batch job and process the abnormal situation.

[0077] Embodiment 2

[0078] Figure 2 It is a flowchart of a method for monitoring batch jobs provided by Embodiment 2 of the present invention. The embodiments of the present invention can be combined with each optional solution in the above one or more embodiments. As Figure 2 shown, the method includes:

[0079] Step 201: Obtain the job information of each batch job and the node information of each job node from the batch scheduling platform, and provide the job information and the node information to the user through the batch job display interface.

[0080] Step 202: Through the batch job display interface, obtain the node identification information of the job nodes matching each batch job and the job parameters of each batch job input by the user.

[0081] Step 203: Send the node identification information and the job parameters to the batch scheduling platform, so that the batch scheduling platform sends each batch job, the job information and job parameters of each batch job to the matching job nodes according to the node identification information, and instructs each job node to execute the matching batch job.

[0082] Step 204: Receive the screenshot images corresponding to the batch job monitoring interface regularly sent by the batch scheduling platform.

[0083] Among them, the batch job monitoring interface includes a monitoring information display area and a color indication area corresponding to each batch job. The monitoring information display area is used to display the monitoring information corresponding to the batch job. The monitoring information includes job identification information and node identification information. The color indication area is used to indicate the execution status of the batch job.

[0084] Step 205: Perform image recognition on the screenshot images to obtain the monitoring information in the monitoring information display area corresponding to each batch job and the color of the color indication area corresponding to each batch job.

[0085] Step 206: Determine the execution status of each batch job according to the color of the color indication area corresponding to each batch job. If there is a target batch job with an execution status of execution failure, provide the alarm prompt information corresponding to the target batch job to the user.

[0086] Step 207: Through the batch job display interface, obtain the restart instruction input by the user corresponding to the target batch job.

[0087] Optionally, the restart instruction corresponding to the target batch job is an instruction used to instruct the job node matching the target batch job to re-execute the target batch job. A restart control corresponding to the target batch job is provided on the batch job display interface. The user inputs the restart instruction corresponding to the target batch job by clicking the restart control corresponding to the target batch job.

[0088] Step 208: Send the restart instruction to the batch scheduling platform, so that the batch scheduling platform, according to the restart instruction, instructs the job nodes matching the target batch job to re-execute the target batch job.

[0089] Optionally, the mobile terminal sends the restart instruction corresponding to the target batch job input by the user to the batch scheduling platform. The batch scheduling platform forwards the restart instruction to the job nodes matching the target batch job, instructing the job nodes matching the target batch job to re-execute the target batch job.

[0090] The technical solution of the embodiment of the present invention has the beneficial effects that after allocating each batch job to the matching job nodes according to user requirements, it automatically obtains information related to the execution process of each batch job, and according to the obtained information, automatically detects whether there are abnormal situations of execution failure during the execution process of each batch job, provides the detected abnormal situations to the user, and re-executes the batch jobs with execution failure according to the user's restart instruction, so that the user can conveniently remotely control the execution process of each batch job based on the mobile terminal, without having to keep checking the information related to the execution process of each batch job, and can timely learn about the abnormal situations during the execution process of each batch job and handle the abnormal situations.

[0091] Embodiment III

[0092] Figure 3 It is a schematic structural diagram of a monitoring device for batch jobs provided in Embodiment III of the present invention. The device can be configured in a mobile terminal. As Figure 3 shown, the device includes: an information providing module 301, an information obtaining module 302, an information sending module 303, a picture receiving module 304, a picture recognition module 305, and an alarm information providing module 306.

[0093] Among them, an information providing module 301 is configured to obtain job information of each batch job and node information of each job node from a batch scheduling platform, and provide the job information and the node information to a user through a batch job display interface; an information obtaining module 302 is configured to obtain node identification information of job nodes matching each batch job and job parameters of each batch job input by the user through the batch job display interface; an information sending module 303 is configured to send the node identification information and the job parameters to the batch scheduling platform, so that the batch scheduling platform sends each batch job, job information and job parameters of each batch job to the matching job nodes according to the node identification information, and instructs each job node to execute the matching batch job; a picture receiving module 304 is configured to receive a screenshot picture corresponding to a batch job monitoring interface regularly sent by the batch scheduling platform; wherein, the batch job monitoring interface includes a monitoring information display area and a color indication area corresponding to each batch job, the monitoring information display area is used to display monitoring information corresponding to the batch job, the monitoring information includes job identification information and node identification information, and the color indication area is used to indicate the execution status of the batch job; a picture recognition module 305 is configured to perform image recognition on the screenshot picture to obtain the monitoring information in the monitoring information display area corresponding to each batch job and the color of the color indication area corresponding to each batch job; an alarm information providing module 306 is configured to determine the execution status of each batch job according to the color of the color indication area corresponding to each batch job, and if there is a target batch job with an execution status of execution failure, provide the alarm prompt information corresponding to the target batch job to the user.

[0094] The technical solution of the embodiment of the present invention obtains the job information of each batch job and the node information of each job node from the batch scheduling platform, and provides the job information and node information to the user through the batch job display interface; then, through the batch job display interface, obtains the node identification information of the job nodes matching each batch job and the job parameters of each batch job input by the user; sends the node identification information and job parameters to the batch scheduling platform, so that the batch scheduling platform sends each batch job, the job information and job parameters of each batch job to the matching job nodes according to the node identification information and the job parameters, and instructs each job node to execute the matching batch job; then receives the screenshot images corresponding to the batch job monitoring interface regularly sent by the batch scheduling platform; the batch job monitoring interface includes a monitoring information display area and a color indication area corresponding to each batch job, the monitoring information display area is used to display the monitoring information corresponding to the batch job, the monitoring information includes job identification information and node identification information, and the color indication area is used to indicate the execution status of the batch job; performs image recognition on the screenshot images to obtain the monitoring information in the monitoring information display area corresponding to each batch job and the color of the color indication area corresponding to each batch job; determines the execution status of each batch job according to the color of the color indication area corresponding to each batch job, and if there is a target batch job with an execution status of execution failure, provides the alarm prompt information corresponding to the target batch job to the user, solving the problem that in the monitoring solution of batch jobs in the related art, it is necessary for staff to pay attention to the relevant information of the batch job process at any time to confirm the abnormalities in the batch job process in time and process them, which is time-consuming and laborious and requires high requirements for staff. It has achieved the beneficial effect that after allocating each batch job to the matching job nodes according to the user's needs, automatically obtains the information related to the execution process of each batch job, and according to the obtained information, automatically detects whether there are abnormal situations of execution failure in the execution process of each batch job, and provides the detected abnormal situations to the user, so that the user can conveniently remotely control the execution process of each batch job based on the mobile terminal, without having to keep viewing the information related to the execution process of each batch job, and can timely know the abnormalities in the execution process of each batch job and process the abnormal situations.

[0095] In an alternative embodiment of the embodiment of the present invention, optionally, the monitoring device for batch jobs further includes: a restart instruction acquisition module, configured to obtain, through the batch job display interface, the restart instruction input by the user corresponding to the target batch job; a restart instruction sending module, configured to send the restart instruction to the batch scheduling platform, so that the batch scheduling platform instructs the job node matching the target batch job to re-execute the target batch job according to the restart instruction.

[0096] In an alternative embodiment of the embodiment of the present invention, optionally, the batch job display interface includes a job information display area and a node information display area; when the information providing module 301 performs the operation of providing the job information and the node information to the user through the batch job display interface, it is specifically configured to: in the job information display area, display the job information of each batch job; wherein, the job information of each batch job includes: the job identification information, job name, service category, and / or job data of each batch job; in the node information display area, display the node information of each job node; wherein, the node information of each job node includes: the node identification information, service category, and / or node status of each job node.

[0097] In an alternative embodiment of the embodiment of the present invention, optionally, the batch job display interface includes a node information input area and a parameter input area corresponding to each batch job; the information acquisition module 302 is specifically configured to: acquire the node identification information of the job node matching each batch job input by the user in the node information input area corresponding to each batch job; acquire the job parameters of each batch job input by the user in the parameter input area corresponding to each batch job; wherein, the job parameters of each batch job include the execution time of each batch job.

[0098] In an alternative embodiment of the embodiment of the present invention, optionally, the picture receiving module 304 is specifically configured to: receive the screenshot picture corresponding to the batch job monitoring interface regularly sent by the batch scheduling platform at a preset time interval.

[0099] In an alternative embodiment of the embodiment of the present invention, optionally, the picture recognition module 305 is specifically configured to: perform text information recognition on the monitoring information display area corresponding to each batch job in the screenshot picture to obtain the text information included in the monitoring information display area corresponding to each batch job in the screenshot picture, and determine the text information as the monitoring information in the monitoring information display area corresponding to each batch job; use a preset color recognition model to perform color recognition on the color indication area corresponding to each batch job to obtain the color of the color indication area corresponding to each batch job; store the monitoring information in the monitoring information display area corresponding to each batch job and the color of the color indication area corresponding to each batch job.

[0100] In an alternative embodiment of the embodiment of the present invention, optionally, when the alarm information providing module 306 performs the operation of determining the execution status of each batch job according to the color of the color indication area corresponding to each batch job, it specifically is used for: performing the following operations for each batch job: if the color of the color indication area corresponding to the batch job is the first preset color, determining that the execution status of the batch job is not executed; if the color of the color indication area corresponding to the batch job is the second preset color, determining that the execution status of the batch job is successfully executed; if the color of the color indication area corresponding to the batch job is the third preset color, determining that the execution status of the batch job is failed to be executed.

[0101] Regarding the device in the above embodiment, the specific manners in which each module performs operations have been described in detail in the embodiment related to the method, and will not be elaborated herein.

[0102] The above data acquisition device can execute the monitoring method for batch jobs provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the monitoring method for batch jobs.

[0103] Embodiment 4

[0104] Figure 4 FIG. shows a schematic structural diagram of a mobile terminal 10 that can be used to implement the monitoring method for batch jobs in the embodiment of the present invention. The mobile terminal is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The mobile terminal can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device (such as a helmet, glasses, a watch, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0105] As Figure 4As shown, the mobile terminal 10 includes at least one processor 11 and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. The memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program built from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the mobile terminal 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0106] Multiple components in the mobile terminal 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the mobile terminal 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0107] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the monitoring method for batch jobs.

[0108] In some embodiments, the monitoring method for batch jobs can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the mobile terminal 10 via the ROM 12 and / or the communication unit 19. When the computer program is built into the RAM 13 and executed by the processor 11, one or more steps of the monitoring method for batch jobs described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the monitoring method for batch jobs by any other appropriate means (e.g., by means of firmware).

[0109] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems-on-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.

[0110] The computer programs for implementing the monitoring method of the batch jobs of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, a special purpose computer, or other programmable data processing device, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart(s) and / or block diagram(s) to be implemented. The computer programs can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

[0111] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0112] To provide interaction with a user, the systems and techniques described herein can be implemented on a mobile terminal that has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the mobile terminal. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0113] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.

[0114] The computing system can include a client and a server. The client and the server are generally far apart from each other and typically interact through a communication network. The relationship between the client and the server is created by computer programs that run on the respective computers and have a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0115] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and this is not limited herein.

[0116] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims

1. A monitoring method for batch jobs, characterized in that, Including: Obtaining the job information of each batch job and the node information of each job node from the batch scheduling platform, and providing the job information and the node information to the user through the batch job display interface; Obtaining, through the batch job display interface, the node identification information of the job nodes matching each batch job and the job parameters of each batch job input by the user; Sending the node identification information and the job parameters to the batch scheduling platform, so that the batch scheduling platform sends each batch job, the job information and job parameters of each batch job to the matching job nodes according to the node identification information, and instructing each job node to execute the matching batch job; Receiving the screenshot images corresponding to the batch job monitoring interface regularly sent by the batch scheduling platform; wherein, the batch job monitoring interface includes a monitoring information display area and a color indication area corresponding to each batch job, the monitoring information display area is used to display the monitoring information corresponding to the batch job, the monitoring information includes job identification information and node identification information, and the color indication area is used to indicate the execution status of the batch job; Performing image recognition on the screenshot images to obtain the monitoring information in the monitoring information display area corresponding to each batch job and the color of the color indication area corresponding to each batch job; Performing the following operations for each batch job: if the color of the color indication area corresponding to the batch job is the first preset color, determining that the execution status of the batch job is not executed; if the color of the color indication area corresponding to the batch job is the second preset color, determining that the execution status of the batch job is successfully executed; if the color of the color indication area corresponding to the batch job is the third preset color, determining that the execution status of the batch job is failed to execute, and if there is a target batch job with an execution status of failed to execute, providing the alarm prompt information corresponding to the target batch job to the user.

2. The method according to claim 1, wherein After providing the alarm prompt information corresponding to the target batch job to the user, it further includes: Obtaining, through the batch job display interface, the restart instruction input by the user corresponding to the target batch job; Sending the restart instruction to the batch scheduling platform, so that the batch scheduling platform instructs the job node matching the target batch job to re-execute the target batch job according to the restart instruction.

3. The method according to claim 1, wherein The batch job display interface includes a job information display area and a node information display area; The providing the job information and the node information to the user through the batch job display interface includes: Displaying the job information of each batch job in the job information display area; Wherein, the job information of each batch job includes: the job identification information, job name, business category and / or job data of each batch job; Displaying the node information of each job node in the node information display area; Wherein, the node information of each job node includes: the node identification information, business category and / or node status of each job node.

4. The method according to claim 1, characterized in that, The batch job display interface includes a node information input area and a parameter input area corresponding to each batch job; Obtaining, through the batch job display interface, the node identification information of the job nodes matching each batch job and the job parameters of each batch job input by the user, including: Obtaining the node identification information of the job nodes matching each batch job input by the user in the node information input area corresponding to each batch job; Obtaining the job parameters of each batch job input by the user in the parameter input area corresponding to each batch job; Among them, the job parameters of each batch job include the execution time of each batch job.

5. The method according to claim 1, characterized in that, Receiving the screenshot image corresponding to the batch job monitoring interface regularly sent by the batch scheduling platform, including: Receiving the screenshot image corresponding to the batch job monitoring interface regularly sent by the batch scheduling platform at a preset time interval.

6. The method according to claim 1, wherein Performing image recognition on the screenshot image to obtain the monitoring information in the monitoring information display area corresponding to each batch job and the color of the color indication area corresponding to each batch job, including: Performing text information recognition on the monitoring information display area corresponding to each batch job in the screenshot image to obtain the text information included in the monitoring information display area corresponding to each batch job in the screenshot image, and determining the text information as the monitoring information in the monitoring information display area corresponding to each batch job; Using a preset color recognition model to perform color recognition on the color indication area corresponding to each batch job to obtain the color of the color indication area corresponding to each batch job; Storing the monitoring information in the monitoring information display area corresponding to each batch job and the color of the color indication area corresponding to each batch job.

7. A monitoring device for batch jobs, characterized in that, Including: An information providing module, configured to obtain the job information of each batch job and the node information of each job node from the batch scheduling platform, and provide the job information and the node information to the user through the batch job display interface; An information obtaining module, configured to obtain, through the batch job display interface, the node identification information of the job nodes matching each batch job and the job parameters of each batch job input by the user; An information sending module, configured to send the node identification information and the job parameters to the batch scheduling platform, so that the batch scheduling platform sends each batch job, the job information and job parameters of each batch job to the matching job nodes according to the node identification information, and instructs each job node to execute the matching batch job; A picture receiving module, configured to receive the screenshot image corresponding to the batch job monitoring interface regularly sent by the batch scheduling platform; wherein, the batch job monitoring interface includes a monitoring information display area and a color indication area corresponding to each batch job, the monitoring information display area is used to display the monitoring information corresponding to the batch job, the monitoring information includes job identification information and node identification information, and the color indication area is used to indicate the execution status of the batch job; An image recognition module, configured to perform image recognition on the screenshot image to obtain the monitoring information in the monitoring information display area corresponding to each batch job, and the color of the color indication area corresponding to each batch job; An alarm information providing module, configured to perform the following operations for each batch job: if the color of the color indication area corresponding to the batch job is the first preset color, determine that the execution status of the batch job is not executed; if the color of the color indication area corresponding to the batch job is the second preset color, determine that the execution status of the batch job is successfully executed; if the color of the color indication area corresponding to the batch job is the third preset color, determine that the execution status of the batch job is failed. If there is a target batch job with an execution status of failed, provide the alarm prompt information corresponding to the target batch job to the user.

8. A mobile terminal, characterized in that, The mobile terminal includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the monitoring method of the batch job according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a processor to implement the monitoring method of the batch job according to any one of claims 1-6 when executed.

Citation Information

Patent Citations

  • Monitoring method and monitoring device for banking system batch operation, and electronic equipment

    CN113918413A