Job processing method and device, equipment, medium and program product

By receiving and processing the job metadata sent by the job information manager, generating scheduling instructions and determining the cause of failure in the job executor, and using the job dependency view for fault identification, the problem of low troubleshooting efficiency in batch job processing is solved and achieved. More efficient fault location and handling.

CN118550751APending Publication Date: 2024-08-27INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410697495.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In batch job processing, when determining the cause of a problem, it is necessary to troubleshoot each job, resulting in low troubleshooting efficiency.

Method used

By receiving jobs and job metadata sent by the job information manager, job scheduling instructions are generated, sent to the job executor, and the cause of failure is determined in the executor. The job dependency view is used to identify the fault and quickly determine the source of the fault.

Benefits of technology

It improves the efficiency and accuracy of job troubleshooting and reduces the need for separate troubleshooting of each job.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550751A
    Figure CN118550751A
Patent Text Reader

Abstract

The invention provides a job processing method which can be applied to the technical field of artificial intelligence. The method comprises the following steps: receiving a job sent by a job information manager and job metadata matched with the job; generating a job scheduling instruction based on the job metadata of the target sub-job in response to the job processing moment of the target sub-job, and sending the job scheduling instruction to a job executor for processing the target sub-job; when it is determined that a job feedback result about the target sub-job represents that execution of the target sub-job fails, a job execution failure reason is determined from a job executor, and the job feedback result is sent by the job executor; and under the condition that the fact that the operation execution failure reason represents that the operation result of the upstream sub-operation is not obtained from the operation result obtaining path is determined, performing fault identification in the operation dependency view based on the upstream operation executor of the upstream sub-operation and the operation executor of the target sub-operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology and the financial field, and specifically to a job processing method, device, equipment, medium and program product. Background Art

[0002] In order to improve job processing efficiency in related technologies, batch execution is usually used to execute batch jobs. Since there may be dependencies between jobs, if a problem occurs in one of the jobs, it is easy to cause multiple jobs to fail to execute normally. In order to determine the cause of the problem, it is usually necessary to troubleshoot each job that has a problem.

[0003] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following problems in the related art: when determining the cause of a problem in a batch job, it is necessary to troubleshoot each job that has a problem, which leads to low troubleshooting efficiency. Summary of the invention

[0004] In view of the above problems, the present disclosure provides a job processing method, apparatus, device, medium and program product.

[0005] According to one aspect of the present disclosure, there is provided a job processing method, comprising:

[0006] Receiving a job sent by a job information manager and job metadata matching the job, wherein the job includes a plurality of sub-jobs having a dependency relationship, and the job metadata includes a job processing time of each sub-job and a job result acquisition path of an upstream sub-job;

[0007] In response to the job processing time of the target sub-job having arrived, generating a job scheduling instruction based on the job metadata of the target sub-job, and sending the job scheduling instruction to a job executor for processing the target sub-job;

[0008] In a case where it is determined that the job feedback result about the target sub-job indicates that the target sub-job has failed to execute, determining a cause of the job execution failure from the job executor, wherein the job feedback result is sent by the job executor;

[0009] When it is determined that the cause of job execution failure is characterized by failure to obtain the job result of the upstream sub-job from the job result acquisition path, fault identification is performed in the job dependency view based on the upstream job executor of the upstream sub-job and the job executor of the target sub-job, wherein the job dependency view includes the link relationship between the upstream job executor of the upstream sub-job and the job executor of the target sub-job.

[0010] According to an embodiment of the present disclosure, the above-mentioned job processing method further includes: the job feedback result is generated by using the job executor of the target sub-job in the following manner:

[0011] When it is determined that the job execution time of the target sub-job has arrived based on the job scheduling instruction, based on the job result acquisition path and file identifier included in the job metadata of the target sub-job in the job scheduling instruction, an arrival detection is performed on the dependent file of the target sub-job to obtain a detection result, wherein the dependent file is obtained based on the job result of the upstream sub-job;

[0012] When the detection result indicates that the dependent file has not arrived, based on the current time and the waiting time threshold for the dependent file included in the file information of the dependent file, the dependent file is wait-verified to obtain a job feedback result.

[0013] According to an embodiment of the present disclosure, the job metadata of the target sub-job includes the job execution time of the target sub-job; based on the job metadata of the target sub-job, generating the job scheduling instruction includes:

[0014] Based on the waiting time threshold of the target sub-job and the job execution time, a waiting time threshold corresponding to the waiting time threshold is obtained;

[0015] A job scheduling instruction is generated based on a waiting time threshold corresponding to the waiting time threshold and job metadata of the target sub-job.

[0016] According to an embodiment of the present disclosure, the above method further includes:

[0017] Based on the historical execution record of the target sub-job, determine the historical waiting time of the historical dependent file corresponding to the target sub-job and the historical execution result of the target sub-job corresponding to the historical waiting time;

[0018] Based on the historical waiting time and historical execution results, a waiting time threshold is determined.

[0019] According to an embodiment of the present disclosure, based on the current time and the waiting time threshold for the dependent file included in the target dependent file information, the dependent file is wait-verified, and the job feedback result obtained includes:

[0020] The current time is compared with the waiting time threshold to obtain a comparison result; when the comparison result indicates that the current time is later than the waiting time threshold, a feedback result generation template corresponding to the target sub-job is generated to generate a job feedback result.

[0021] According to an embodiment of the present disclosure, the above method further includes:

[0022] Based on the job metadata of the multiple sub-jobs, determining the multiple job executors corresponding to the multiple sub-jobs one by one and the execution order between the multiple job executors;

[0023] A job dependency graph is generated based on the execution order of the multiple executors and the multiple job executors.

[0024] According to an embodiment of the present disclosure, the above method further includes:

