Batch operation control method and device
By setting configuration conditions and operation conditions, the job run is triggered and the return code is generated, and the subsequent dependency operation status is updated, the problems of slow update of job status and unintuitive dependency relationships in the existing technology are solved, and fast and accurate batch operation control is achieved to meet the security and stability needs of the banking industry.
Patent Information
- Application Number
- CN202110566433.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-24
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-05-24
AI Technical Summary
The existing job control platform has slow update speed, unintuitive dependencies, and cannot strictly observe the execution conditions. The error rate is high, and it cannot meet the needs of flexible changes, resulting in large differences between the test environment and the production environment and the inability to implement automatic task testing.
It provides a batch job management method. By setting configuration conditions and operation conditions, the job run is triggered and the return code is generated. According to the return code, the subsequent dependency job status is updated, and the template configuration conditions and operation conditions are adopted to achieve rapid status updates and accurate inter-job control.
It realizes rapid business status updates, reduces development costs, meets the banking industry's rapid response needs under the requirements of security and stability, reduces operational stagnation, and improves the timeliness and accuracy of operation operations.
Smart Images

Figure CN113204397B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer data processing technology, and in particular to a batch job management and control method and device. Background Art
[0002] This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. No statement herein is admitted to be prior art by inclusion in this section.
[0003] The job management platform is a critical system for handling batch jobs and scheduling project components. However, it currently faces issues such as unreliable system optimization, inconsistent execution conditions, and batch job stalls caused by unpredictable bugs. Consequently, its testing environment doesn't fully reflect potential production issues, making it unable to meet daily automated task testing requirements and unable to flexibly adapt to project needs.
[0004] The existing job management and control platform has slow job status updates, unintuitive job dependencies, and inability to strictly adhere to execution conditions. It also has a high error rate, and if temporary changes are required, manual backend intervention is required, which is time-consuming and labor-intensive.
[0005] Therefore, how to provide a new solution that can solve the above technical problems is a technical problem that needs to be solved urgently in this field. Summary of the Invention
[0006] An embodiment of the present invention provides a batch job management method that can quickly update the job status of a business. The method includes:
[0007] Set configuration conditions and operating conditions for the job;
[0008] When the job meets the running conditions, it triggers the operation and generates a return code;
[0009] Update the status of subsequent dependent jobs based on the return code and configuration conditions;
[0010] After all the statuses of the batch jobs are updated, the batch job status is output.
[0011] When implementing a batch job management method provided by an embodiment of the present invention, in one embodiment, setting configuration conditions for a job includes:
[0012] Control each job in the batch job and set the execution time for each job, and perform customized job scheduling control.
[0013] When implementing a batch job control method provided by an embodiment of the present invention, in one embodiment, when controlling each job in a batch job, for simple dependencies between jobs in the same batch, they are quickly called up by passing return values, and subsequent dependent jobs start executing immediately after receiving the return code.
[0014] When implementing a batch job control method provided by an embodiment of the present invention, in one embodiment, when each job in a batch job controls other batch jobs, the return value of the batch job completes condition transmission and status confirmation for the complex dependencies between different batch jobs, controls the accuracy of the execution conditions, and executes complex functions.
[0015] When implementing a batch job management method provided by an embodiment of the present invention, in one embodiment, when a job meets the running conditions, triggering the running and generating a return code includes:
[0016] When a job meets the running conditions, it is automatically triggered to run in the form of an instance, and a return code is generated when the run ends. The return code includes: success return code and failure return code.
[0017] When implementing a batch job management method provided by an embodiment of the present invention, in one embodiment, when the generated return code is a success return code,
[0018] Based on the return code and configuration conditions, the status of subsequent dependent jobs is updated, including:
[0019] After receiving the success return code and configuration conditions, the subsequent dependent job is triggered to run, and the status of the subsequent dependent job is updated to Trigger Run Success.
[0020] When implementing a batch job management method provided by an embodiment of the present invention, in one embodiment, when the generated return code is a failure return code,
[0021] Based on the return code and configuration conditions, the status of subsequent dependent jobs is updated, including:
[0022] When a subsequent dependent job receives a failure return code, the current job is suspended, and the subsequent dependent serial jobs are suspended synchronously, and the status of the current job and the subsequent dependent serial jobs are updated to suspended.
[0023] When implementing a batch job management method provided by an embodiment of the present invention, in one embodiment, updating the job status includes: marking different job statuses with different colors.
[0024] An embodiment of the present invention further provides a batch job control device, comprising:
[0025] Condition setting module, used to set configuration conditions and operation conditions for the job;
[0026] The return code generation module is used to trigger the operation and generate a return code when the job meets the running conditions;
[0027] The status update module is used to update the status of subsequent dependent jobs based on the return code and configuration conditions;
[0028] The batch job status output module is used to output the batch job status after the status of all batch jobs has been updated.
[0029] When implementing a batch job control device provided by an embodiment of the present invention, in one embodiment, the condition setting module is specifically configured to:
[0030] Control each job in the batch job and set the execution time for each job, and perform customized job scheduling control.
[0031] When implementing a batch job control device provided by an embodiment of the present invention, in one embodiment, the condition setting module is also used to: when controlling each job in the batch job, for simple dependencies between jobs in the same batch, quickly call them up according to the passed return value, and the subsequent dependent jobs will start executing immediately after receiving the return code.
[0032] When implementing a batch job control device provided by an embodiment of the present invention, in one embodiment, the condition setting module is also used to: when each job in a batch job controls other batch jobs, for complex dependencies between different batch jobs, the return value of the batch job completes condition transfer and status confirmation, controls the accuracy of execution conditions, and executes complex functions.
[0033] When implementing a batch job control device provided by an embodiment of the present invention, in one embodiment, the return code generation module is specifically configured to:
[0034] When a job meets the running conditions, it is automatically triggered to run in the form of an instance, and a return code is generated when the run ends. The return code includes: success return code and failure return code.
[0035] When implementing a batch job control device provided by an embodiment of the present invention, in one embodiment, the return code generating module is further configured to: when the generated return code is a success return code,
[0036] Based on the return code and configuration conditions, the status of subsequent dependent jobs is updated, including:
[0037] After receiving the success return code and configuration conditions, the subsequent dependent job is triggered to run, and the status of the subsequent dependent job is updated to Trigger Run Success.
[0038] When implementing a batch job control device provided by an embodiment of the present invention, in one embodiment, the return code generating module is further configured to: when the generated return code is a failure return code,
[0039] Based on the return code and configuration conditions, the status of subsequent dependent jobs is updated, including:
[0040] When a subsequent dependent job receives a failure return code, the current job is suspended, and the subsequent dependent serial jobs are suspended synchronously, and the status of the current job and the subsequent dependent serial jobs are updated to suspended.
[0041] When implementing a batch job management and control device provided by an embodiment of the present invention, in one embodiment, updating the job status includes: marking different job statuses with different colors.
[0042] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned batch job control method when executing the computer program.
[0043] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program for executing the above-mentioned batch job management and control method.
[0044] Embodiments of the present invention provide a batch job management method and apparatus, comprising: first, setting configuration and run conditions for a job; then, when the job meets the run conditions, triggering the job and generating a return code; then, updating the status of subsequent dependent jobs based on the return code and configuration conditions; and finally, outputting the batch job status after all batch jobs have been updated. Embodiments of the present invention provide a tool for real-time job management and control, meeting the banking industry's need for rapid response while prioritizing security and stability, enabling rapid business status updates. For subtle differences in run time, templated configuration and run condition settings maximize code reuse and reduce development costs. Upon receiving the return value, subsequent dependent jobs can quickly initiate the subsequent job, reducing operational stalls caused by waiting for status updates. Different job types can be configured using configuration and run condition setting templates, meeting job diversity and ensuring control accuracy, while reducing business complexity and facilitating management and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0046] Figure 1 The figure is a schematic diagram of a batch job control method according to an embodiment of the present invention.
[0047] Figure 2 The figure is a flow chart of a batch job control method according to an embodiment of the present invention.
[0048] Figure 3 The figure is a schematic diagram of an application example of a batch job control method according to an embodiment of the present invention.
[0049] Figure 4 A schematic diagram of a computer device for running a batch job control method implemented by the present invention.
[0050] Figure 5 The figure is a schematic diagram of a batch job control device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0051] To make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0052] The present invention relates to automatic programming, Figure 1 FIG. 1 is a schematic diagram of a batch job control method according to an embodiment of the present invention. Figure 1 As shown, an embodiment of the present invention provides a batch job management method that can quickly update the job status of a business. The method includes:
[0053] Step 101: Setting configuration conditions and operating conditions for the job;
[0054] Step 102: When the job meets the running conditions, the job is triggered to run and a return code is generated;
[0055] Step 103: Update the status of subsequent dependent jobs based on the return code and configuration conditions;
[0056] Step 104: After all the statuses of the batch jobs are updated, the batch job status is output.
[0057] An embodiment of the present invention provides a batch job management method, comprising: first, setting configuration and run conditions for a job; then, when the job meets the run conditions, triggering the job and generating a return code; then, updating the status of subsequent dependent jobs based on the return code and configuration conditions; and finally, outputting the batch job status after all batch jobs have been updated. This embodiment of the present invention provides a tool for real-time job management, meeting the banking industry's need for rapid response while prioritizing security and stability, and enabling rapid business status updates. For subtle differences in run time, templated configuration and run condition settings maximize code reuse and reduce development costs. Upon receiving the return value, subsequent dependent jobs can quickly initiate the subsequent job, reducing operational stalls caused by waiting for status updates. Different job types can be configured using configuration and run condition setting templates, meeting job diversity and ensuring control accuracy, while reducing business complexity and facilitating management and maintenance.
[0058] The existing job management and control platform suffers from slow job status updates, unintuitive job dependencies, and inconsistent execution conditions. This leads to a high error rate, and temporary changes require manual backend intervention, which is time-consuming and labor-intensive. To address these issues, the stability of the job management and control platform system needs to be optimized, and its testing platform needs to be enhanced. This requires optimizing the job management and control platform's real-time batch job management capabilities.
[0059] Figure 2 FIG. 1 is a flow chart of a batch job control method according to an embodiment of the present invention. Figure 2 As shown,
[0060] An embodiment of the present invention provides a batch job management method that can quickly update the job status of a business. The method includes:
[0061] Set configuration conditions and operating conditions for the job;
[0062] When the job meets the running conditions, it triggers the operation and generates a return code;
[0063] Update the status of subsequent dependent jobs based on the return code and configuration conditions;
[0064] After all the statuses of the batch jobs are updated, the batch job status is output.
[0065] When implementing a batch job management method provided by an embodiment of the present invention, in one embodiment, setting configuration conditions for a job includes:
[0066] Control each job in the batch job and set the execution time for each job, and perform customized job scheduling control.
[0067] In one embodiment, setting configuration conditions for a job can include controlling the inter-batch operation and the execution time for each job in a batch job, thereby enabling customized job scheduling. By setting configuration conditions for a job, operational efficiency can be prioritized over status display, ensuring the timely execution of jobs.
[0068] When implementing a batch job control method provided by an embodiment of the present invention, in one embodiment, when controlling each job in a batch job, for simple dependencies between jobs in the same batch, they are quickly called up by passing return values, and subsequent dependent jobs start executing immediately after receiving the return code.
[0069] In the embodiment, when the dependency relationship between simple jobs in the same batch is concerned, it can be quickly called up by passing the return value, and the subsequent dependent job will start executing immediately after receiving the return code, so as to realize the control between batch jobs for each job in the batch job, realize the rapid execution of simple jobs in the same batch, and speed up the efficiency of job operation.
[0070] When implementing a batch job control method provided by an embodiment of the present invention, in one embodiment, when each job in a batch job controls other batch jobs, the return value of the batch job completes condition transmission and status confirmation for the complex dependencies between different batch jobs, controls the accuracy of the execution conditions, and executes complex functions.
[0071] In the embodiment, for complex dependencies between different batch jobs, the return value of the batch job completes condition transmission and status confirmation, controls the accuracy of the execution conditions, and executes complex functions to achieve control over each job in the batch job, thereby achieving complete execution of complex jobs, ensuring the integrity of job operation, and preventing the omission of related jobs.
[0072] When implementing a batch job management method provided by an embodiment of the present invention, in one embodiment, when a job meets the running conditions, triggering the running and generating a return code includes:
[0073] When a job meets the running conditions, it is automatically triggered to run in the form of an instance, and a return code is generated when the run ends. The return code includes: success return code and failure return code.
[0074] In an embodiment, before a job runs, it is necessary to determine whether the job meets the running conditions. If not, continue waiting until the job meets the running conditions, then automatically trigger the job to run in the form of an instance, and generate a success return code or a failure return code when the run ends; wherein, when the job runs successfully, a success return code is generated, and when the job runs unsuccessfully, a failure return code is generated.
[0075] When implementing a batch job management method provided by an embodiment of the present invention, in one embodiment, when the generated return code is a success return code,
[0076] Based on the return code and configuration conditions, the status of subsequent dependent jobs is updated, including:
[0077] After receiving the success return code and configuration conditions, the subsequent dependent job is triggered to run, and the status of the subsequent dependent job is updated to Trigger Run Success.
[0078] In this embodiment, the return code is a trigger condition for the initiation of a subsequent dependent job. When the return code generated by the predecessor job is a success return code, it indicates that the predecessor job has executed successfully, and the subsequent dependent job can be triggered to run. Therefore, after the subsequent dependent job receives the success return code and the configuration conditions, it is triggered to run, and the status of the subsequent dependent job is updated to "trigger run successfully". The status of the subsequent dependent job is updated to "trigger run successfully" by displaying the status of the subsequent dependent job in a color-coded manner, for example, using green to indicate a successful trigger.
[0079] When implementing a batch job management method provided by an embodiment of the present invention, in one embodiment, when the generated return code is a failure return code,
[0080] Based on the return code and configuration conditions, the status of subsequent dependent jobs is updated, including:
[0081] When a subsequent dependent job receives a failure return code, the current job is suspended, and the subsequent dependent serial jobs are suspended synchronously, and the status of the current job and the subsequent dependent serial jobs are updated to suspended.
[0082] In this embodiment, when the return code generated by the preceding job is a failure return code, it indicates that the preceding job has failed to execute and the subsequent dependent job cannot be triggered to run. Therefore, when the subsequent dependent job receives the failure return code, the current job is suspended, and the subsequent dependent serial jobs are also suspended, and the status of the current job and the subsequent dependent serial jobs are updated to suspended. The status of the current job and the subsequent dependent serial jobs is updated to suspended by displaying the status of the current job and the subsequent dependent serial jobs in a color-coded manner, for example, red is used to indicate suspended.
[0083] When implementing a batch job management method provided by an embodiment of the present invention, in one embodiment, updating the job status includes: marking different job statuses with different colors.
[0084] The embodiment of the present invention provides a tool for real-time management and control of operations, which meets the banking industry's demand for rapid response under the premise of emphasizing security and stability, and can quickly update business status. For subtle differences in runtime, templated configuration conditions and operating conditions are used to set configurations, maximizing code reuse and reducing development costs. After receiving the return value, subsequent dependent jobs can quickly start the operation of subsequent jobs, reducing the operation stagnation caused by waiting for status updates. For differences in different types of jobs, configuration templates can be set through configuration conditions and operating conditions to meet the differences in jobs and the accuracy of management and control, while reducing the complexity of the business and facilitating management and maintenance.
[0085] When implementing a batch job control method provided by an embodiment of the present invention, in one embodiment, the execution time of each job in the batch job is controlled and set, including: during the batch job scheduling process, each link may need to be scheduled according to different times, or the time of switching to the next day may be customized according to project requirements. If a failure caused by the execution time causes the job to fail to operate normally, the job control platform needs to complete the control of the batch job execution time.
[0086] Possible fault links include:
[0087] 1. When the execution time is met, the job does not receive the output results of the predecessor job, resulting in the execution condition not being met.
[0088] 2. After the job receives the return code, the scheduling date is switched to the next day due to the default setting of the job management platform. As a result, the execution conditions of the scheduling date are not met and the job cannot be scheduled normally.
[0089] The batch job management method provided by the present invention implements real-time control and status updates for batch jobs. Each job's configuration is controlled by pre-set configuration conditions. These configuration conditions enable customized job scheduling and prioritize operational efficiency over status display, ensuring timely job execution.
[0090] The present invention also provides a process for a batch job control method. The control strategy of this process is completed by the job execution conditions. The transaction path is as follows: Figure 2 As shown:
[0091] 1. After the job meets the running conditions, it is automatically triggered to run in the form of an instance.
[0092] 2. The return code of the job is passed directly to the subsequent dependent jobs. The subsequent dependent jobs are triggered to run after receiving the success return code; or they are suspended after receiving the failure return code, and all subsequent serial jobs are suspended synchronously.
[0093] 3. Update the status (indicated by color) of all jobs that have finished running or are suspended; update the status (indicated by color) of all jobs that have received a return code and are still running.
[0094] 4. After the last job is completed and the status is updated, the results are output.
[0095] The control of configuration conditions includes control between batch jobs and control of execution time.
[0096] Control between batch jobs, including:
[0097] For simple dependencies between jobs in the same batch, they are quickly called up by passing return values, and subsequent dependent jobs start executing immediately after receiving the return code.
[0098] For complex dependencies between different batch jobs, the return value of the batch job completes conditional transmission, status confirmation, controls the accuracy of execution conditions, and realizes complex functions.
[0099] Execution time control, including:
[0100] During batch job scheduling, each link may need to be scheduled according to different times, or the time of switching to the next day may need to be customized according to project requirements. Failures caused by execution time may cause the job to fail to run normally. In this case, the job management platform is required to complete the control of the batch job execution time.
[0101] Possible failure links: When the execution time meets, the job does not receive the output results of the predecessor job, resulting in the execution conditions not being met; after the job receives the return code, the scheduling date is switched to the next day due to the default setting of the job management platform, resulting in the execution conditions of the scheduling date not being met and the job cannot be scheduled normally.
[0102] Figure 3 FIG. 1 is a schematic diagram of an application example of a batch job control method according to an embodiment of the present invention. Figure 3 As shown, in an example of applying an embodiment of the present invention, the CTM used is superior to the job management and control platform in terms of visualization and controllability. After the job triggers the execution conditions, the user can intuitively monitor the real-time execution status of the job; and determine the impact of the job running results on the overall project through identification colors and views.
[0103] The key point of this embodiment is to provide a tool for real-time operation management and control, meeting the banking industry's need for rapid response while prioritizing security and stability, enabling rapid updates of business status. Templated configuration can be used to maximize code reuse and reduce development costs, even for subtle differences in runtime.
[0104] After receiving the return value, subsequent jobs can be quickly started, reducing the time it takes to wait for status updates and cause operational delays. Different job types can be configured using templates to meet job diversity and control accuracy, while also reducing business complexity and facilitating management and maintenance.
[0105] Figure 4 A schematic diagram of a computer device for running a batch job control method implemented by the present invention, such as Figure 4 As shown, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned batch job control method when executing the computer program.
[0106] A computer device for a batch job control method according to an embodiment of the present invention may include the following steps when a processor executes the computer program to implement the batch job control method:
[0107] Set configuration conditions and operating conditions for the job;
[0108] When the job meets the running conditions, it triggers the operation and generates a return code;
[0109] Update the status of subsequent dependent jobs based on the return code and configuration conditions;
[0110] After all the statuses of the batch jobs are updated, the batch job status is output.
[0111] In a computer device for a batch job control method according to an embodiment of the present invention, when a processor executes the computer program to implement the aforementioned batch job control method, the aforementioned setting of configuration conditions for the job includes:
[0112] Control each job in the batch job and set the execution time for each job, and perform customized job scheduling control.
[0113] A computer device for a batch job control method according to an embodiment of the present invention implements the aforementioned batch job control method when the processor executes the computer program.
[0114] When controlling each job in a batch job, for simple dependencies between jobs in the same batch, they are quickly called up by passing return values. Subsequent dependent jobs start executing immediately after receiving the return code.
[0115] In a computer device for a batch job control method according to an embodiment of the present invention, when a processor executes the computer program to implement the aforementioned batch job control method, each job in the aforementioned batch job performs inter-batch job control. For complex dependencies between different batch jobs, the return value of the batch job completes condition transfer and status confirmation, controls the accuracy of execution conditions, and executes complex functions.
[0116] In a computer device for a batch job control method according to an embodiment of the present invention, when a processor executes the computer program to implement the aforementioned batch job control method, triggering execution and generating a return code when a job meets execution conditions includes:
[0117] When a job meets the running conditions, it is automatically triggered to run in the form of an instance, and a return code is generated when the run ends. The return code includes: success return code and failure return code.
[0118] In a computer device for a batch job control method according to an embodiment of the present invention, when a processor executes the computer program to implement the aforementioned batch job control method:
[0119] When the generated return code is a success return code,
[0120] Based on the return code and configuration conditions, the status of subsequent dependent jobs is updated, including:
[0121] After receiving the success return code and configuration conditions, the subsequent dependent job is triggered to run, and the status of the subsequent dependent job is updated to Trigger Run Success.
[0122] In a computer device for a batch job control method according to an embodiment of the present invention, when a processor executes the computer program to implement the aforementioned batch job control method:
[0123] When the generated return code is a failure return code,
[0124] Based on the return code and configuration conditions, the status of subsequent dependent jobs is updated, including:
[0125] When a subsequent dependent job receives a failure return code, the current job is suspended, and the subsequent dependent serial jobs are suspended synchronously, and the status of the current job and the subsequent dependent serial jobs are updated to suspended.
[0126] In a computer device of a batch job control method according to an embodiment of the present invention, when a processor executes the computer program to implement the aforementioned batch job control method, the aforementioned updating of the job status includes: marking different job statuses with different colors.
[0127] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program for executing and implementing the above-mentioned batch job management and control method.
[0128] In a specific implementation of a computer-readable storage medium provided in an embodiment of the present invention, when executing a computer program for implementing the above-mentioned batch job management method, the following steps are included:
[0129] Set configuration conditions and operating conditions for the job;
[0130] When the job meets the running conditions, it triggers the operation and generates a return code;
[0131] Update the status of subsequent dependent jobs based on the return code and configuration conditions;
[0132] After all the statuses of the batch jobs are updated, the batch job status is output.
[0133] In a specific implementation of a computer-readable storage medium provided by an embodiment of the present invention, when executing a computer program for implementing the above-mentioned batch job control method, the aforementioned setting of configuration conditions for the job includes:
[0134] Control each job in the batch job and set the execution time for each job, and perform customized job scheduling control.
[0135] In a specific implementation of a computer-readable storage medium provided by an embodiment of the present invention, when executing a computer program that implements the aforementioned batch job control method, when controlling each job in the batch job, for simple dependencies between jobs in the same batch, the dependencies are quickly called up by passing return values, and subsequent dependent jobs begin execution immediately after receiving the return code.
[0136] In a specific implementation of a computer-readable storage medium provided by an embodiment of the present invention, when executing a computer program that implements the aforementioned batch job control method, each job in the aforementioned batch job controls other batch jobs. For complex dependencies between different batch jobs, the return value of the batch job completes condition transmission and status confirmation, controls the accuracy of execution conditions, and executes complex functions.
[0137] In a specific implementation of a computer-readable storage medium provided in an embodiment of the present invention, when executing a computer program that implements the above-mentioned batch job management method, the aforementioned triggering of execution and generating of a return code when a job meets the execution conditions includes:
[0138] When a job meets the running conditions, it is automatically triggered to run in the form of an instance, and a return code is generated when the run ends. The return code includes: success return code and failure return code.
[0139] In a specific implementation of a computer-readable storage medium provided in an embodiment of the present invention, when executing a computer program that implements the above-mentioned batch job management method:
[0140] When the generated return code is a success return code,
[0141] Based on the return code and configuration conditions, the status of subsequent dependent jobs is updated, including:
[0142] After receiving the success return code and configuration conditions, the subsequent dependent job is triggered to run, and the status of the subsequent dependent job is updated to Trigger Run Success.
[0143] In a specific implementation of a computer-readable storage medium provided in an embodiment of the present invention, when executing a computer program that implements the above-mentioned batch job management method:
[0144] When the generated return code is a failure return code,
[0145] Based on the return code and configuration conditions, the status of subsequent dependent jobs is updated, including:
[0146] When a subsequent dependent job receives a failure return code, the current job is suspended, and the subsequent dependent serial jobs are suspended synchronously, and the status of the current job and the subsequent dependent serial jobs are updated to suspended.
[0147] In a specific implementation of a computer-readable storage medium provided by an embodiment of the present invention, when executing a computer program that implements the above-mentioned batch job management method, the aforementioned updating of the job status includes: marking different job statuses with different colors.
[0148] The present invention also provides a batch job control device, as described in the following embodiments. Since the principle of solving the problem of the device is similar to that of a batch job control method, the implementation of the device can refer to the implementation of a batch job control method, and the repeated parts will not be repeated.
[0149] Figure 5 FIG. 1 is a schematic diagram of a batch job control device according to an embodiment of the present invention. Figure 5 As shown, an embodiment of the present invention further provides a batch job control device, including:
[0150] Condition setting module 501, used to set configuration conditions and operating conditions for the job;
[0151] The return code generating module 502 is used to trigger the operation and generate a return code when the operation meets the operation conditions;
[0152] Status update module 503, used to update the status of subsequent dependent jobs based on the return code and configuration conditions;
[0153] The batch job status output module 504 is configured to output the batch job status after all the batch job statuses have been updated.
[0154] An embodiment of the present invention provides a batch job management and control device, comprising: a condition setting module for setting configuration and run conditions for a job; a return code generation module for triggering the job and generating a return code when the run conditions are met; a status update module for updating the status of subsequent dependent jobs based on the return code and configuration conditions; and a batch job status output module for outputting the status of the batch job after all batch jobs have been updated. This embodiment of the present invention provides a tool for real-time job management and control, meeting the banking industry's need for rapid response while prioritizing security and stability, enabling rapid business status updates. Templated configuration of configuration and run conditions maximizes code reuse and reduces development costs for subtle differences in run time. Upon receiving the return value, subsequent dependent jobs can quickly initiate the subsequent job, reducing operational stalls caused by waiting for status updates. Configuration and run condition setting templates can be used to manage differences in different types of jobs, accommodating job diversity and ensuring control accuracy, while reducing business complexity and facilitating management and maintenance.
[0155] When implementing a batch job control device provided by an embodiment of the present invention, in one embodiment, the condition setting module is specifically configured to:
[0156] Control each job in the batch job and set the execution time for each job, and perform customized job scheduling control.
[0157] In this embodiment, the condition setting module can be used to control the inter-batch operation and execution time of each job in a batch job, thereby performing customized job scheduling. By setting configuration conditions for each job, operational efficiency can be prioritized over status display, ensuring the timeliness of job execution.
[0158] When implementing a batch job control device provided by an embodiment of the present invention, in one embodiment, the condition setting module is also used to: when controlling each job in the batch job, for simple dependencies between jobs in the same batch, quickly call them up according to the passed return value, and the subsequent dependent jobs will start executing immediately after receiving the return code.
[0159] In the embodiment, when the dependency relationship between simple jobs in the same batch is concerned, it can be quickly called up by passing the return value, and the subsequent dependent job will start executing immediately after receiving the return code, so as to realize the control between batch jobs for each job in the batch job, realize the rapid execution of simple jobs in the same batch, and speed up the efficiency of job operation.
[0160] When implementing a batch job control device provided by an embodiment of the present invention, in one embodiment, the condition setting module is also used to: when each job in a batch job controls other batch jobs, for complex dependencies between different batch jobs, the return value of the batch job completes condition transfer and status confirmation, controls the accuracy of execution conditions, and executes complex functions.
[0161] In the embodiment, for complex dependencies between different batch jobs, the return value of the batch job completes condition transmission and status confirmation, controls the accuracy of the execution conditions, and executes complex functions to achieve control over each job in the batch job, thereby achieving complete execution of complex jobs, ensuring the integrity of job operation, and preventing the omission of related jobs.
[0162] When implementing a batch job control device provided by an embodiment of the present invention, in one embodiment, the return code generation module is specifically configured to:
[0163] When a job meets the running conditions, it is automatically triggered to run in the form of an instance, and a return code is generated when the run ends. The return code includes: success return code and failure return code.
[0164] In an embodiment, before a job runs, it is necessary to determine whether the job meets the running conditions. If not, continue waiting until the job meets the running conditions, then automatically trigger the job to run in the form of an instance, and generate a success return code or a failure return code when the run ends; wherein, when the job runs successfully, a success return code is generated, and when the job runs unsuccessfully, a failure return code is generated.
[0165] When implementing a batch job control device provided by an embodiment of the present invention, in one embodiment, the return code generating module is further configured to: when the generated return code is a success return code,
[0166] Based on the return code and configuration conditions, the status of subsequent dependent jobs is updated, including:
[0167] After receiving the success return code and configuration conditions, the subsequent dependent job is triggered to run, and the status of the subsequent dependent job is updated to Trigger Run Success.
[0168] In this embodiment, the return code is a trigger condition for the initiation of a subsequent dependent job. When the return code generated by the predecessor job is a success return code, it indicates that the predecessor job has executed successfully, and the subsequent dependent job can be triggered to run. Therefore, after the subsequent dependent job receives the success return code and the configuration conditions, it is triggered to run, and the status of the subsequent dependent job is updated to "trigger run successfully". The status of the subsequent dependent job is updated to "trigger run successfully" by displaying the status of the subsequent dependent job in a color-coded manner, for example, using green to indicate a successful trigger.
[0169] When implementing a batch job control device provided by an embodiment of the present invention, in one embodiment, the return code generating module is further configured to: when the generated return code is a failure return code,
[0170] Based on the return code and configuration conditions, the status of subsequent dependent jobs is updated, including:
[0171] When a subsequent dependent job receives a failure return code, the current job is suspended, and the subsequent dependent serial jobs are suspended synchronously, and the status of the current job and the subsequent dependent serial jobs are updated to suspended.
[0172] In this embodiment, when the return code generated by the preceding job is a failure return code, it indicates that the preceding job has failed to execute and the subsequent dependent job cannot be triggered to run. Therefore, when the subsequent dependent job receives the failure return code, the current job is suspended, and the subsequent dependent serial jobs are also suspended, and the status of the current job and the subsequent dependent serial jobs are updated to suspended. The status of the current job and the subsequent dependent serial jobs is updated to suspended by displaying the status of the current job and the subsequent dependent serial jobs in a color-coded manner, for example, red is used to indicate suspended.
[0173] When implementing a batch job management and control device provided by an embodiment of the present invention, in one embodiment, updating the job status includes: marking different job statuses with different colors.
[0174] In summary, embodiments of the present invention provide a batch job management method and apparatus, comprising: first, setting configuration and run conditions for a job; then, when the job meets the run conditions, triggering the run and generating a return code; then, updating the status of subsequent dependent jobs based on the return code and configuration conditions; and finally, outputting the batch job status after all batch jobs have been updated. Embodiments of the present invention provide a tool for real-time job management, meeting the banking industry's need for rapid response while prioritizing security and stability, enabling rapid business status updates. For subtle differences in run time, templated configuration and run condition settings maximize code reuse and reduce development costs. Upon receiving the return value, subsequent dependent jobs can quickly initiate the subsequent job, reducing operational stalls caused by waiting for status updates. Different job types can be configured using configuration and run condition setting templates, meeting job diversity and ensuring control accuracy, while reducing business complexity and facilitating management and maintenance.
[0175] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0176] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0177] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0178] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0179] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A batch job management and control method, characterized in that: include: Set configuration conditions and operating conditions for the job; When the job meets the running conditions, it triggers the operation and generates a return code; Update the status of subsequent dependent jobs based on the return code and configuration conditions; After all the status of the batch jobs are updated, the batch job status is output; When a job meets the running conditions, it is triggered to run and a return code is generated, including: when a job meets the running conditions, it is automatically triggered to run in the form of an instance, and a return code is generated when the running ends; wherein the return code includes: a success return code and a failure return code; When the generated return code is a success return code, the subsequent dependent job is triggered to run after receiving the success return code and configuration conditions, and the status of the subsequent dependent job is updated to "trigger run successful". The status of the subsequent dependent job is updated to "trigger run successful" by using color coding to display the status of the subsequent dependent job. When the generated return code is a failure return code, when the subsequent dependent job receives the failure return code, the current job is suspended, and the subsequent dependent serial jobs are suspended synchronously, and the status of the current job and the subsequent dependent serial jobs are updated to suspended; wherein, the status of the current job and the subsequent dependent serial jobs is updated to suspended in a manner that uses color coding to display the status of the current job and the subsequent dependent serial jobs; Setting configuration conditions for jobs includes: controlling each job in a batch and setting execution time controls for each job within the batch, enabling customized job scheduling. When controlling each job within a batch, simple dependencies between jobs within the same batch can be quickly called up by passing return values, allowing subsequent dependent jobs to immediately begin execution upon receiving the return code. When controlling each job within a batch, complex dependencies between different batches can be handled by using the batch job's return value to complete conditional transmission and status confirmation, ensuring the accuracy of execution conditions and enabling the execution of complex functions. The execution time of each job in a batch job is controlled and set, including: during the batch job scheduling process, each link is scheduled according to different times, or the time of switching to the next day is customized according to project requirements. Failures caused by execution time may cause the job to fail to operate normally. At this time, the job management platform needs to complete the control of the batch job execution time; the failure links include: when the execution time is met, the job does not receive the output results of the predecessor job, resulting in the execution condition not being met; after the job receives the return code, the scheduling date is switched to the next day due to the default setting of the job management platform, resulting in the execution condition of the scheduling date not being met and unable to be adjusted normally.
2. A batch operation control device, characterized in that: include: Condition setting module, used to set configuration conditions and operation conditions for the job; The return code generation module is used to trigger the operation and generate a return code when the job meets the running conditions; The status update module is used to update the status of subsequent dependent jobs based on the return code and configuration conditions; The batch job status output module is used to output the batch job status after all the batch job statuses have been updated; Return code generation module, specifically used for: When a job meets the running conditions, it is automatically triggered to run in the form of an instance, and a return code is generated when the job ends. The return code includes: success return code and failure return code. When the generated return code is a success return code, the subsequent dependent job is triggered to run after receiving the success return code and configuration conditions, and the status of the subsequent dependent job is updated to "trigger run successful". The status of the subsequent dependent job is updated to "trigger run successful" by using color coding to display the status of the subsequent dependent job. When the generated return code is a failure return code, when the subsequent dependent job receives the failure return code, the current job is suspended, and the subsequent dependent serial jobs are suspended synchronously, and the status of the current job and the subsequent dependent serial jobs are updated to suspended; wherein, the status of the current job and the subsequent dependent serial jobs is updated to suspended in a manner that uses color coding to display the status of the current job and the subsequent dependent serial jobs; The condition setting module is specifically used to: control each job in a batch job and set execution time for each job in the batch job, and perform customized job scheduling control. When controlling each job in a batch job, for simple dependencies between jobs in the same batch, the module quickly calls up the job by passing the return value, and the subsequent dependent job begins execution immediately after receiving the return code. When controlling each job in a batch job, for complex dependencies between different batch jobs, the module uses the batch job's return value to complete condition transmission and status confirmation, control the accuracy of execution conditions, and execute complex functions. The execution time of each job in a batch job is controlled and set, including: during the batch job scheduling process, each link is scheduled according to different times, or the time of switching to the next day is customized according to project requirements. Failures caused by execution time may cause the job to fail to operate normally. At this time, the job management platform needs to complete the control of the batch job execution time; the failure links include: when the execution time is met, the job does not receive the output results of the predecessor job, resulting in the execution condition not being met; after the job receives the return code, the scheduling date is switched to the next day due to the default setting of the job management platform, resulting in the execution condition of the scheduling date not being met and unable to be adjusted normally.
3. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to claim 1 is implemented.
4. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program for executing the method according to claim 1.
Citation Information
Patent Citations
Scheduling and failure recovery method for task processing flow
CN106547613A
Job-flow scheduling execution method and device for bank system and electronic equipment
CN107832130A