A control method and device for process execution triggered by an event

By querying the job control table and terminating the running ETT, the problem of ETT repeated execution is solved, improving the reliability and reliability of its execution.

CN113052570BActive Publication Date: 2025-08-29INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110416854.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-19
Publication Date
2025-08-29
Estimated Expiration
2041-04-19

AI Technical Summary

Technical Problem

In the prior art, the event-triggered process (ETT) may be accidentally triggered multiple times within the same time period, resulting in repeated execution, resulting in accounting errors, data out of synchronization and resource conflicts.

Method used

Query the job control table by querying the job identification and current date of the first job group of the process triggering event. If it is found that the job runs, the process will be terminated to avoid repeated execution.

Benefits of technology

Improves the execution reliability of ETT, prevents duplicate submissions, and ensures the integrity of the job process and data consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113052570B_ABST
    Figure CN113052570B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for controlling the execution of an event-triggered process, which can be used in the financial field or other technical fields. The method includes: querying a job control table based on the job identifier and current date of the first job group of the event-triggered process; if the job running status corresponding to the job identifier and current date is found and the job running status is already running, terminating the event-triggered process. The device is used to execute the above method. The method and device for controlling the execution of an event-triggered process provided in an embodiment of the present invention can prevent the repeated submission of the same ETT, thereby improving the reliability of ETT execution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for controlling process execution triggered by an event. Background Art

[0002] Tivoli Workload Scheduler (TWS), an enterprise job scheduling software, is used to uniformly plan, manage, control and automatically schedule batch jobs on the host, while also allowing manual intervention in batch planning.

[0003] Event-triggered tracking (ETT) is a process in TWS that has no running rules and is often used to implement irregular submission functions. Add an irregularly running job (Application Descriptions, AD) group to the current plan for execution, and you can also set it to have a previous and next item relationship with the current plan. ETT does not execute automatically or on a scheduled basis. External instructions are required to trigger all job groups in the ETT to load special resources (SR) at one time, and trigger the SR of the head job in the ETT to start the job process. When there is a problem with the external instruction control, the ETT may be mistakenly triggered multiple times in the same time period, that is, the last triggered ETT has not yet been completed, and the same ETT is triggered again, causing the same job group in the ETT to be repeatedly executed when the previous process has not yet closed the loop, resulting in accounting errors, data synchronization issues, resource conflicts and other problems.

[0004] Therefore, how to propose a control method for ETT execution to avoid repeated execution of ETT and improve the reliability of ETT execution has become an important issue that needs to be solved in this field. Summary of the Invention

[0005] In response to the problems in the prior art, embodiments of the present invention provide a method and apparatus for controlling process execution triggered by an event, which can at least partially solve the problems in the prior art.

[0006] In one aspect, the present invention provides a method for controlling process execution triggered by an event, comprising:

[0007] Query the job control table based on the job ID and current date of the first job group of the process triggered by the event;

[0008] If the job running status corresponding to the job identifier and the current date is found and the job running status is already running, the process triggered by the event is terminated.

[0009] In another aspect, the present invention provides a device for controlling process execution triggered by an event, comprising:

[0010] A query module queries the job control table according to the job ID and current date of the first job group of the process triggered by the event;

[0011] The termination module is used to terminate the process triggered by the event after the job running status corresponding to the job identifier and the current date is queried and the job running status is running.

[0012] On the other hand, the present invention provides an electronic 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 program, the steps of the control method for process execution triggered by an event described in any of the above embodiments are implemented.

[0013] On the other hand, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for controlling the execution of a process triggered by an event described in any of the above embodiments.

[0014] The control method and device for event-triggered process execution provided by an embodiment of the present invention can query the job control table based on the job identifier and current date of the first job group of the event-triggered process. After the job running status corresponding to the job identifier and current date is queried and the job running status is running, the event-triggered process is terminated, which can avoid the same ETT from being submitted repeatedly and improve the reliability of ETT execution. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] 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:

[0016] Figure 1 This is a schematic diagram of a job execution flow in a file downloading scenario provided by the first embodiment of the present invention.

[0017] Figure 2 It is a flowchart of a method for controlling process execution triggered by an event provided in a second embodiment of the present invention.

