CN113204397A - Batch operation control method and device - Google Patents

Batch operation control method and device Download PDF

Info

Publication number
CN113204397A
CN113204397A CN202110566433.3A CN202110566433A CN113204397A CN 113204397 A CN113204397 A CN 113204397A CN 202110566433 A CN202110566433 A CN 202110566433A CN 113204397 A CN113204397 A CN 113204397A
Authority
CN
China
Prior art keywords
return code
batch
job
condition
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110566433.3A
Other languages
Chinese (zh)
Inventor
赵冠豪
邵培兴
王云飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202110566433.3A priority Critical patent/CN113204397A/en
Publication of CN113204397A publication Critical patent/CN113204397A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a batch operation control method and a device, and relates to automatic program design, wherein the method comprises the following steps: setting configuration conditions and running conditions for the operation; when the operation meets the operation condition, triggering the operation and generating a return code; updating the state of the subsequent dependent operation according to the return code and the configuration condition; and after the state of the batch operation is completely updated, outputting the state of the batch operation. The invention can quickly realize the update of the service state, and can maximally realize code reuse and reduce the development cost by setting the configuration through the templated configuration condition and the operation condition. After the subsequent dependent operation receives the return value, the operation of the subsequent operation can be quickly pulled up, and the operation stagnation caused by waiting for state updating is reduced. Different types of operation differences can be configured through the configuration condition and the operation condition setting template, so that the difference and the management and control accuracy of the operation are met, the complexity of the service is reduced, and the management and the maintenance are facilitated.

Description