[0025] In response to the multiple sub-jobs having been executed and completed, based on the job dependency view after the fault identification, determining a target job executor with a fault identification and a sub-job corresponding to the target job executor;

[0026] Based on the target job executor and the sub-job corresponding to the target job executor, an abnormality analysis report for the job is generated.

[0027] Another aspect of the present disclosure provides a job processing device, comprising:

[0028] A data determination module, configured to receive a job sent by a job information manager and job metadata matching the job, wherein the job includes a plurality of sub-jobs having a dependency relationship, and the job metadata includes a job processing time of each sub-job and a job result acquisition path of an upstream sub-job;

[0029] An instruction generation module, for generating a job scheduling instruction based on the job metadata of the target sub-job in response to the job processing time of the target sub-job having been reached, and sending the job scheduling instruction to the job executor for processing the target sub-job;

[0030] a cause determination module, configured to determine a cause of job execution failure from the job executor when it is determined that a job feedback result about the target sub-job indicates that the target sub-job has failed to execute, wherein the job feedback result is sent by the job executor;

[0031] A fault identification module is used to identify the fault in a job dependency view based on an upstream job executor of the upstream sub-job and a job executor of a target sub-job when it is determined that the cause of job execution failure is characterized by failure to obtain the job result of an upstream sub-job from a job result acquisition path, wherein the job dependency view includes a link relationship between the upstream job executor of the upstream sub-job and the job executor of the target sub-job.

[0032] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.

[0033] Another aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instruction stored thereon, which implements the steps of the above method when the computer program or instruction is executed by a processor.

[0034] Another aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the computer program or instructions are executed by a processor.

[0035] According to the job processing method disclosed in the present invention, a job scheduling instruction is generated based on the job metadata of the target sub-job when the job processing time of the target sub-job has been reached. Since the job metadata is sent in real time by the job information manager, the accuracy of the job scheduling instruction is guaranteed. The job scheduling instruction is sent to the job executor used to execute the target sub-job. When the job feedback result returned by the job executor indicates that the target sub-job has failed to execute, the reason for the execution failure is determined from the job executor. When it is determined that the reason for the execution failure is that the job result of the upstream sub-job was not obtained from the job result acquisition path, the job dependency view is fault-identified. Since the reason for the failure of the executor of the target sub-job is characterized by not obtaining the job result of the upstream sub-job from the job result acquisition path, the faults of the upstream job executor of the upstream sub-job and the job executor of the target sub-job are identified in the job dependency view, and the job dependency view includes the link relationship between the upstream job executor of the upstream sub-job and the job executor of the target sub-job, so that the source of the fault can be quickly determined through the job dependency view after the fault identification, which at least partially solves the technical problem of low efficiency of job fault troubleshooting and achieves the technical effect of improving the efficiency and accuracy of job fault troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0037] Figure 1 A diagram schematically illustrates an application scenario of a job processing method, apparatus, device, medium, and program product according to an embodiment of the present disclosure;

[0038] Figure 2 A flowchart schematically shows a method for processing a job according to an embodiment of the present disclosure;

[0039] Figure 3 A schematic diagram schematically shows the connection between platforms according to an embodiment of the present disclosure;

[0040] Figure 4 A schematic diagram schematically shows the interaction between a job information manager and a job scheduler according to an embodiment of the present disclosure;

[0041] Figure 5 A schematic diagram schematically shows the interaction between a job scheduler and a job executor according to an embodiment of the present disclosure;

[0042] Figure 6 A schematic diagram schematically shows a job executor processing dependent files according to an embodiment of the present disclosure;

[0043] Figure 7 A schematic diagram schematically shows a job dependency view according to an embodiment of the present disclosure;

[0044] Figure 8 A schematic diagram of a structure of a job processing device according to an embodiment of the present disclosure is shown; and

[0045] Fig. 9 A block diagram of an electronic device suitable for implementing a job processing method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0046] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0047] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0048] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0049] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0050] It should be noted that the job processing method and device disclosed in the present invention can be used in the fields of artificial intelligence technology and finance, and can also be used in any field other than the fields of artificial intelligence technology and finance. The application field of the job processing method and device disclosed in the present invention is not limited.

[0051] An embodiment of the present disclosure provides a job processing method, which receives a job sent by a job information manager and job metadata matching the job, wherein the job includes multiple sub-jobs with dependency relationships, and the job metadata includes the job processing time of each sub-job and the job result acquisition path of the upstream sub-job; in response to the job processing time of the target sub-job having been reached, a job scheduling instruction is generated based on the job metadata of the target sub-job, and the job scheduling instruction is sent to a job executor for processing the target sub-job; when it is determined that the job feedback result about the target sub-job indicates that the target sub-job has failed to execute, the cause of the job execution failure is determined from the job executor, wherein the job feedback result is sent by the job executor; when it is determined that the cause of the job execution failure indicates that the job result of the upstream sub-job is not obtained from the job result acquisition path, a fault is identified in a job dependency view based on the upstream job executor of the upstream sub-job and the job executor of the target sub-job, wherein the job dependency view includes the link relationship between the upstream job executor of the upstream sub-job and the job executor of the target sub-job.

[0052] Figure 1 The application scenario diagram of the job processing method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.

[0053] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a terminal device 101, a terminal device 102, a terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0054] The user can use the terminal device 101, the terminal device 102, and the terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, the terminal device 102, and the terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0055] Terminal device 101, terminal device 102, and terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0056] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.

[0057] It should be noted that the job processing method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the job processing device provided in the embodiment of the present disclosure can generally be set in the server 105. The job processing method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, the terminal device 102, the terminal device 103 and / or the server 105. Accordingly, the job processing device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, the terminal device 102, the terminal device 103 and / or the server 105.