[0018] Figure 3 3 is a flow chart of a method for controlling process execution triggered by an event provided in a third embodiment of the present invention.

[0019] Figure 44 is a flowchart of a method for controlling process execution triggered by an event provided in accordance with a fourth embodiment of the present invention.

[0020] Figure 5 4 is a flowchart of a method for controlling process execution triggered by an event provided in a fifth embodiment of the present invention.

[0021] Figure 6 4 is a schematic structural diagram of a control device for event-triggered process execution provided by a sixth embodiment of the present invention.

[0022] Figure 7 2 is a schematic structural diagram of a control device for event-triggered process execution provided by a seventh embodiment of the present invention.

[0023] Figure 8 2 is a schematic structural diagram of a control device for event-triggered process execution provided by an eighth embodiment of the present invention.

[0024] Figure 9 4 is a schematic structural diagram of a control device for event-triggered process execution provided by a ninth embodiment of the present invention.

[0025] Figure 10 1 is a schematic structural diagram of a control device for process execution triggered by an event provided in the tenth embodiment of the present invention.

[0026] Figure 11 It is a schematic diagram of the physical structure of an electronic device provided by the eleventh embodiment of the present invention. DETAILED DESCRIPTION

[0027] 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 illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, unless there is a conflict, the embodiments and features in the embodiments of this application can be combined with each other in any manner.

[0028] In order to facilitate understanding of the technical solution provided by this application, the relevant contents of the technical solution of this application are first explained below.

[0029] AD: Application Descriptions is usually called AD. In the embodiment of the present invention, AD is a job group, which is a collection of jobs with the same attributes. In a large batch process, there may be many jobs that perform similar functions and only complete one business. Their operation cycles are the same. Therefore, there is no need to define an operation cycle for each job. You can define an AD and put jobs that complete similar functions and have the same operation cycle into this AD. You only need to define an operation rule for this AD, so that all jobs belonging to this AD have the same operation rule. An AD can contain up to 256 jobs. In TWS, the smallest unit of operation rules is AD, not job. If each job must have different operation rules, then each job needs to be set to belong to an AD.

[0030] SR: Special Resource (SR), which is like a switch. For example, the start of a batch job at the end of the day is triggered by an SR, and all subsequent batch jobs are run according to the order we set. Generally, an SR represents a specific resource within the system. These resources are required by certain batch jobs during their execution. If these resources are unavailable for a certain period of time, the batch job cannot run and must wait. Once the special resource becomes available, the resource status is set to available, and subsequent batch jobs that depend on this resource can begin to run.

[0031] SR type: (1) AD identifier + "ADD" indicates that this SR is used to add the corresponding AD; (2) AD identifier + "START" indicates that this SR is used to start the corresponding AD. If there are multiple SRs in an AD, the AD identifier + "STARTn" can be used to indicate it, where n is a positive integer.

[0032] The following analysis uses a file download scenario to illustrate the problems encountered in the execution of ETTs in the prior art. An ETT that implements file downloading downloads data from table A with the "Processing Flag" field set to "Unprocessed" and writes it to the output file. The "Processing Flag" field value of the A table record is updated to "Downloaded." The ETT includes a job group, which includes a header job AD0, a job AD1, a job AD2, and a tail job AD3. Figure 1The execution order of the various jobs shown is sequential. Job AD1 implements the file definition function (delete first, then define), and output job AD2 reads table A, filters records that meet the conditions, writes them to the output file, and updates the "processing flag" field in table A. The business process of the above ETT is triggered by an external trigger instruction. The first job AD0 is executed, followed by jobs AD1, AD2, and AD3 in sequence. The business process ends when the last job AD3 is completed. However, when the external instruction submits the above ETT multiple times within the same time period, anomalies may occur. For example, when the first trigger runs to AD2, some records have already been generated to the output file and the "processing flag" has been updated to "downloaded". However, when the file definition function of AD1 of the above ETT is triggered a second time, the output file generated by the first trigger is deleted. Since the "processing flag" of the records in table A has already been updated to "downloaded", this part of the data does not meet the processing submission requirements when the second trigger runs to AD2, so the output file will not be generated, resulting in incomplete data in the final output file.