Batch operation control method and device
Technical Field
The invention relates to the technical field of computer data processing, in particular to a batch operation control method and device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
The operation control platform is an important system for processing batch operations and scheduling each project component, and the problems that the system function is to be optimized, the execution condition cannot be strictly followed, the batch operations are stopped and wait caused by unpredictable bugs and the like exist at present. The problems that the test environment can not completely reflect the problems possibly encountered in the production environment, the daily automatic task test can not be met, and the flexible change can not be made according to the project requirements are caused.
The existing operation control platform is low in operation state updating speed, not intuitive in operation dependence relation, incapable of strictly observing execution conditions, high in error rate, time-consuming and labor-consuming, and needs manual intervention in a background if temporary change is needed.
Therefore, how to provide a new solution, which can solve the above technical problems, is a technical problem to be solved in the art.
Disclosure of Invention
The embodiment of the invention provides a batch operation control method, which can quickly realize the operation state update of a service, and comprises the following steps:
setting configuration conditions and running conditions for the operation;
when the operation meets the operation condition, triggering the operation and generating a return code;
updating the state of the subsequent dependent operation according to the return code and the configuration condition;
and after the state of the batch operation is completely updated, outputting the state of the batch operation.
In an embodiment of the method for managing and controlling a batch job according to an embodiment of the present invention, setting a configuration condition for a job includes:
the control and execution time setting between the batch jobs are performed for each job in the batch jobs, and customized job scheduling control is performed.
In an embodiment of the method for managing and controlling the batch jobs, when the batch jobs are controlled for each job in the batch jobs, the simple dependency relationship between the jobs in the same batch is quickly invoked according to the transmitted return value, and the subsequent dependent jobs start to be executed immediately after receiving the return code.
In an embodiment of the method for managing and controlling batch jobs according to an embodiment of the present invention, when each job in the batch jobs performs control among the batch jobs, for a complicated dependency relationship among different batch jobs, condition transmission and state confirmation are completed by a return value of the batch job, accuracy of execution conditions is controlled, and a complicated function is executed.
When the method for managing and controlling the batch jobs provided by the embodiment of the present invention is implemented specifically, in an embodiment, when the jobs satisfy the operation conditions, the operations are triggered and the return codes are generated, including:
when the operation meets the operation condition, the operation is automatically triggered in an example mode, and a return code is generated when the operation is finished; wherein, the return code comprises: a success return code and a failure return code.
In one embodiment of the method for managing and controlling batch jobs according to the embodiments of the present invention, when the generated return code is a successful return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and triggering the subsequent dependent operation to run after receiving the successful return code and the configuration condition, and updating the state of the subsequent dependent operation to be the successful triggering and running.
In one embodiment of the method for managing and controlling batch jobs according to the embodiments of the present invention, when the generated return code is a failure return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and when the subsequent dependent operation receives the failure return code, suspending the current operation, synchronously suspending the subsequent dependent serial operation, and updating the states of the current operation and the subsequent dependent serial operation to be suspended.
When the method for managing and controlling the batch jobs provided by the embodiment of the present invention is implemented specifically, in an embodiment, the updating of the job status includes: different states of the job are identified in different colors.
An embodiment of the present invention further provides a batch job management and control apparatus, including:
the condition setting module is used for setting configuration conditions and running conditions for the operation;
the return code generation module is used for triggering operation and generating a return code when the operation meets the operation condition;
the state updating module is used for updating the state of the subsequent dependent operation according to the return code and the configuration condition;
and the batch job state output module is used for outputting the batch job state after the state of the batch job is completely updated.
In an embodiment of the invention, when the batch job management and control apparatus provided in the embodiment of the present invention is implemented specifically, the condition setting module is specifically configured to:
the control and execution time setting between the batch jobs are performed for each job in the batch jobs, and customized job scheduling control is performed.
In an embodiment of the invention, when the batch job management and control apparatus provided in the embodiment of the present invention is implemented specifically, the condition setting module is further configured to: when each job in the batch jobs is controlled among the batch jobs, the simple dependency relationship among the jobs in the same batch is quickly adjusted according to the transmission return value, and the subsequent dependent jobs immediately start to execute after receiving the return code.
In an embodiment of the invention, when the batch job management and control apparatus provided in the embodiment of the present invention is implemented specifically, the condition setting module is further configured to: when each job in the batch jobs controls the batch jobs, for the complicated dependency relationship among different batch jobs, the return value of the batch job completes condition transmission and state confirmation, controls the accuracy of the execution condition and executes the complicated function.
In an embodiment of the invention, when the apparatus for managing and controlling batch operations is implemented specifically, the return code generating module is specifically configured to:
when the operation meets the operation condition, the operation is automatically triggered in an example mode, and a return code is generated when the operation is finished; wherein, the return code comprises: a success return code and a failure return code.
In an embodiment of the invention, when the batch job management and control apparatus provided in the embodiment of the present invention is implemented specifically, the return code generation module is further configured to: when the generated return code is a successful return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and triggering the subsequent dependent operation to run after receiving the successful return code and the configuration condition, and updating the state of the subsequent dependent operation to be the successful triggering and running.
In an embodiment of the invention, when the batch job management and control apparatus provided in the embodiment of the present invention is implemented specifically, the return code generation module is further configured to: when the generated return code is a failed return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and when the subsequent dependent operation receives the failure return code, suspending the current operation, synchronously suspending the subsequent dependent serial operation, and updating the states of the current operation and the subsequent dependent serial operation to be suspended.
In an embodiment of the invention, when implementing the apparatus for managing and controlling batch jobs provided by the embodiment of the present invention, the updating of the job status includes: different states of the job are identified in different colors.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the batch job management and control method.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the batch job management and control method is stored in the computer-readable storage medium.
The embodiment of the invention provides a batch operation control method and a device, comprising the following steps: firstly, setting configuration conditions and running conditions for operation; then when the operation meets the operation condition, triggering the operation and generating a return code; then, updating the state of the subsequent dependent operation according to the return code and the configuration condition; and finally, outputting the batch operation state after the state of the batch operation is completely updated. The embodiment of the invention provides a tool for real-time management and control operation, which meets the requirement of introducing quick response under the premise of high safety and high stability in the banking industry and can quickly realize service state updating. For the slight difference of the running time, the code multiplexing is realized to the maximum extent through the setting configuration of the templated configuration condition and the running condition, and the development cost is reduced. After the subsequent dependent operation receives the return value, the operation of the subsequent operation can be quickly pulled up, and the operation stagnation caused by waiting for state updating is reduced. Different types of operation differences can be configured through the configuration condition and the operation condition setting template, so that the difference and the management and control accuracy of the operation are met, the complexity of the service is reduced, and the management and the maintenance are facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic diagram of a batch job management and control method according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a batch job management and control method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating an application example of a batch job management and control method according to an embodiment of the present invention.
FIG. 4 is a schematic diagram of a computer device for executing a batch job management method according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a batch operation management and control apparatus according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
The present invention relates to automatic programming, and fig. 1 is a schematic view of a batch job management and control method according to an embodiment of the present invention, and as shown in fig. 1, an embodiment of the present invention provides a batch job management and control method, which can quickly implement job status update of a service, and includes:
step 101: setting configuration conditions and running conditions for the operation;
step 102: when the operation meets the operation condition, triggering the operation and generating a return code;
step 103: updating the state of the subsequent dependent operation according to the return code and the configuration condition;
step 104: and after the state of the batch operation is completely updated, outputting the state of the batch operation.
The batch operation control method provided by the embodiment of the invention comprises the following steps: firstly, setting configuration conditions and running conditions for operation; then when the operation meets the operation condition, triggering the operation and generating a return code; then, updating the state of the subsequent dependent operation according to the return code and the configuration condition; and finally, outputting the batch operation state after the state of the batch operation is completely updated. The embodiment of the invention provides a tool for real-time management and control operation, which meets the requirement of introducing quick response under the premise of high safety and high stability in the banking industry and can quickly realize service state updating. For the slight difference of the running time, the code multiplexing is realized to the maximum extent through the setting configuration of the templated configuration condition and the running condition, and the development cost is reduced. After the subsequent dependent operation receives the return value, the operation of the subsequent operation can be quickly pulled up, and the operation stagnation caused by waiting for state updating is reduced. Different types of operation differences can be configured through the configuration condition and the operation condition setting template, so that the difference and the management and control accuracy of the operation are met, the complexity of the service is reduced, and the management and the maintenance are facilitated.
The existing operation control platform is low in operation state updating speed, not intuitive in operation dependence relation, incapable of strictly observing execution conditions, high in error rate, time-consuming and labor-consuming, and needs manual intervention in a background if temporary change is needed; in order to solve the above problems, the stability of the operation management and control platform system needs to be optimized, and the functions of the test platform are improved. Therefore, the optimization of real-time control batch operation of the operation control platform is needed.
Fig. 2 is a flowchart illustrating a method for managing and controlling batch operations according to an embodiment of the present invention, as shown in fig. 2,
the embodiment of the invention provides a batch operation control method, which can quickly realize the operation state update of a service, and comprises the following steps:
setting configuration conditions and running conditions for the operation;
when the operation meets the operation condition, triggering the operation and generating a return code;
updating the state of the subsequent dependent operation according to the return code and the configuration condition;
and after the state of the batch operation is completely updated, outputting the state of the batch operation.
In an embodiment of the method for managing and controlling a batch job according to an embodiment of the present invention, setting a configuration condition for a job includes:
the control and execution time setting between the batch jobs are performed for each job in the batch jobs, and customized job scheduling control is performed.
In an embodiment, setting the configuration condition for the job may include: the control and execution time setting between the batch jobs are performed for each job in the batch jobs, and customized job scheduling control is performed. By setting configuration conditions for the operation, the running efficiency can be prior to the state display, and the timeliness of the operation is ensured.
In an embodiment of the method for managing and controlling the batch jobs, when the batch jobs are controlled for each job in the batch jobs, the simple dependency relationship between the jobs in the same batch is quickly invoked according to the transmitted return value, and the subsequent dependent jobs start to be executed immediately after receiving the return code.
In the embodiment, as for the dependency relationship among the simple same-batch jobs, the dependency relationship can be quickly adjusted according to the transmission return value, and the subsequent dependency jobs immediately start to be executed after receiving the return code, so that the control among the batch jobs for each job in the batch jobs is realized, the quick execution of the simple same-batch jobs is realized, and the job running efficiency is accelerated.
In an embodiment of the method for managing and controlling batch jobs according to an embodiment of the present invention, when each job in the batch jobs performs control among the batch jobs, for a complicated dependency relationship among different batch jobs, condition transmission and state confirmation are completed by a return value of the batch job, accuracy of execution conditions is controlled, and a complicated function is executed.
In the embodiment, for the dependence relationship among different complex batch jobs, the return value of the batch job completes condition transmission and state confirmation, the accuracy of the execution condition is controlled, and the complex function is executed, so that the control among the batch jobs for each job in the batch jobs is realized, the complete execution of the complex job is realized, the running integrity of the job is ensured, and the associated job is not missed.
When the method for managing and controlling the batch jobs provided by the embodiment of the present invention is implemented specifically, in an embodiment, when the jobs satisfy the operation conditions, the operations are triggered and the return codes are generated, including:
when the operation meets the operation condition, the operation is automatically triggered in an example mode, and a return code is generated when the operation is finished; wherein, the return code comprises: a success return code and a failure return code.
In the embodiment, before the operation of the operation, whether the operation meets the operation condition needs to be judged, if not, the operation is continuously waited until the operation meets the operation condition, the operation is automatically triggered to operate in an example mode, and the operation is finished to generate a success return code or a failure return code; wherein, when the operation is successful, a success return code is generated, and when the operation is failed, a failure return code is generated.
In one embodiment of the method for managing and controlling batch jobs according to the embodiments of the present invention, when the generated return code is a successful return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and triggering the subsequent dependent operation to run after receiving the successful return code and the configuration condition, and updating the state of the subsequent dependent operation to be the successful triggering and running.
In the embodiment, the return code is a trigger condition for starting the subsequent dependent job, when the return code generated by the previous-order job is a successful return code, the execution of the previous-order job is successful, and the subsequent dependent job can be triggered to run, so that the subsequent dependent job is triggered to run after receiving the successful return code and the configuration condition, and the state of the subsequent dependent job is updated to be the trigger running success. The method for updating the state of the subsequent dependent job is a method for successfully triggering the running, and the state of the subsequent dependent job is displayed in a color identification manner, for example, green is used for indicating the success of triggering.
In one embodiment of the method for managing and controlling batch jobs according to the embodiments of the present invention, when the generated return code is a failure return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and when the subsequent dependent operation receives the failure return code, suspending the current operation, synchronously suspending the subsequent dependent serial operation, and updating the states of the current operation and the subsequent dependent serial operation to be suspended.
In the embodiment, when the return code generated by the previous-order job is the failure return code, the execution of the previous-order job is failed, and the subsequent dependent job cannot be triggered to run, so that when the subsequent dependent job receives the failure return code, the current job is suspended, the subsequent dependent serial jobs are suspended synchronously, and the states of the current job and the subsequent dependent serial jobs are updated to be suspended. The states of the current job and the subsequent dependent serial jobs are updated to be in a suspended mode, the states of the current job and the subsequent dependent serial jobs are displayed in a color identification mode, and for example, red is used for representing suspension.
When the method for managing and controlling the batch jobs provided by the embodiment of the present invention is implemented specifically, in an embodiment, the updating of the job status includes: different states of the job are identified in different colors.
The embodiment of the invention provides a tool for real-time management and control operation, which meets the requirement of introducing quick response under the premise of high safety and high stability in the banking industry and can quickly realize service state updating. For the slight difference of the running time, the code multiplexing is realized to the maximum extent through the setting configuration of the templated configuration condition and the running condition, and the development cost is reduced. After the subsequent dependent operation receives the return value, the operation of the subsequent operation can be quickly pulled up, and the operation stagnation caused by waiting for state updating is reduced. Different types of operation differences can be configured through the configuration condition and the operation condition setting template, so that the difference and the management and control accuracy of the operation are met, the complexity of the service is reduced, and the management and the maintenance are facilitated.
In an embodiment of the method for managing and controlling batch jobs according to an embodiment of the present invention, the setting of the execution time for each job in the batch jobs includes: in the batch job scheduling process, each link may need to be scheduled according to different time, or the time for switching to the next day is customized according to project requirements, and the job cannot run normally due to a fault caused by the execution time, and at this moment, the job management and control platform needs to complete the control of the batch job execution time.
Possible fault links include:
1. in the case where the execution time is met, the job does not receive the output result of the preceding job, resulting in the execution condition not being satisfied.
2. After the operation receives the return code, the scheduling date is switched to the next day due to default setting of the operation management and control platform, so that the execution condition of the scheduling date is not met and the scheduling date cannot be normally scheduled.
By the batch operation control method provided by the embodiment of the invention, the functions of real-time control and state updating of batch operation control are realized, and the configuration control of each operation is completed by presetting the configuration conditions. And the configuration conditions finish customized job scheduling control, the running efficiency is prior to the state display, and the timeliness of job running is ensured.
The implementation of the present invention also provides a flow of a batch job management and control method, a control strategy of the flow is completed by a job execution condition, and a transaction path is as shown in fig. 2:
1. and after the operation meets the operation condition, the operation is automatically triggered in an example mode.
2. The return code of the operation completion is directly transmitted to the subsequent dependent operation, and the subsequent dependent operation is triggered to operate after receiving the successful return code; or after receiving the failure return code, suspending and synchronously suspending all subsequent serial jobs.
3. All jobs that end running, or are suspended, update status (identified in color); all jobs that receive a return code that is still running update status (identified by color).
4. And after the operation of the last operation is finished and the state is updated, outputting a result.
The control of the arrangement condition includes control between batch jobs and control of execution time.
Control between batch jobs, comprising:
and for the simple dependency relationship among the jobs in the same batch, quickly starting up according to the transmission return value, and immediately starting executing after the subsequent dependent jobs receive the return code.
For the complicated dependency relationship among different batch jobs, the return values of the batch jobs complete condition transmission, state confirmation, control accuracy of execution conditions, and realize complicated functions.
Control of execution time, comprising:
in the batch job scheduling process, each link may need to be scheduled according to different time, or the time for switching to the next day is customized according to project requirements, and the job cannot run normally due to a fault caused by the execution time, and at this moment, the job management and control platform needs to complete the control of the batch job execution time.
Possible fault links: under the condition of meeting the execution time, the operation does not receive the output result of the front operation, so that the execution condition is not met; after the operation receives the return code, the scheduling date is switched to the next day due to default setting of the operation management and control platform, so that the execution condition of the scheduling date is not met and the scheduling date cannot be normally scheduled.
Fig. 3 is a schematic view of an application example of a batch job management and control method according to an embodiment of the present invention, as shown in fig. 3, in an example of an application of an embodiment of the present invention, a CTM used is superior to a job management and control platform in view and controllability, and after an execution condition is triggered by a job, a user can intuitively monitor a real-time execution status of the job; and determining the influence of the operation result of the job on the whole project through the identification color and the view.
The key point of the embodiment of the invention is to provide a tool for real-time management and control operation, which meets the requirement of introducing quick response under the premise of heavy safety and heavy stability in the banking industry and can quickly realize service state updating. For the slight difference of the running time, code multiplexing is realized to the maximum extent through template configuration, and the development cost is reduced.
After the return value is received, the running of the follow-up operation can be quickly pulled up, and the running stagnation caused by waiting for state updating is reduced. The operation differences of different types can be configured through the template, so that the operation difference and the management and control accuracy are met, the complexity of the service is reduced, and the management and the maintenance are facilitated.
Fig. 4 is a schematic diagram of a computer device for executing a batch job management and control method implemented by the present invention, and as shown in fig. 4, 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, where the processor executes the computer program to implement the batch job management and control method.
When the computer device of the batch job management and control method according to the embodiment of the present invention is implemented when the processor executes the computer program, the method may include the following steps:
setting configuration conditions and running conditions for the operation;
when the operation meets the operation condition, triggering the operation and generating a return code;
updating the state of the subsequent dependent operation according to the return code and the configuration condition;
and after the state of the batch operation is completely updated, outputting the state of the batch operation.
In the computer device of the batch job management and control method according to the embodiment of the present invention, when the batch job management and control method is implemented when the processor executes the computer program, the setting of the configuration condition for the job includes:
the control and execution time setting between the batch jobs are performed for each job in the batch jobs, and customized job scheduling control is performed.
In the computer device of the batch job management and control method according to the embodiment of the present invention, when the batch job management and control method is implemented when the processor executes the computer program, the batch job management and control method is implemented
When each job in the batch jobs is controlled among the batch jobs, the simple dependency relationship among the jobs in the same batch is quickly adjusted according to the transmission return value, and the subsequent dependent jobs immediately start to execute after receiving the return code.
In the computer device of the batch job management and control method according to the embodiment of the present invention, when the processor executes the computer program, and when each job in the batch jobs performs control among batch jobs, for a complicated dependency relationship among different batch jobs, condition transmission and state confirmation are completed by a return value of the batch job, accuracy of an execution condition is controlled, and a complicated function is executed.
In the computer device of the batch job management and control method according to the embodiment of the present invention, when the batch job management and control method is implemented when the processor executes the computer program, the triggering operation and generating the return code when the job satisfies the operation condition includes:
when the operation meets the operation condition, the operation is automatically triggered in an example mode, and a return code is generated when the operation is finished; wherein, the return code comprises: a success return code and a failure return code.
In the computer device of the batch job management and control method according to the embodiment of the present invention, when the processor executes the computer program, the batch job management and control method is implemented by:
when the generated return code is a successful return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and triggering the subsequent dependent operation to run after receiving the successful return code and the configuration condition, and updating the state of the subsequent dependent operation to be the successful triggering and running.
In the computer device of the batch job management and control method according to the embodiment of the present invention, when the processor executes the computer program, the batch job management and control method is implemented by:
when the generated return code is a failed return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and when the subsequent dependent operation receives the failure return code, suspending the current operation, synchronously suspending the subsequent dependent serial operation, and updating the states of the current operation and the subsequent dependent serial operation to be suspended.
In the computer device of the batch job management and control method according to the embodiment of the present invention, when the batch job management and control method is implemented when the processor executes the computer program, the updating of the job status includes: different states of the job are identified in different colors.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for implementing the batch job management and control method is stored in the computer-readable storage medium.
When a computer program implementing the method for managing and controlling batch jobs is executed by a computer-readable storage medium according to an embodiment of the present invention, the method includes the following steps:
setting configuration conditions and running conditions for the operation;
when the operation meets the operation condition, triggering the operation and generating a return code;
updating the state of the subsequent dependent operation according to the return code and the configuration condition;
and after the state of the batch operation is completely updated, outputting the state of the batch operation.
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 method for managing and controlling batch jobs, the setting configuration conditions for the jobs includes:
the control and execution time setting between the batch jobs are performed for each job in the batch jobs, and customized job scheduling control is performed.
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 method for managing and controlling batch jobs, when performing inter-batch-job control on each job in the batch jobs, a simple dependency relationship between the same batch jobs is quickly adjusted according to a transfer return value, and a subsequent dependent job immediately starts to be executed after receiving a return code.
When a computer program for implementing the method for managing and controlling batch jobs is executed, when each job in the batch jobs performs control among batch jobs, for a complicated dependency relationship among different batch jobs, condition transmission and state confirmation are completed by a return value of the batch job, accuracy of an execution condition is controlled, and a complicated function is executed.
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 method for managing and controlling batch jobs, the triggering operation and generating a return code when a job meets an operation condition includes:
when the operation meets the operation condition, the operation is automatically triggered in an example mode, and a return code is generated when the operation is finished; wherein, the return code comprises: a success return code and a failure return code.
In a specific implementation of a computer-readable storage medium provided in an embodiment of the present invention, when a computer program implementing the batch job management and control method is executed:
when the generated return code is a successful return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and triggering the subsequent dependent operation to run after receiving the successful return code and the configuration condition, and updating the state of the subsequent dependent operation to be the successful triggering and running.
In a specific implementation of a computer-readable storage medium provided in an embodiment of the present invention, when a computer program implementing the batch job management and control method is executed:
when the generated return code is a failed return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and when the subsequent dependent operation receives the failure return code, suspending the current operation, synchronously suspending the subsequent dependent serial operation, and updating the states of the current operation and the subsequent dependent serial operation to be suspended.
In a specific implementation of a computer-readable storage medium provided in an embodiment of the present invention, when a computer program implementing the method for managing and controlling batch jobs is executed, the updating of the job status includes: different states of the job are identified in different colors.
The embodiment of the invention further provides a batch operation management and control device, which is described in the following embodiment. Because the principle of the device for solving the problems is similar to a batch operation control method, the implementation of the device can refer to the implementation of the batch operation control method, and repeated parts are not described again.
Fig. 5 is a schematic view of a batch operation management and control apparatus according to an embodiment of the present invention, and as shown in fig. 5, the embodiment of the present invention further provides a batch operation management and control apparatus, including:
a condition setting module 501 for setting configuration conditions and operation conditions for a job;
a return code generation module 502, configured to trigger operation and generate a return code when the job meets the operation condition;
a status updating module 503, configured to update the status of the subsequent dependent job according to the return code and the configuration condition;
and a batch job status output module 504, configured to output the status of the batch job after the status of the batch job is completely updated.
The embodiment of the invention provides a batch operation control device, which comprises: the condition setting module is used for setting configuration conditions and running conditions for the operation; the return code generation module is used for triggering operation and generating a return code when the operation meets the operation condition; the state updating module is used for updating the state of the subsequent dependent operation according to the return code and the configuration condition; and the batch job state output module is used for outputting the batch job state after the state of the batch job is completely updated. The embodiment of the invention provides a tool for real-time management and control operation, which meets the requirement of introducing quick response under the premise of high safety and high stability in the banking industry and can quickly realize service state updating. For the slight difference of the running time, the code multiplexing is realized to the maximum extent through the setting configuration of the templated configuration condition and the running condition, and the development cost is reduced. After the subsequent dependent operation receives the return value, the operation of the subsequent operation can be quickly pulled up, and the operation stagnation caused by waiting for state updating is reduced. Different types of operation differences can be configured through the configuration condition and the operation condition setting template, so that the difference and the management and control accuracy of the operation are met, the complexity of the service is reduced, and the management and the maintenance are facilitated.
In an embodiment of the invention, when the batch job management and control apparatus provided in the embodiment of the present invention is implemented specifically, the condition setting module is specifically configured to:
the control and execution time setting between the batch jobs are performed for each job in the batch jobs, and customized job scheduling control is performed.
In an embodiment, the condition setting module may be specifically configured to: the control and execution time setting between the batch jobs are performed for each job in the batch jobs, and customized job scheduling control is performed. By setting configuration conditions for the operation, the running efficiency can be prior to the state display, and the timeliness of the operation is ensured.
In an embodiment of the invention, when the batch job management and control apparatus provided in the embodiment of the present invention is implemented specifically, the condition setting module is further configured to: when each job in the batch jobs is controlled among the batch jobs, the simple dependency relationship among the jobs in the same batch is quickly adjusted according to the transmission return value, and the subsequent dependent jobs immediately start to execute after receiving the return code.
In the embodiment, as for the dependency relationship among the simple same-batch jobs, the dependency relationship can be quickly adjusted according to the transmission return value, and the subsequent dependency jobs immediately start to be executed after receiving the return code, so that the control among the batch jobs for each job in the batch jobs is realized, the quick execution of the simple same-batch jobs is realized, and the job running efficiency is accelerated.
In an embodiment of the invention, when the batch job management and control apparatus provided in the embodiment of the present invention is implemented specifically, the condition setting module is further configured to: when each job in the batch jobs controls the batch jobs, for the complicated dependency relationship among different batch jobs, the return value of the batch job completes condition transmission and state confirmation, controls the accuracy of the execution condition and executes the complicated function.
In the embodiment, for the dependence relationship among different complex batch jobs, the return value of the batch job completes condition transmission and state confirmation, the accuracy of the execution condition is controlled, and the complex function is executed, so that the control among the batch jobs for each job in the batch jobs is realized, the complete execution of the complex job is realized, the running integrity of the job is ensured, and the associated job is not missed.
In an embodiment of the invention, when the apparatus for managing and controlling batch operations is implemented specifically, the return code generating module is specifically configured to:
when the operation meets the operation condition, the operation is automatically triggered in an example mode, and a return code is generated when the operation is finished; wherein, the return code comprises: a success return code and a failure return code.
In the embodiment, before the operation of the operation, whether the operation meets the operation condition needs to be judged, if not, the operation is continuously waited until the operation meets the operation condition, the operation is automatically triggered to operate in an example mode, and the operation is finished to generate a success return code or a failure return code; wherein, when the operation is successful, a success return code is generated, and when the operation is failed, a failure return code is generated.
In an embodiment of the invention, when the batch job management and control apparatus provided in the embodiment of the present invention is implemented specifically, the return code generation module is further configured to: when the generated return code is a successful return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and triggering the subsequent dependent operation to run after receiving the successful return code and the configuration condition, and updating the state of the subsequent dependent operation to be the successful triggering and running.
In the embodiment, the return code is a trigger condition for starting the subsequent dependent job, when the return code generated by the previous-order job is a successful return code, the execution of the previous-order job is successful, and the subsequent dependent job can be triggered to run, so that the subsequent dependent job is triggered to run after receiving the successful return code and the configuration condition, and the state of the subsequent dependent job is updated to be the trigger running success. The method for updating the state of the subsequent dependent job is a method for successfully triggering the running, and the state of the subsequent dependent job is displayed in a color identification manner, for example, green is used for indicating the success of triggering.
In an embodiment of the invention, when the batch job management and control apparatus provided in the embodiment of the present invention is implemented specifically, the return code generation module is further configured to: when the generated return code is a failed return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and when the subsequent dependent operation receives the failure return code, suspending the current operation, synchronously suspending the subsequent dependent serial operation, and updating the states of the current operation and the subsequent dependent serial operation to be suspended.
In the embodiment, when the return code generated by the previous-order job is the failure return code, the execution of the previous-order job is failed, and the subsequent dependent job cannot be triggered to run, so that when the subsequent dependent job receives the failure return code, the current job is suspended, the subsequent dependent serial jobs are suspended synchronously, and the states of the current job and the subsequent dependent serial jobs are updated to be suspended. The states of the current job and the subsequent dependent serial jobs are updated to be in a suspended mode, the states of the current job and the subsequent dependent serial jobs are displayed in a color identification mode, and for example, red is used for representing suspension.
In an embodiment of the invention, when implementing the apparatus for managing and controlling batch jobs provided by the embodiment of the present invention, the updating of the job status includes: different states of the job are identified in different colors.
To sum up, the method and apparatus for managing and controlling batch operations provided by the embodiments of the present invention include: firstly, setting configuration conditions and running conditions for operation; then when the operation meets the operation condition, triggering the operation and generating a return code; then, updating the state of the subsequent dependent operation according to the return code and the configuration condition; and finally, outputting the batch operation state after the state of the batch operation is completely updated. The embodiment of the invention provides a tool for real-time management and control operation, which meets the requirement of introducing quick response under the premise of high safety and high stability in the banking industry and can quickly realize service state updating. For the slight difference of the running time, the code multiplexing is realized to the maximum extent through the setting configuration of the templated configuration condition and the running condition, and the development cost is reduced. After the subsequent dependent operation receives the return value, the operation of the subsequent operation can be quickly pulled up, and the operation stagnation caused by waiting for state updating is reduced. Different types of operation differences can be configured through the configuration condition and the operation condition setting template, so that the difference and the management and control accuracy of the operation are met, the complexity of the service is reduced, and the management and the maintenance are facilitated.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (18)