[0058] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0059] The following will be based on Figure 1 The scene described by Figure 2 to Figure 7 The job processing method of the disclosed embodiment is described in detail.

[0060] Figure 2 The flowchart of the job processing method according to the embodiment of the present disclosure is schematically shown.

[0061] like Figure 2 As shown, the method includes operations S210 to S240.

[0062] In operation S210, a job sent by a job information manager and job metadata matching the job are received, wherein the job includes multiple sub-jobs with dependencies, and the job metadata includes the job processing time of each sub-job and the job result acquisition path of the upstream sub-job.

[0063] In operation S220 , in response to the job processing time of the target sub-job having been reached, a job scheduling instruction is generated based on the job metadata of the target sub-job, and the job scheduling instruction is sent to a job executor for processing the target sub-job.

[0064] In operation S230 , when it is determined that the job feedback result on the target sub-job indicates that the target sub-job has failed to execute, a job execution failure reason is determined from the job executor, wherein the job feedback result is sent by the job executor.

[0065] In operation S240, when it is determined that the cause of job execution failure is characterized by failure to obtain the job result of the upstream sub-job from the job result acquisition path, a fault is identified in the job dependency view based on the upstream job executor of the upstream sub-job and the job executor of the target sub-job, wherein the job dependency view includes the link relationship between the upstream job executor of the upstream sub-job and the job executor of the target sub-job.

[0066] According to the embodiments of the present disclosure, there is no limitation on the job information manager, and the job information manager can be used as a platform for uniformly managing job information, job metadata, etc. of a job, such as an application, a server, etc.

[0067] According to an embodiment of the present disclosure, job information, job metadata and other job-related information of a job in a job information manager can be written by a target object. By registering job-related information in the job information manager by the target object, unified entry of job-related information can be achieved.

[0068] According to the embodiments of the present disclosure, the target object is not limited and may be a user who has the authority to define job-related information.

[0069] According to the embodiments of the present disclosure, there is no limitation on the job, and it may be a task to be executed, such as a program code of the task.

[0070] According to the embodiments of the present disclosure, there is no limitation on job metadata, and job metadata may include data such as the job processing time of each sub-job in the job, the job processing time, the dependency relationship between sub-jobs, the job result acquisition path of the upstream sub-job, the file identifier of the dependent file, the job result storage path after the sub-job processing is completed, and the naming rules of the file obtained from the job result after the sub-job processing is completed.

[0071] According to an embodiment of the present disclosure, if the first sub-job needs to rely on the job processing result of the second sub-job during processing, then the second sub-job is the upstream sub-job of the first sub-job.

[0072] According to the embodiments of the present disclosure, there is no limitation on the execution subject of the job processing method, and it may be any application, server, etc., for example, a job scheduler for job scheduling.

[0073] According to an embodiment of the present disclosure, the job-related information can be sent to the job scheduler in the form of pipeline publishing. Specifically, the job-related information can be sent to the job scheduler by generating the job-related information into a table file.

[0074] According to an embodiment of the present disclosure, there is no limitation on the time of processing a job, and it may be the time of processing the target sub-job.

[0075] According to an embodiment of the present disclosure, there is no limitation on job scheduling instructions, which can enable a job executor for processing the target sub-job to process the target sub-job and indicate the job execution time of the target sub-job, the job result acquisition path of the upstream sub-job, etc.

[0076] According to an embodiment of the present disclosure, the job scheduling instruction for the target sub-job may include the job metadata of the target sub-job, the waiting time threshold for the dependent files of the target sub-job, and the like.

[0077] According to the embodiments of the present disclosure, there is no limitation on the job executor, which may be an application, a component in an application, or the like.

[0078] According to the embodiments of the present disclosure, there is no limitation on the job feedback result, which can be used to characterize the execution result of the job. The job feedback result can characterize whether the target sub-job is executed successfully or failed to execute.

[0079] According to an embodiment of the present disclosure, the job dependency view is not limited and may include dependency relationships between sub-jobs and link relationships between job executors for executing sub-jobs.

[0080] According to an embodiment of the present disclosure, by sending a job and job metadata matching the job through a job information manager, real-time transmission of the job and the job metadata can be achieved, so that the job and the job metadata received by the job information manager are both the latest.

[0081] According to an embodiment of the present disclosure, before the job processing time of the target sub-job is reached, the job metadata of the target sub-job may be cached and loaded first, thereby improving the acquisition rate of the job metadata.

[0082] According to an embodiment of the present disclosure, a job scheduling instruction can be obtained by respectively inputting the job metadata and the target sub-job into a preset job scheduling instruction generation template. The preset job scheduling instruction generation template may include relevant scheduling instructions to instruct the job executor used to process the target sub-job to process the target sub-job.

[0083] According to an embodiment of the present disclosure, the job metadata and the target sub-job can be spliced ​​together to directly generate a job scheduling instruction. Since the target sub-job can be a related program code, the job executor for processing the target sub-job can process it by identifying the target sub-job after receiving the job scheduling instruction.

[0084] According to an embodiment of the present disclosure, in response to receiving a job feedback result of a target sub-job, if it is determined that the job feedback result of the target sub-job indicates that the target sub-job has failed to execute, a failure cause inquiry message may be sent to the job executor.

[0085] According to an embodiment of the present disclosure, and when it is determined that the cause of job execution failure is characterized by failure to obtain the job result of the upstream sub-job from the job result acquisition path, the upstream job executor of the upstream sub-job and the job executor of the target sub-job are fault-identified in the job dependency view, so that the sub-job that failed to execute in the job and its failure cause can be quickly determined.

[0086] According to an embodiment of the present disclosure, the job executor of the target sub-job determines whether the cause of execution failure is that the job result of the upstream sub-job was not obtained from the job result acquisition path by determining whether there is a dependent file in the job result acquisition path of the upstream sub-job or determining whether the current time is later than the waiting time threshold.

[0087] According to an embodiment of the present disclosure, if the reason for the execution failure of each sub-job in the job is that the job result of the upstream sub-job is not obtained from the job result acquisition path, a fault will be identified in the job dependency view based on the upstream job executor of the upstream sub-job and the job executor of the sub-job. Therefore, the job dependency view after fault identification obtained after each sub-job in the job is executed and completed has the fault identification of all sub-jobs whose execution failure reason is that the job result of the upstream sub-job is not obtained from the job result acquisition path.

[0088] According to the job processing method disclosed in the present invention, a job scheduling instruction is generated based on the job metadata of the target sub-job when the job processing time of the target sub-job has been reached. Since the job metadata is sent in real time by the job information manager, the accuracy of the job scheduling instruction is guaranteed. The job scheduling instruction is sent to the job executor used to execute the target sub-job. When the job feedback result returned by the job executor indicates that the target sub-job has failed to execute, the reason for the execution failure is determined from the job executor. When it is determined that the reason for the execution failure is that the job result of the upstream sub-job was not obtained from the job result acquisition path, the job dependency view is fault-identified. Since the reason for the failure of the executor of the target sub-job is characterized by not obtaining the job result of the upstream sub-job from the job result acquisition path, the faults of the upstream job executor of the upstream sub-job and the job executor of the target sub-job are identified in the job dependency view, and the job dependency view includes the link relationship between the upstream job executor of the upstream sub-job and the job executor of the target sub-job, so that the source of the fault can be quickly determined through the job dependency view after the fault identification, which at least partially solves the technical problem of low efficiency of job fault troubleshooting and achieves the technical effect of improving the efficiency and accuracy of job fault troubleshooting.

[0089] According to an embodiment of the present disclosure, the job feedback result is generated by using the job executor of the target sub-job in the following manner.

[0090] When it is determined that the job execution time of the target sub-job has arrived based on the job scheduling instruction, the arrival of the dependent files of the target sub-job is detected based on the job result acquisition path and file identifier included in the job metadata of the target sub-job in the job scheduling instruction, and the detection result is obtained, wherein the dependent files are obtained based on the job result of the upstream sub-job; when the detection result indicates that the dependent files have not arrived, based on the waiting time threshold for the dependent files included in the current time and the file information of the dependent files, the dependent files are wait-verified to obtain the job feedback result.

[0091] According to an embodiment of the present disclosure, the file identifier may be a file identifier of a dependent file.

[0092] According to the embodiments of the present disclosure, there is no limitation on the number of waiting time thresholds, which may be multiple or one.

[0093] According to an embodiment of the present disclosure, the file identifier included in the job metadata may also include format rules for batches, sessions, date occupancy symbols, and the like.

[0094] According to an embodiment of the present disclosure, the waiting time threshold may represent the latest time for waiting for the dependent file.

[0095] According to an embodiment of the present disclosure, the file information of the dependent file may include a file identifier and a waiting time threshold corresponding to the file identifier.

[0096] According to an embodiment of the present disclosure, the job result of the upstream sub-job may include data representing the result, such as dependent files, and therefore, the dependent files may be obtained from the job result.

[0097] According to an embodiment of the present disclosure, the dependent file may be data required when the target sub-job is executed.

[0098] According to an embodiment of the present disclosure, the job executor determines the job execution time of the target sub-job through the job scheduling instruction, and starts to execute the target sub-job when the job execution time of the target sub-job has arrived.

[0099] According to an embodiment of the present disclosure, the job result acquisition path of the upstream job can be used to continuously check whether there is a file identifier identical to the file identifier in the job result acquisition path. If so, it is determined that the dependent file of the target sub-job has arrived; if not, it is determined that the dependent file of the target sub-job has not yet arrived, thereby obtaining a detection result.

[0100] According to an embodiment of the present disclosure, when waiting for verification of dependent files, if the current time is later than the waiting time threshold, it is determined that the job feedback result is job execution failure.

[0101] According to an embodiment of the present disclosure, if the current time is earlier than the waiting time threshold, the arrival detection and waiting verification of the dependent files can be continuously repeated according to a preset time interval until the current time is later than or equal to the waiting time threshold.

[0102] According to an embodiment of the present disclosure, the arrival detection and waiting verification of dependent files can be made into a fixed software development kit (Software Development Kit, SDK), so that each time the arrival detection and waiting verification operations are performed on the dependent files, the arrival detection and waiting verification of the dependent files can be performed by calling the software development kit.

[0103] According to an embodiment of the present disclosure, if the dependent file has arrived on time, the dependent file can be parsed and replaced with batch, session, date occupancy symbol, etc. according to the job metadata of the target sub-job.

[0104] According to an embodiment of the present disclosure, by continuously performing arrival detection and waiting verification on dependent files before reaching the waiting time threshold, obtaining job feedback results, and feeding back the job feedback results to the job scheduler, timely marking of sub-jobs that failed to execute can be achieved, avoiding the situation where the overall job is not completed on time and the cause of failure needs to be traversed separately on multiple sub-jobs to be determined.

[0105] According to an embodiment of the present disclosure, after comparing the current time with the waiting time threshold, if the current time is greater than or equal to the waiting time threshold, it is determined that the job feedback result indicates that the target sub-job execution has failed.

[0106] According to an embodiment of the present disclosure, the job metadata of the target sub-job includes the job execution time of the target sub-job; based on the job metadata of the target sub-job, generating a job scheduling instruction may include the following operations.

[0107] Based on the waiting time threshold of the target sub-job and the job execution time, a waiting time threshold corresponding to the waiting time threshold is obtained; based on the waiting time threshold corresponding to the waiting time threshold and the job metadata of the target sub-job, a job scheduling instruction is generated.

[0108] According to an embodiment of the present disclosure, the waiting time threshold may be a maximum waiting time for the dependent files of the target sub-job.

[0109] According to an embodiment of the present disclosure, there is a one-to-one correspondence between the waiting time threshold and the waiting time threshold. If there are multiple waiting time thresholds, there are also multiple waiting time thresholds.

[0110] According to an embodiment of the present disclosure, there is no limitation on the method for obtaining the waiting time threshold, and the waiting time threshold may be obtained according to the historical execution record of the target sub-job.

[0111] According to an embodiment of the present disclosure, in some embodiments, the waiting time threshold may also be sent by a job information manager as a type of job metadata of a target sub-job.

[0112] According to an embodiment of the present disclosure, when the waiting time threshold for the dependent files of the target sub-job has been obtained, the job execution time and the waiting time threshold need to be accumulated to obtain the waiting time threshold for the dependent files of the target sub-job, for example: the job execution time of sub-job A starts at 01:00, and the waiting time threshold is 30 minutes. By accumulating the job execution time and the waiting time threshold, the waiting time threshold can be determined to be 01:30:00.

[0113] According to the embodiments of the present disclosure, in some embodiments, alarm rules can be set for more important sub-jobs, such as: when the arrival time of the dependent file of the target sub-job is later than the first waiting time threshold in the waiting time threshold, the processing of the target sub-job can be continued, but an alarm message is sent to prompt the situation. Alternatively, when the arrival time of the dependent file of the target sub-job is later than the second waiting time threshold in the waiting time threshold, the processing of the target sub-job can be suspended, and an alarm message can be generated, and the alarm message can be sent to relevant business personnel for manual investigation by the relevant business personnel, wherein the first waiting time threshold is less than the second waiting time threshold.

[0114] According to an embodiment of the present disclosure, a job scheduling instruction may be generated by splicing or inputting the waiting time threshold, the job metadata of the target sub-job, and the target sub-job into a preset job scheduling instruction generation template.

[0115] According to an embodiment of the present disclosure, the above-mentioned job processing method may further include the following operations.

[0116] Based on the historical execution records of the target sub-job, determine the historical waiting time of the historical dependent files corresponding to the target sub-job and the historical execution results of the target sub-job corresponding to the historical waiting time; based on the historical waiting time and the historical execution results, determine the waiting time threshold.

[0117] According to an embodiment of the present disclosure, when the waiting time threshold is obtained based on the historical execution record of the target sub-job, the historical waiting time and historical execution results of the historical dependent files corresponding to the target sub-job can be determined through the historical execution record of the target sub-job.

[0118] According to an embodiment of the present disclosure, in some implementations, historical waiting times can be clustered according to historical execution results, and the first historical waiting times corresponding to the historical execution results characterizing successful job execution can be classified into one category, and the second historical waiting times corresponding to the historical execution results characterizing failed job execution can be classified into another category. The longest target historical waiting time can be determined from the first historical waiting times, and the target historical waiting time and the preset time extension parameter can be summed to obtain a waiting time threshold.

[0119] According to an embodiment of the present disclosure, the preset time extension parameter is a parameter used to extend the target historical waiting time, and the preset time extension parameter can be obtained through experience or through multiple experiments.

[0120] According to an embodiment of the present disclosure, in some implementations, if the target sub-job has no historical execution record, a preset value may be used as the waiting time threshold.

[0121] According to an embodiment of the present disclosure, the waiting time threshold of the target sub-job can be determined through the historical execution record of the target sub-job, so that the waiting time threshold can be updated and the appropriate waiting time threshold can be determined.

[0122] According to an embodiment of the present disclosure, based on the current time and the waiting time threshold for the dependent file included in the target dependent file information, waiting verification is performed on the dependent file, and obtaining the job feedback result may include the following operations.

[0123] The current time is compared with the waiting time threshold to obtain a comparison result; when the comparison result indicates that the current time is later than the waiting time threshold, a feedback result generation template corresponding to the target sub-job is generated to generate a job feedback result.

[0124] According to an embodiment of the present disclosure, the feedback result generation template may include a field indicating whether the job is executed successfully or failed.

[0125] According to an embodiment of the present disclosure, by generating a feedback result template corresponding to the target sub-job, the sender of the feedback result generation template can be quickly determined, so that the scheduling controller can identify the feedback result more efficiently. At the same time, the information can be better integrated through the feedback result generation template.

[0126] According to an embodiment of the present disclosure, the above-mentioned job processing method may further include the following operations.

[0127] Based on the job metadata of multiple sub-jobs, determine the execution order between multiple job executors corresponding to the multiple sub-jobs and the multiple job executors; based on the execution order between the multiple job executors and the multiple job executors, generate a job dependency graph.

[0128] According to an embodiment of the present disclosure, whether there is a dependency relationship between the sub-jobs is determined through the job metadata of the multiple sub-jobs, thereby determining the execution order between the job executors of the multiple sub-jobs.

[0129] According to an embodiment of the present disclosure, a plurality of job executors are arranged in an execution order and connected, and the jobs executed by the job executors are displayed on each job executor, thereby obtaining a job dependency graph.

[0130] According to an embodiment of the present disclosure, the above-mentioned job processing method may further include the following operations.

[0131] In response to the completion of execution of multiple sub-jobs, a target job executor with a fault identification and the sub-jobs processed by the target job executor are determined based on the job dependency view after fault identification; and an exception analysis report for the job is generated based on the target job executor and the sub-jobs processed by the target job executor.

[0132] According to an embodiment of the present disclosure, when each sub-job has been executed to completion, the target sub-job executor with a fault identification and the sub-job processed by the target job executor can be determined from the job dependency view after the fault identification, and the root cause of the failure of each sub-job can be determined based on the execution order of the target sub-job executors and the executor status of each target sub-job executor, and an exception analysis report can be generated to facilitate sequential resolution.

[0133] Figure 3 The diagram schematically shows the connection between platforms according to an embodiment of the present disclosure.

[0134] like Figure 3 As shown, the job information manager can write the file transfer interface and file transfer information, jobs and job metadata by the first target object. The file transfer interface can be an interface for users to transfer files between job executors. The file transfer information may include the transfer protocol, the transfer methods of different types of files, etc.

[0135] According to an embodiment of the present disclosure, the job information manager may also support the job executor to register and maintain the file transfer directory and file name, thereby realizing unified maintenance and management of application batch file information.

[0136] According to an embodiment of the present disclosure, the first target object may be a user who has the authority to use the job information manager, such as a developer.

[0137] According to an embodiment of the present disclosure, the job scheduler can manage job information, job scheduling, job metadata, etc. The job scheduling includes the number of executions and execution time of each sub-job, etc.

[0138] According to an embodiment of the present disclosure, the job scheduler may include functions such as management control and scheduling control.

[0139] According to an embodiment of the present disclosure, the job scheduler can output a job dependency view, and the second target object can determine the dependency view of each sub-job based on the job dependency view. The second target object can be an operation and maintenance personnel who determines the relationship between each sub-job based on the dependency view. The operation and maintenance efficiency of the operation and maintenance personnel can be improved through the dependency view.

[0140] According to an embodiment of the present disclosure, a job executor can implement arrival detection of dependent files of a target sub-job based on the job result acquisition path and file identifier included in the job metadata of the target sub-job in the job scheduling instruction to obtain a detection result; when the detection result indicates that the dependent file has not arrived, based on the current time and the waiting time threshold for the dependent file included in the file information of the dependent file, a waiting verification is performed on the dependent file to obtain a job feedback result.

[0141] According to an embodiment of the present disclosure, the job executor may also issue an alarm when the current time exceeds the waiting time threshold.

[0142] Figure 4 The diagram schematically shows the interaction between a job information manager and a job scheduler according to an embodiment of the present disclosure.

[0143] like Figure 4 As shown, the job information manager can register job information and job metadata, and can also associate the job information with the job executor, such as associating the job executor a with the upstream sub-job.

[0144] According to an embodiment of the present disclosure, the job executor can also automatically register the information of executable sub-jobs and related files required when the sub-jobs are executed, such as: using job executor a to define the relevant information of the upstream sub-job, and using job executor b to define the relevant information of the target sub-job, and there is a dependency relationship between the upstream sub-job and the target sub-job.

[0145] According to an embodiment of the present disclosure, the file transfer interface and file transfer information of the job information manager can be defined respectively by the respective job executors, such as: job executor a and job executor b respectively register their own file transfer interface, file format requirements, transfer protocol requirements, etc.

[0146] According to an embodiment of the present disclosure, peer-to-peer file transfer information between jobs may also be registered.

[0147] According to an embodiment of the present disclosure, data transmission between a job information manager and a job scheduler can be performed by applying a pipeline, such as: the job information manager sends jobs and job metadata to the job scheduler by generating a table file for publishing, and the job scheduler receives jobs and job metadata through a publishing interface.

[0148] Figure 5 The diagram schematically shows the interaction between a job scheduler and a job executor according to an embodiment of the present disclosure.

[0149] like Figure 5As shown, the job scheduler can cache and load the job and the job metadata when there is a preset period of time before the job processing time arrives.

[0150] According to an embodiment of the present disclosure, when the job processing time of the target sub-job has arrived, the job scheduler can generate a job scheduling instruction based on the job metadata and send the job scheduling instruction to the job executor of the target sub-job.

[0151] According to an embodiment of the present disclosure, the job executor of the target sub-job periodically detects whether the dependent file generated by the upstream sub-job has arrived, obtains the detection result, and when the detection result indicates that the dependent file has not arrived, waits for verification of the dependent file, obtains the job feedback result, and sends the job feedback result to the job scheduler.

[0152] According to an embodiment of the present disclosure, when it is determined that the job feedback result about the target sub-job indicates that the target sub-job has failed to execute, the job scheduler sends a message for determining the cause of the job execution failure to the job executor.

[0153] According to an embodiment of the present disclosure, the job executor returns a message indicating the reason for the job execution failure to the job scheduler.

[0154] Figure 6 The diagram schematically shows a job executor processing dependent files according to an embodiment of the present disclosure.

[0155] like Figure 6 As shown, the target sub-job depends on the file generated after the upstream sub-job is processed. The file can be called the dependent file of the target sub-job. When the job execution time of the target sub-job has arrived, the job executor used to execute the target sub-job periodically determines whether the dependent file has arrived. If the dependent file has arrived, the target sub-job is processed using the dependent file. If the dependent file has not arrived yet, it is determined whether the current time is greater than or equal to the waiting time threshold.

[0156] According to an embodiment of the present disclosure, when the current time is greater than or equal to the waiting time threshold, the job feedback result can be obtained. When the current time is less than the waiting time threshold, it is possible to re-check whether the dependent file has arrived after a preset time period and repeat the subsequent operation.

[0157] Figure 7 A schematic diagram schematically shows a job dependency view according to an embodiment of the present disclosure;

[0158] like Figure 7 As shown, after fault identification is performed on the job dependency view 710 , a job dependency view 720 after fault identification can be obtained.

[0159] According to an embodiment of the present disclosure, the job dependency view 710 displays the dependency relationship between sub-jobs and the execution order between each job executor. Since the job executor can be a single application or a module, component, etc. in an application, the execution order between applications and the execution order within an application can be determined.

[0160] According to an embodiment of the present disclosure, for example: module A1 in application A is used to process sub-job a, module A2 is used to process sub-job b, sub-job b depends on the file generated by sub-job a, then the execution order of module A1 is earlier than that of module A2. Similarly, module B1 in application B is used to process sub-job c, module B2 is used to process sub-job d, sub-job d depends on the file generated by sub-job c, then the execution order of module B1 is earlier than that of module B2. Moreover, since the module in application B needs to use the file obtained after the module in application A processes the sub-job when processing the sub-job, the execution order of application A should be earlier than that of application B.

[0161] According to an embodiment of the present disclosure, after the execution of sub-job d, if it is found that the sub-job d is identified and the reason for the execution failure is that the job result of the upstream sub-job is not obtained from the job result acquisition path, then module B1, module B2, module A1, and module A2 are all marked as faults, thereby obtaining the job dependency view 720 after the row fault is marked.

[0162] According to the embodiments of the present disclosure, there is no limitation on the method of fault identification, and the identification form of each job executor may be changed, such as: changing the color displayed by each executor, adding special symbols, etc.

[0163] According to an embodiment of the present disclosure, Figure 7 The number and relationship of sub-jobs, and the number and relationship of job executors are only for illustration. Depending on the actual situation, there may be different numbers of sub-jobs and job executors, and sub-jobs or job executors with different relationships.

[0164] According to an embodiment of the present disclosure, after a sub-job is executed, the job results of the sub-job can be added to the job dependency view, so that the job execution result can be quickly determined as execution success or execution failure based on the job dependency view.

[0165] Based on the above-mentioned job processing method, the present disclosure also provides a job processing device. Figure 8 The device is described in detail.

[0166] Figure 8 The structure block diagram of a job processing device according to an embodiment of the present disclosure is schematically shown.

[0167] like Figure 8As shown, the job processing device 800 of this embodiment includes a data determination module 810 , an instruction generation module 820 , a cause determination module 830 and a fault identification module 840 .

[0168] The data determination module 810 is used to receive a job sent by the job information manager and job metadata matching the job, wherein the job includes multiple sub-jobs with dependencies, and the job metadata includes the job processing time of each sub-job and the job result acquisition path of the upstream sub-job.

[0169] The instruction generation module 820 is used to generate a job scheduling instruction based on the job metadata of the target sub-job in response to the job processing time of the target sub-job having arrived, and send the job scheduling instruction to the job executor for processing the target sub-job.

[0170] The cause determination module 830 is used to determine the cause of job execution failure from the job executor when it is determined that the job feedback result about the target sub-job indicates that the target sub-job has failed to execute, wherein the job feedback result is sent by the job executor.

[0171] The fault identification module 840 is used to identify the fault in the job dependency view based on the upstream job executor of the upstream sub-job and the job executor of the target sub-job when it is determined that the cause of the job execution failure is characterized by failure to obtain the job result of the upstream sub-job from the job result acquisition path, wherein the job dependency view includes the link relationship between the upstream job executor of the upstream sub-job and the job executor of the target sub-job.

[0172] According to an embodiment of the present disclosure, the job processing device 800 further includes: a detection module and a verification module.

[0173] A detection module, for, when it is determined based on the job scheduling instruction that the job execution time of the target sub-job has arrived, performing arrival detection on the dependent files of the target sub-job based on the job result acquisition path and file identifier included in the job metadata of the target sub-job in the job scheduling instruction, and obtaining a detection result, wherein the dependent files are obtained based on the job result of the upstream sub-job;

[0174] The verification module is used to perform waiting verification on the dependent file based on the current time and the waiting time threshold for the dependent file included in the file information of the dependent file to obtain the job feedback result when the detection result indicates that the dependent file has not arrived.

[0175] According to an embodiment of the present disclosure, the job metadata of the target sub-job includes the job execution time of the target sub-job; the instruction generation module includes: a first threshold determination sub-module and an instruction generation sub-module.

[0176] A first threshold determination submodule, configured to obtain a waiting time threshold corresponding to the waiting time threshold based on the waiting time threshold of the target subjob and the job execution time;

[0177] The instruction generation submodule is used to generate a job scheduling instruction based on a waiting time threshold corresponding to the waiting time threshold and job metadata of a target sub-job.

[0178] According to an embodiment of the present disclosure, the job processing device 800 further includes: a first determination module and a second threshold determination submodule.

[0179] The first determination module is used to determine, based on the historical execution record of the target sub-job, a historical waiting time of the historical dependent file corresponding to the target sub-job and a historical execution result of the target sub-job corresponding to the historical waiting time.

[0180] The second threshold determination submodule is used to determine a waiting time threshold based on historical waiting times and historical execution results.

[0181] According to an embodiment of the present disclosure, the verification module includes: a comparison submodule and a result generation submodule.

[0182] The comparison submodule is used to compare the current time with the waiting time threshold to obtain a comparison result.

[0183] The result generation submodule is used to generate a job feedback result based on a feedback result generation template corresponding to the target subjob when the comparison result indicates that the current time is later than the waiting time threshold.

[0184] According to an embodiment of the present disclosure, the job processing device 800 further includes: a second determination module and a relationship graph generation module.

[0185] The second determining module is used to determine, based on the job metadata of the multiple sub-jobs, a plurality of job executors corresponding to the multiple sub-jobs one by one and an execution order between the multiple job executors.

[0186] The relationship graph generation module is used to generate a job dependency graph based on the execution order between multiple executors and multiple job executors.

[0187] According to an embodiment of the present disclosure, the job processing device 800 further includes: a third determination module and a report generation module.

[0188] The third determination module is used to determine, in response to the completion of the execution of multiple sub-jobs, a target job executor with a fault identification and a sub-job corresponding to the target job executor based on the job dependency view after the fault identification.

[0189] The report generation module is used to generate an abnormality analysis report for a job based on a target job executor and a sub-job corresponding to the target job executor.

[0190] According to an embodiment of the present disclosure, any multiple modules of the data determination module 810, the instruction generation module 820, the cause determination module 830, and the fault identification module 840 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the data determination module 810, the instruction generation module 820, the cause determination module 830, and the fault identification module 840 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware or in a suitable combination of any of them. Alternatively, at least one of the data determination module 810 , the instruction generation module 820 , the cause determination module 830 , and the fault identification module 840 may be at least partially implemented as a computer program module, which may perform a corresponding function when executed.

[0191] Fig. 9 A block diagram of an electronic device suitable for implementing a job processing method according to an embodiment of the present disclosure is schematically shown.

[0192] like Fig. 9 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0193] In RAM 903, various programs and data required for the operation of electronic device 900 are stored. Processor 901, ROM 902 and RAM 903 are connected to each other via bus 904. Processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 902 and / or RAM 903. It should be noted that the program can also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.

[0194] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card, a modem, etc. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage portion 908 as needed.

[0195] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0196] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.

[0197] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the job processing method provided by the embodiment of the present disclosure.

[0198] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 901. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0199] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0200] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0201] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0202] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0203] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0204] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for processing a job, characterized in that: The method comprises: Receiving a job sent by a job information manager and job metadata matching the job, wherein the job includes a plurality of sub-jobs having a dependency relationship, and the job metadata includes a job processing time of each of the sub-jobs and a job result acquisition path of an upstream sub-job; In response to reaching a job processing time of a target sub-job, generating a job scheduling instruction based on job metadata of the target sub-job, and sending the job scheduling instruction to a job executor for processing the target sub-job; In a case where it is determined that the job feedback result about the target sub-job indicates that the target sub-job has failed to execute, determining a cause of the job execution failure from the job executor, wherein the job feedback result is sent by the job executor; When it is determined that the cause of the job execution failure is characterized by failure to obtain the job result of the upstream sub-job from the job result acquisition path, fault identification is performed in the job dependency view based on the upstream job executor of the upstream sub-job and the job executor of the target sub-job, wherein the job dependency view includes the link relationship between the upstream job executor of the upstream sub-job and the job executor of the target sub-job.

2. The method according to claim 1, characterized in that The method further comprises: The job feedback result is generated by the job executor of the target sub-job in the following manner: When it is determined that the job execution time of the target sub-job has arrived based on the job scheduling instruction, based on the job result acquisition path and file identifier included in the job metadata of the target sub-job in the job scheduling instruction, an arrival detection is performed on the dependent file of the target sub-job to obtain a detection result, wherein the dependent file is obtained based on the job result of the upstream sub-job; When the detection result indicates that the dependent file has not arrived, based on the current time and the waiting time threshold for the dependent file included in the file information of the dependent file, the dependent file is wait-verified to obtain the job feedback result.

3. The method according to claim 2, characterized in that The job metadata of the target sub-job includes the job execution time of the target sub-job; The generating of the job scheduling instruction based on the job metadata of the target sub-job includes: Based on the waiting time threshold of the target sub-job and the job execution time, obtaining a waiting time threshold corresponding to the waiting time threshold; The job scheduling instruction is generated based on the waiting time threshold corresponding to the waiting time threshold and the job metadata of the target sub-job.

4. The method according to claim 3, characterized in that The method further comprises: Based on the historical execution record of the target sub-job, determine the historical waiting time of the historical dependent file corresponding to the target sub-job and the historical execution result of the target sub-job corresponding to the historical waiting time; The waiting time threshold is determined based on the historical waiting time and the historical execution result.

5. The method according to claim 2, characterized in that: The waiting time threshold for the dependent file included in the target dependent file information and the waiting verification of the dependent file to obtain the job feedback result include: Compare the current time with the waiting time threshold to obtain a comparison result; When the comparison result indicates that the current time is later than the waiting time threshold, the job feedback result is generated based on a feedback result generation template corresponding to the target sub-job.

6. The method according to claim 1, characterized in that The method further comprises: Based on the job metadata of the multiple sub-jobs, determining a plurality of job executors corresponding to the multiple sub-jobs one by one and an execution order between the multiple job executors; The job dependency graph is generated based on the plurality of job executors and the execution order between the plurality of job executors.

7. The method according to claim 1, characterized in that The method further comprises: In response to the plurality of sub-jobs having been executed, based on the job dependency view after the fault identification, determining a target job executor having the fault identification and a sub-job corresponding to the target job executor; Based on the target job executor and the sub-job corresponding to the target job executor, an abnormality analysis report for the job is generated.

8. A job processing device, characterized in that: The device comprises: A data determination module, configured to receive a job sent by a job information manager and job metadata matching the job, wherein the job includes a plurality of sub-jobs having a dependency relationship, and the job metadata includes a job processing time of each of the sub-jobs and a job result acquisition path of an upstream sub-job; An instruction generation module, configured to generate a job scheduling instruction based on the job metadata of the target sub-job in response to the job processing time of the target sub-job having been reached, and send the job scheduling instruction to a job executor for processing the target sub-job; a cause determination module, configured to determine a cause of job execution failure from the job executor when it is determined that a job feedback result about the target sub-job indicates that the target sub-job has failed to execute, wherein the job feedback result is sent by the job executor; A fault identification module is used to identify the fault in a job dependency view based on the upstream job executor of the upstream sub-job and the job executor of the target sub-job when it is determined that the cause of the job execution failure is characterized by failure to obtain the job result of the upstream sub-job from the job result acquisition path, wherein the job dependency view includes the link relationship between the upstream job executor of the upstream sub-job and the job executor of the target sub-job.

9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.