[0033] In response to the problems existing in the prior art, the control method for event-triggered process execution provided by the embodiment of the present invention adds a check on the job running status of the first job in the ETT before the business processing flow, ensuring that the same ETT cannot be submitted repeatedly within the same time period, avoiding the problem caused by the repeated submission of ETTs within the same time period leading to parallel execution of jobs, and improving the reliability of the processing flow. The following uses the server as the execution subject to illustrate the specific implementation process of the control method for event-triggered process execution provided by the embodiment of the present invention. It can be understood that the execution subject of the control method for event-triggered process execution provided by the embodiment of the present invention includes but is not limited to the server.

[0034] Figure 2 FIG. 1 is a flow chart of a control method for process execution triggered by an event provided in a second embodiment of the present invention. Figure 2 As shown, the control method for process execution triggered by an event provided by an embodiment of the present invention includes:

[0035] S201, querying the job control table based on the job ID and current date of the first job group of the process triggered by the event;

[0036] Specifically, the server loads each job group in the ETT, obtains the job ID of the first job group in the ETT, obtains the current date, and then queries the corresponding job execution status from the job control table based on the job ID and current date of the first job group. The job control table is pre-set and includes the job ID, execution date, and job execution status of the first job group in each ETT. The first job group is the first job group executed in the ETT and has a unique corresponding job ID.

[0037] For example, Table 1 is a job control table, where the job identifier is the job identifier of the first job group of ETT. Table 1 includes the job identifiers of the first job groups of two ETTs, namely T1-JOBS and T2-JOBS; the execution date is the execution date of ETT; the job running status includes two types: not running and running, where 0 can be used to represent not running and 1 can be used to represent running. The server queries the corresponding job running status in Table 1 based on the job identifier of the first job group of ETT and the current date. If the job identifier of the first job group is the same as T1-JOBS, and the current date is the same as xx / xx / 2021, then the corresponding job running status is 0; if the job identifier of the first job group is the same as T2-JOBS, and the current date is the same as yy / yy / 2021, then the corresponding job running status is 1.

[0038] Table 1 Job Control Table

[0039] Job ID Execution Date Job running status Remark T1-JOBS xx / xx / 2021 0 0 means not running T2-JOBS yy month yy day 2021 1 1 means it is running

[0040] S202: If the job running status corresponding to the job identifier and the current date is found and the job running status is already running, terminate the process triggered by the event.

[0041] Specifically, if the server searches the job control table for a job running status corresponding to the job identifier and the current date, and the job running status is already running, indicating that the ETT is already being executed, the server will terminate the ETT.

[0042] The control method for event-triggered process execution provided by an embodiment of the present invention can query the job control table based on the job identifier and current date of the first job group of the event-triggered process. After the job running status corresponding to the job identifier and current date is queried and the job running status is running, the event-triggered process is terminated, which can avoid the same ETT from being submitted repeatedly and improve the reliability of ETT execution.

[0043] Figure 3 FIG. 3 is a flow chart of a control method for process execution triggered by an event provided in a third embodiment of the present invention. Figure 3 As shown, based on the above embodiments, the control method of process execution triggered by an event provided by the embodiment of the present invention further includes:

[0044] S203: If the job running status corresponding to the job identifier and the current date is found and the job running status is not running, update the job running status to running and execute each job group in the process triggered by the event.

[0045] Specifically, if the server queries the job running status corresponding to the job identifier and the current date in the job control table, and the job running status is not running, it means that there is no repeated ETT, then the server will execute each job group of the ETT, and the server will change the job running status corresponding to the job identifier and the current date in the job control table from not running to running, so as to avoid the subsequent execution of the same ETT during the execution of the ETT.

[0046] Figure 4 FIG. 4 is a flow chart of a control method for process execution triggered by an event provided in a fourth embodiment of the present invention. Figure 4 As shown, based on the above embodiments, the control method of process execution triggered by an event provided by the embodiment of the present invention further includes:

[0047] S204: If the job running status corresponding to the job ID and the current date is not found, then each job group in the process triggered by the event is added to the job control table as having the job running status corresponding to the job ID and the current date running and executing.

[0048] Specifically, if the server does not find the job running status corresponding to the job ID and the current date in the job control table, it means that ETT is not being executed. Then the server will add the job running status corresponding to the job ID and the current date to the job control table, that is, add the job ID, the current date and the job running status to the job control table. Since ETT needs to be executed, the job running status can be directly set to run, and each job group in the process triggered by the event will be executed.

[0049] On the basis of the above embodiments, the control method for process execution triggered by an event provided by an embodiment of the present invention further includes:

[0050] After the execution of the process triggered by the event is completed, the job running status corresponding to the job identifier and the current date is updated to not running.

[0051] Specifically, after the ETT is completed, the server may change the job running status corresponding to the job identifier and the current date in the job control table from run to not run, so as to wait for the next triggering of the ETT.

[0052] On the basis of the above embodiments, the control method for process execution triggered by an event provided by an embodiment of the present invention further includes:

[0053] After the execution of the process triggered by the event is completed, the job identifier and the job running status corresponding to the current date are deleted.

[0054] Specifically, after the ETT is completed, the server may delete the job identifier and the job running status corresponding to the current date in the job control table.

[0055] Figure 5 FIG. 5 is a flow chart of a method for controlling process execution triggered by an event provided in a fifth embodiment of the present invention. Figure 5 As shown, the implementation process of the control method for process execution triggered by an event provided by an embodiment of the present invention is described below with a specific embodiment.

[0056] The first step is to obtain the ETT check parameters. The server obtains the job ID of the first job group of the ETT and the current date as the ETT check parameters.

[0057] Step 2: Query the job running status: Based on the job ID and the current date, the server queries the job running status corresponding to the job ID and the current date from the job control table.

[0058] Step 3: Determine whether there is a record. The server determines whether the job running status corresponding to the job ID and current date is found. If so, the process proceeds to step 4. If not, the process proceeds to step 5.

[0059] Step 4: Determine the job's running status. The server determines whether the job is running or not running. If the job is not running, proceed to step 6; if the job is running, proceed to step 7.

[0060] Step 5: Add the corresponding job record. The server adds the job ID and current date of the first job group of ETT to the job control table and sets the corresponding job running status to "Runned".

[0061] Step 6: Execute the ETT's job groups. The server executes each job group according to the execution order of each job group in the ETT. The execution order of each job group is pre-set.

[0062] Step 7: Prompt for duplicate submission. Since the job status is already running, the current ETT will not be executed. The cloud status information of the running job can be fed back to prompt that the ETT has been submitted repeatedly.

[0063] Step 8: Update the job control table. After the ETT is completed, the corresponding job status can be changed from "running" to "not running" to facilitate the subsequent execution of the ETT.

[0064] Among them, in order to facilitate the application of the control method for event-triggered process execution provided by the embodiment of the present invention, the program of the control method for event-triggered process execution provided by the embodiment of the present invention can be configured in the head job of the first job group of each ETT (which does not include updating the job running status corresponding to the job identifier and the current date to not running after the execution of the event-triggered process is completed and deleting the job running status corresponding to the job identifier and the current date after the execution of the event-triggered process is completed), and the program corresponding to the job running status corresponding to the job identifier and the current date is updated to not running after the execution of the event-triggered process is completed, or deleting the job running status corresponding to the job identifier and the current date after the execution of the event-triggered process is completed. For example, a first job group can be specially configured for ETT, and the first job group includes a check job, which implements a control method for event-triggered process execution (which does not include the steps of updating the job identifier and the job running status corresponding to the current date to not running after the execution of the event-triggered process is completed, and deleting the job running status corresponding to the job identifier and the current date after the execution of the event-triggered process is completed). Then, a last job group can be specially configured for ETT, and the last job group includes an update job, which implements the steps of updating the job identifier and the job running status corresponding to the current date to not running after the execution of the event-triggered process is completed, or deleting the job running status corresponding to the job identifier and the current date after the execution of the event-triggered process is completed.

[0065] The control method for event-triggered process execution provided by the embodiment of the present invention does not rely on the control logic submitted by the external ETT trigger instruction. The ETT implements self-checking inside to ensure the execution of the ETT, improves the level of automated operation and maintenance, reduces the problems caused by repeated submission and execution of the ETT, and improves the reliability of the ETT operation.

[0066] Figure 6 FIG. 6 is a schematic diagram of a control device for executing a process triggered by an event according to a sixth embodiment of the present invention. Figure 6 As shown, the control device for process execution triggered by an event provided by an embodiment of the present invention includes a query module 601 and a termination module 602, wherein:

[0067] The query module 601 queries the job control table according to the job ID and current date of the first job group of the process triggered by the event; the termination module 602 is used to terminate the process triggered by the event after the job running status corresponding to the job ID and current date is queried and the job running status is running.

[0068] Specifically, after loading each job group in the ETT, the query module 601 obtains the job ID of the first job group in the ETT and the current date. Based on the job ID and current date of the first job group, the query module 601 queries the corresponding job execution status from the job control table. The job control table is pre-set and includes the job ID, execution date, and job execution status of the first job group in each ETT. The first job group is the first executed job group in the ETT and has a unique corresponding job ID.

[0069] If the termination module 602 finds the job running status corresponding to the job identifier and the current date in the job control table, and the job running status is already running, indicating that the ETT is already being executed, then the termination module 602 will terminate the ETT.

[0070] The control device for event-triggered process execution provided by an embodiment of the present invention can query the job control table based on the job identifier and current date of the first job group of the event-triggered process, and terminate the event-triggered process after the job running status corresponding to the job identifier and current date is queried and the job running status is running. This can avoid the same ETT from being submitted repeatedly, thereby improving the reliability of ETT execution.

[0071] Figure 7 FIG. 7 is a schematic diagram of a control device for executing a process triggered by an event according to a seventh embodiment of the present invention. Figure 7 As shown, based on the above embodiments, the control device for process execution triggered by an event provided in an embodiment of the present invention further includes an execution module 603, wherein:

[0072] The execution module 603 is used to update the job running status to run after querying the job running status corresponding to the job identifier and the current date and the job running status is not run, and execute each job group in the process triggered by the event.

[0073] Specifically, if the execution module 603 queries the job running status corresponding to the job identifier and the current date in the job control table, and the job running status is not running, it means that there is no repeated ETT, then the execution module 603 will execute each job group of the ETT, and the server will change the job running status corresponding to the job identifier and the current date in the job control table from not running to running, so as to avoid the subsequent execution of the same ETT during the execution process of the ETT.

[0074] Figure 8 FIG. 8 is a schematic diagram of a control device for executing a process triggered by an event according to an eighth embodiment of the present invention. Figure 8As shown, based on the above embodiments, the control device for process execution triggered by an event provided by the embodiment of the present invention further includes:

[0075] The adding module 604 is used to add each job group in the process triggered by the event whose job running status corresponding to the job identifier and current date has been run and executed in the job control table after failing to find the job running status corresponding to the job identifier and current date.

[0076] Specifically, if the adding module 604 does not find the job running status corresponding to the job identifier and the current date in the job control table, it means that ETT is not being executed, then the adding module 604 will add the job running status corresponding to the job identifier and the current date to the job control table, that is, add the job identifier, the current date and the job running status to the job control table. Since ETT needs to be executed, the job running status can be directly set to run, and each job group in the process triggered by the event will be executed.

[0077] Figure 9 FIG. 1 is a schematic diagram of a control device for executing a process triggered by an event according to a ninth embodiment of the present invention. Figure 9 As shown, based on the above embodiments, the control device for process execution triggered by an event provided by the embodiment of the present invention further includes an update module 605, wherein:

[0078] The updating module 605 is used to update the job identifier and the job running status corresponding to the current date to not running after the process triggered by the event is completed.

[0079] Specifically, after the ETT is executed, the update module 605 may change the job running status corresponding to the job identifier and the current date in the job control table from run to not run, so as to wait for the next triggering of the ETT.

[0080] Figure 10 FIG. 1 is a schematic diagram of a control device for executing a process triggered by an event according to a tenth embodiment of the present invention. Figure 10 As shown, based on the above embodiments, the control device for process execution triggered by an event provided by the embodiment of the present invention further includes a deletion module 606, wherein:

[0081] The deletion module 606 is used to delete the job identifier and the job running status corresponding to the current date after the process triggered by the event is executed.

[0082] Specifically, after the ETT is executed, the deletion module 606 may delete the job identifier and the job running status corresponding to the current date in the job control table.

[0083] The embodiments of the apparatus provided in the embodiments of the present invention can be specifically used to execute the processing flow of the above-mentioned method embodiments. Its functions are not described in detail here, and reference can be made to the detailed description of the above-mentioned method embodiments.

[0084] It should be noted that the control method and device for event-triggered process execution provided in the embodiments of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiments of the present invention do not limit the application field of the control method and device for event-triggered process execution.

[0085] Figure 11 FIG. 1 is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. Figure 11 As shown, the electronic device may include: a processor 1101, a communications interface 1102, a memory 1103, and a communications bus 1104, wherein the processor 1101, the communications interface 1102, and the memory 1103 communicate with each other via the communications bus 1104. The processor 1101 may invoke logic instructions in the memory 1103 to execute the following method: querying a job control table based on the job identifier and current date of the first job group of a process triggered by an event; if a job running status corresponding to the job identifier and current date is found and the job running status is already running, terminating the process triggered by the event.

[0086] In addition, the logic instructions in the above-mentioned memory 1103 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0087] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: querying a job control table based on the job identifier and current date of the first job group of the process triggered by an event; if a job running status corresponding to the job identifier and current date is queried and the job running status is already running, terminating the process triggered by the event.

[0088] This embodiment provides a computer-readable storage medium, which stores a computer program. The computer program enables the computer to execute the methods provided by the above-mentioned method embodiments, for example, including: querying the job control table based on the job identifier and current date of the first job group of the process triggered by an event; if the job running status corresponding to the job identifier and current date is queried and the job running status is already running, terminating the process triggered by the event.

[0089] 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.

[0090] 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.

[0091] 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 1The function specified in one or more boxes.

[0092] 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.

[0093] Throughout this specification, reference to terms such as "one embodiment," "a specific embodiment," "some embodiments," "for example," "example," "specific example," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0094] 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 method for controlling process execution triggered by an event, characterized in that: include: querying a job control table based on the job identifier and current date of a first job group of a process triggered by an event; wherein the first job group is specially configured to implement internal self-checking of the process triggered by the event; If the job running status corresponding to the job identifier and the current date is found and the job running status is already running, the process triggered by the event is terminated to ensure that the process triggered by the same event cannot be submitted repeatedly within the same time period; If the job running status corresponding to the job identifier and the current date is not found, the job running status corresponding to the job identifier and the current date is added to the job control table as each job group in the process that has been running and executing the event trigger; wherein, the last job group of the process triggered by the event includes an update job, which is used to delete the job running status corresponding to the job identifier and the current date after the execution of the process triggered by the event is completed.

2. The method according to claim 1, characterized in that Also includes: If the job running status corresponding to the job identifier and the current date is found and the job running status is not running, the job running status is updated to running and each job group in the process triggered by the event is executed.

3. The method according to claim 2, characterized in that Also includes: After the execution of the process triggered by the event is completed, the job running status corresponding to the job identifier and the current date is updated to not running.

4. A control device for process execution triggered by an event, characterized in that: include: A query module queries the job control table according to the job identifier and current date of the first job group of the process triggered by the event; wherein the first job group is specially configured to implement internal self-checking of the process triggered by the event; a termination module, configured to, after querying the job running status corresponding to the job identifier and the current date and the job running status is running, terminate the process triggered by the event to ensure that the process triggered by the same event cannot be submitted repeatedly within the same time period; An adding module is used to add the job running status corresponding to the job identifier and the current date to the job control table as each job group in the process that has been running and executing the event triggering after the job running status corresponding to the job identifier and the current date is not queried; wherein the last job group of the process triggered by the event includes an update job, which is used to delete the job running status corresponding to the job identifier and the current date after the execution of the process triggered by the event is completed.

5. The device according to claim 4, characterized in that Also includes: The execution module is used to update the job running status to run after querying the job running status corresponding to the job identifier and the current date and the job running status is not run and execute each job group in the process triggered by the event.

6. An electronic 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 steps of the method according to any one of claims 1 to 3 are implemented.

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

Citation Information

Patent Citations

  • Distributed task managing system and method

    CN103902646A