1. A batch operation control method is characterized by comprising the following steps:
setting configuration conditions and running conditions for the operation;
when the operation meets the operation condition, triggering the operation and generating a return code;
updating the state of the subsequent dependent operation according to the return code and the configuration condition;
and after the state of the batch operation is completely updated, outputting the state of the batch operation.
2. The method of claim 1, wherein setting configuration conditions for a job comprises:
the control and execution time setting between the batch jobs are performed for each job in the batch jobs, and customized job scheduling control is performed.
3. The method of claim 2, wherein when controlling between batch jobs for each job in the batch jobs, the simple dependency relationship between the same batch jobs is quickly invoked according to the passing return value, and subsequent dependent jobs immediately begin execution after receiving the return code.
4. The method of claim 2, wherein each job in the batch job performs control between batch jobs, and for the dependency relationship between different complex batch jobs, the return value of the batch job completes condition passing and status confirmation, controls the accuracy of execution conditions, and executes complex functions.
5. The method of claim 1, wherein triggering execution and generating a return code when a job satisfies an execution condition comprises:
when the operation meets the operation condition, the operation is automatically triggered in an example mode, and a return code is generated when the operation is finished; wherein, the return code comprises: a success return code and a failure return code.
6. The method of claim 5, wherein when the generated return code is a successful return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and triggering the subsequent dependent operation to run after receiving the successful return code and the configuration condition, and updating the state of the subsequent dependent operation to be the successful triggering and running.
7. The method of claim 5, wherein when the generated return code is a failed return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and when the subsequent dependent operation receives the failure return code, suspending the current operation, synchronously suspending the subsequent dependent serial operation, and updating the states of the current operation and the subsequent dependent serial operation to be suspended.
8. The method of claim 1, wherein the updating of the job status comprises: different states of the job are identified in different colors.
9. A batch operation management and control device is characterized by comprising:
the condition setting module is used for setting configuration conditions and running conditions for the operation;
the return code generation module is used for triggering operation and generating a return code when the operation meets the operation condition;
the state updating module is used for updating the state of the subsequent dependent operation according to the return code and the configuration condition;
and the batch job state output module is used for outputting the batch job state after the state of the batch job is completely updated.
10. The apparatus of claim 9, wherein the condition setting module is specifically configured to:
the control and execution time setting between the batch jobs are performed for each job in the batch jobs, and customized job scheduling control is performed.
11. The apparatus of claim 10, wherein the condition setting module is further configured to: when each job in the batch jobs is controlled among the batch jobs, the simple dependency relationship among the jobs in the same batch is quickly adjusted according to the transmission return value, and the subsequent dependent jobs immediately start to execute after receiving the return code.
12. The apparatus of claim 10, wherein the condition setting module is further configured to: when each job in the batch jobs controls the batch jobs, for the complicated dependency relationship among different batch jobs, the return value of the batch job completes condition transmission and state confirmation, controls the accuracy of the execution condition and executes the complicated function.
13. The apparatus of claim 9, wherein the return code generation module is specifically configured to:
when the operation meets the operation condition, the operation is automatically triggered in an example mode, and a return code is generated when the operation is finished; wherein, the return code comprises: a success return code and a failure return code.
14. The apparatus of claim 13, wherein the return code generation module is further configured to: when the generated return code is a successful return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and triggering the subsequent dependent operation to run after receiving the successful return code and the configuration condition, and updating the state of the subsequent dependent operation to be the successful triggering and running.
15. The apparatus of claim 13, wherein the return code generation module is further configured to: when the generated return code is a failed return code,
updating the state of the subsequent dependent operation according to the return code and the configuration condition, wherein the updating comprises the following steps:
and when the subsequent dependent operation receives the failure return code, suspending the current operation, synchronously suspending the subsequent dependent serial operation, and updating the states of the current operation and the subsequent dependent serial operation to be suspended.
16. The apparatus of claim 9, wherein the update to the job status comprises: different states of the job are identified in different colors.
17. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 8 when executing the computer program.
18. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing a method according to any one of claims 1 to 8.
CN202110566433.3A 2021-05-24 2021-05-24 Batch operation control method and device Pending CN113204397A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110566433.3A CN113204397A (en) 2021-05-24 2021-05-24 Batch operation control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110566433.3A CN113204397A (en) 2021-05-24 2021-05-24 Batch operation control method and device

Publications (1)

Publication Number Publication Date
CN113204397A true CN113204397A (en) 2021-08-03

Family

ID=77023000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110566433.3A Pending CN113204397A (en) 2021-05-24 2021-05-24 Batch operation control method and device

Country Status (1)

Country Link
CN (1) CN113204397A (en)

Similar Documents

Publication Publication Date Title
EP0709777A2 (en) Method of and apparatus for debugging multitask programs
EP1480144A1 (en) Planning and scheduling for failure recovery system and method
CN111240935B (en) Automatic intelligent operation and maintenance system and operation and maintenance method
CN114895642A (en) Multi-device cooperative operation system and method based on digital twin technology
CN106815063B (en) Control platform of automation equipment with multiple interaction channels
EP2872993A1 (en) Workflow compilation
WO2019064348A1 (en) Controller
CN110895490A (en) Data batch processing system, method, equipment and storage medium
CN113204397A (en) Batch operation control method and device
JP2003140918A (en) Device and method for supporting fault recovery of computer, and fault recovery supporting program of computer
KR102259503B1 (en) Method and system for controlling simulation based on event driven scheme
CN111580858A (en) Method and system for regularly releasing codes
JP5212508B2 (en) Debug device
JP5374405B2 (en) Model debugging apparatus and model debugging method
CN114168438A (en) Visual operation and maintenance control arrangement method and system realized in low-code mode
CN109643089B (en) Control unit, data updating method, and storage medium
KR100289058B1 (en) Process definition and control method of workflow management system
CN111208993A (en) Process data analysis processing system
CN114518734B (en) Control model integration method, device and medium thereof
CN113741872B (en) Automatic software application publishing method based on job scheduling
JPH01231160A (en) Device for operating electronic computer system
CN112783617B (en) Sequential control method with virtual execution suitable for rail transit monitoring application
CN115098360A (en) Method, system, task manager and storage medium for dynamically allocating tasks
JPH08235002A (en) Monitoring method for job execution state
US8561009B2 (en) Method and apparatus for controlling the closing of a plant application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination