CN111930475A - Method and device for starting ETT operation - Google Patents
Method and device for starting ETT operation Download PDFInfo
- Publication number
- CN111930475A CN111930475A CN202010806933.5A CN202010806933A CN111930475A CN 111930475 A CN111930475 A CN 111930475A CN 202010806933 A CN202010806933 A CN 202010806933A CN 111930475 A CN111930475 A CN 111930475A
- Authority
- CN
- China
- Prior art keywords
- job
- ett
- running
- virtual head
- starting
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a device for starting ETT operation, wherein the method comprises the following steps: loading each operation group in the ETT, wherein each operation group comprises a virtual head operation and a real head operation; starting each virtual head operation; inquiring the running state of each virtual head operation according to a preset batch operation running control table; and if the running state of each virtual head operation is running, starting the real head operation used for starting the business process in the ETT. The invention realizes that the operation flow is allowed to start executing after all the AD contained in the ETT is successfully loaded, ensures the integrity and consistency of the transaction, and avoids the serious problem caused by the loading failure of part of AD. The method and the device for starting the ETT operation can be used in the financial field or other fields.
Description
Technical Field
The invention relates to enterprise job scheduling software TWS, in particular to a method and a device for starting ETT operation.
Background
An AD (Application Descriptions) in a TWS (Tivoli Workload Scheduler, enterprise job scheduling software) can only store jobs of the same partition and the same Application, and the number of jobs in the AD has an upper limit, and in some complex batch scenarios, a function generally consists of multiple partitions, multiple applications, and multiple jobs (as shown in fig. 5), so that a complete batch function usually needs multiple ADs to be combined into an ETT (Event-triggered tracing) (as shown in fig. 6).
As shown in fig. 6, in the current general method, when an ETT is loaded, loading SRs (Special resources) of all ADs are triggered at a time, and an SR is triggered to run to start a job flow. The above method has no problem when all the ADs are loaded successfully once, but if the system is abnormal and a part of the ADs in the ETT fails to be loaded, the workflow is interrupted when running to the ADs, and the operation of the preamble AD is already finished normally, which may cause serious problems such as uneven accounting, asynchronous data, and the like.
For example, as shown in fig. 7, a transfer scenario needs to be changed from an account a to an account B by 100 yuan, the system is designed such that the AD1 realizes a check function before transfer, the AD2 realizes a function of transferring 100 yuan from the account a, and the AD3 realizes a function of transferring 100 yuan to the account B. The complete business process is triggered by trigger instructions, which are respectively triggered by AD1ADD (load SR of AD 1), AD2ADD (load SR of AD2), AD3ADD (load SR of AD 3) and AD1START (trigger SR of AD 1). If the AD1 and AD2 are completely run, the AD3(AD3ADD) fails to execute the job in the AD3 due to loading failure, but the business process is transferred out of 100 yuan from A, and the AD3 which transfers 100 yuan to the account B cannot run. Then the 100-tuple will be posted.
Disclosure of Invention
In order to solve the technical problems in the background art, the invention provides a method and a device for starting ETT operation.
To achieve the above object, according to one aspect of the present invention, there is provided a method of starting an ETT operation, the method including:
loading each operation group in the ETT, wherein each operation group comprises a virtual head operation and a real head operation;
starting each virtual head operation;
inquiring the running state of each virtual head job according to a preset batch job running control table, wherein the batch job running control table is used for recording the running state of each job in the ETT;
and if the running state of each virtual head operation is running, starting the real head operation used for starting the business process in the ETT.
Optionally, the method for starting the ETT operation further includes:
if the running state of at least one virtual head job is not running, repeatedly inquiring the running state of each virtual head job from the batch job running control table according to preset inquiry waiting time and preset maximum inquiry times until the running state of each virtual head job is inquired to be running or the inquiry times reach the maximum inquiry times;
and if the query times reach the maximum query times, generating a loading exception report.
Optionally, the querying, according to a preset batch job operation control table, an operation state of each virtual head job is specifically:
inquiring the running state of each virtual head job from a preset batch job running control table according to preset virtual head job information, wherein the virtual head job information comprises: the job group name and the virtual head job name corresponding to each job group name.
Optionally, the querying, according to a preset batch job operation control table, an operation state of each virtual head job is specifically:
after loading of each job group in the ETT is started, waiting for preset query waiting time, and querying the running state of each virtual head job from a preset batch job running control table.
Optionally, the running conditions of the real head operation include: the running state of the virtual head operation corresponding to the real head operation is running.
In order to achieve the above object, according to another aspect of the present invention, there is provided an apparatus for initiating an ETT operation, the apparatus including:
the ETT comprises a job group loading unit, a real head operation unit and a virtual head operation unit, wherein the job group loading unit is used for loading each job group in the ETT, and each job group comprises a virtual head operation and a real head operation;
a virtual head job starting unit for starting each of the virtual head jobs;
the running state query unit is used for querying the running state of each virtual head job according to a preset batch job running control table, wherein the batch job running control table is used for recording the running state of each job in the ETT;
and the real head operation starting unit is used for starting the real head operation used for starting the business process in the ETT if the running state of each virtual head operation is already running.
Optionally, the apparatus for starting the ETT operation further includes:
the repeated query unit is used for repeatedly querying the running state of each virtual head job from the batch job running control table according to preset query waiting time and preset maximum query times when the running state of at least one virtual head job is not running until the running state of each virtual head job is queried to be running or the query times reach the maximum query times;
and the loading exception report generating unit is used for generating a loading exception report when the query times reach the maximum query times.
Optionally, the running state querying unit is specifically configured to query a running state of each virtual head job from a preset batch job running control table according to preset virtual head job information, where the virtual head job information includes: the job group name and the virtual head job name corresponding to each job group name.
Optionally, the running state querying unit is specifically configured to wait for a preset query waiting time after starting to load each job group in the ETT, and then query the running state of each virtual head job from a preset batch job running control table.
In order to achieve the above object, according to another aspect of the present invention, there is also provided a computer device, including a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps in the method for initiating the ETT operation when executing the computer program.
In order to achieve the above object, according to another aspect of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed in a computer processor, implements the steps in the above method of initiating an ETT run.
The invention has the beneficial effects that: according to the invention, a virtual head operation is added into each operation group (AD) in the ETT, and whether the AD is loaded successfully or not is further determined by verifying the running state of the virtual head operation, so that the operation process is allowed to start executing after all the ADs contained in the ETT with a complete function are loaded successfully, the integrity and consistency of transactions are ensured, and the serious problem caused by the failure of loading part of the AD is avoided.
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 introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts. In the drawings:
FIG. 1 is a first flowchart of a method of initiating an ETT operation according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a method of initiating an ETT run in accordance with an embodiment of the present invention;
FIG. 3 is a first block diagram of an apparatus for initiating ETT operation according to an embodiment of the present invention;
FIG. 4 is a second block diagram of an apparatus for initiating ETT operation according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a batch job scenario according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of the arrangement of AD of ETT in a prior art batch job scenario;
FIG. 7 is an introduction diagram of a transfer scenario according to an embodiment of the invention;
FIG. 8 is a diagram illustrating a batch job run control table according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of the arrangement of AD of ETT according to the embodiment of the present invention;
FIG. 10 is a CP schematic of an EET of an embodiment of the present invention before AD loading;
FIG. 11 is a diagram illustrating a CP after loading of AD1 in an EET according to an embodiment of the present invention;
FIG. 12 is a diagram illustrating a CP after loading of AD2 and AD3 in an EET according to an embodiment of the present invention;
FIG. 13 is a schematic diagram of a computer apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
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.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of the present invention and the above-described drawings, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
The invention is explained below in the claims and in some terms in the description.
Tivoli Workload Scheduler is a set of enterprise Workload management programs used to uniformly plan, manage, control and automatically schedule the batch jobs of the host, while it also allows manual intervention in the batch planning. TWS FOR Z/OS is a version of TWS.
Application Descriptions are usually called AD, and simply, AD is a job group, which is a set of jobs having the same attribute. In a huge batch process, many jobs may run similar functions, only one service is completed, and their running cycles are the same, so it is not necessary to define a running cycle for each job, and an AD may be defined. A maximum of 256 jobs can be contained in an AD, and the total number of jobs cannot be exceeded.
In the TWS, the minimum unit of the operation rule is AD, and cannot be a job, and if each job needs a different operation rule, it is necessary that one job belongs to one AD.
The SR (Special Resource, hereinafter abbreviated as SR) is equivalent to a concept of a switch, for example, the end-of-day batch starting operation is triggered by the SR, and all subsequent batches start to run according to the set front and back items. In a general case, SR denotes a specific resource in a system of a type, and this type of resource is needed by some jobs during the running of a batch job, and these resources are not available for a certain time, the batch job is not able to run, and it is necessary to wait, and once a specific resource is available, the state of the resource is set to be available, and then the batch job depending on this resource can start running.
The type of SR: 1) AD name + "ADD": indicates that this SR purpose is to load a corresponding AD, such as an AD-loaded SR in an ETT; 2) the AD name + "START" indicates that this SR purpose is used to initiate the corresponding AD. If there are multiple SRs within an AD, the AD name + "STARTn" can be used, where n represents the case of 1, 2, 3, and 4.
ETT, namely a process triggered by an Event-triggered tracing Event, wherein the process has no running rule in the TWS and is commonly used for functions submitted at irregular time; adding an AD running at irregular time, namely ADD, to the current PLAN to run, and of course, setting the relationship of the previous and next items in the original PLAN. Triggering of ETT generally uses SR triggering, so AD triggered by ETT has SR.
It should be noted that the method and apparatus for starting the ETT operation of the present invention can be used in the financial field, and can also be used in any field other than the financial field.
Fig. 1 is a first flowchart of a method for starting an ETT operation according to an embodiment of the present invention, and as shown in fig. 1, the method for starting an ETT operation according to the embodiment includes steps S101 to S103.
Step S101, loading each job group in ETT, wherein each job group comprises a virtual head job and a real head job.
Fig. 6 is a schematic diagram of arrangement of ADs of ETTs in a prior art batch JOB scenario, as shown in fig. 6, in the prior art, an EET includes one ETT header JOB (JOB SR (master control) in fig. 6) and at least one AD (AD1 and AD2 in fig. 6), each AD includes at least one JOB, and each AD further includes one header JOB (JOB a0 in AD1, JOB X0 in AD 2). The head job of the AD is provided with a start SR for triggering the running of the head job of the AD.
Each EET corresponds to a specific business process, each operation corresponds to a part of sub-processes in the business process, and each operation sequentially runs according to the dependency relationship among the operations to complete the whole business process. The head job in the AD is the start job in the AD, and the operation of other jobs in the AD depends on the operation of the head job. The running of the head job in the AD may be triggered by the ETT head job according to different business processes, and may also be triggered by the completion of a job that the head job of the AD depends on.
Fig. 9 is a schematic layout diagram of ADs of an ETT according to an embodiment of the present invention, and as shown in fig. 9, in the embodiment of the present invention, based on the prior art, a virtual head JOB (JOB a00 and JOB X00 in fig. 9) is set in each AD, and the head JOBs originally in the AD are referred to as real head JOBs (JOB a0 and JOB X0 in fig. 9). The virtual head JOB is an empty JOB, and does not involve a JOB step of substantial logical processing, and a start SR (SR 0 in JOB a00 and JOB X00) is set for each virtual head JOB in the TWS.
As shown in fig. 9, the start of the virtual head job is triggered by the ETT head job, and the specific ETT head job triggers the SR of the virtual head job to start the virtual head job running. And the conditions for the start of the real head job include: SR of real head job is triggered; and the virtual head operation corresponding to the real head operation is operated. That is, the real head job is started up depending on the execution of its corresponding virtual head job.
In the embodiment of the present invention, this step is specifically to load each job group in the ETT for the ETT header job, which is exemplified by the embodiment shown in fig. 9, and the code may be:
SRSTAT'AD1ADD'SUBSYS(<TRACKER>)AVAIL(Y)
SRSTAT'AD2ADD'SUBSYS(<TRACKER>)AVAIL(Y)
step S102, each of the virtual head jobs is started.
In the embodiment of the present invention, this step is specifically that the ETT header job starts each virtual header job by triggering the SR of each virtual header job, which is exemplified by the embodiment shown in fig. 9, and the code may be:
SRSTAT'AD1START0'SUBSYS(<TRACKER>)AVAIL(Y)
SRSTAT'AD2START0'SUBSYS(<TRACKER>)AVAIL(Y)
in this step, the virtual head job of each AD is already triggered, but the real head job is not triggered because the start SR is not triggered, so the business process is not actually started, and the loading completion condition of each AD needs to be checked.
Step S103, querying an operation state of each virtual head job according to a preset batch job operation control table, where the batch job operation control table is used to record an operation state of each job in the ETT.
In the embodiment of the present invention, the structure of the batch job operation control table established by the present invention may be as shown in fig. 8, and the batch job operation control table includes three fields of job name, work date, and operation state. When each job in the ETT is executed, whether a record exists in a control table or not is judged, and if no record exists, a record of the current working date of the job name and the operation state of 0-non-operation is inserted; and after the operation is executed, the operation running state of the operation is updated to 1-run. In the last closing-in operation of the whole ETT, the operation states of the records of all the operations contained in the ETT are uniformly updated to be 0-not-operated, and preparation is made for the next execution. In an alternative embodiment of the present invention, the batch job run control table may be stored in a database of the TWS, which may be a DB2 database.
In the embodiment of the invention, a common operation condition check program is added in the head job of the ETT, and the common operation condition check program is used for inquiring the operation state of each virtual head job from a batch job operation control table.
In a specific embodiment of the present invention, a parameter configuration a and a parameter configuration b are set in the common operation condition checking program.
The parameter configuration a is virtual head job information, which is used to configure the name of each AD in the ETT and the corresponding virtual head job name, and the format may be job name + space + AD name, for example:
JOBA00 AD1
JOBX00 AD2
parameter configuration b, configured to configure query latency and maximum query times, and the format may be query latency (sec) + space + maximum query times (times), for example:
001 020
specifically, after starting to load each job group in the ETT, the step of waiting for the query waiting time preset in the parameter configuration b, reading the virtual head job name configured with the parameter a line by line, querying the batch job operation control table, and determining whether the operation state of the virtual head job is 1-run. The status of the two virtual head jobs JOBA00, JOBX00 in the batch job run control table are checked in sequence as in the parameter example above.
Step S104, if the running state of each virtual head operation is running, starting the real head operation used for starting the business process in the ETT.
In the embodiment of the present invention, the virtual head job has run, which indicates that the AD corresponding to the virtual head job has been loaded. In order to illustrate that the virtual head job has been run to indicate that the corresponding AD has been loaded and completed, a concept of CP (current plan) is introduced below, where CP refers to a plan for the TWS to execute jobs on the same day, and only when the current CP is added, the relevant AD and the jobs included in the AD can be run. For TWS with daily operating cycles, it is typical to have CP with T +1 coming out of EXTEND automatically after the end of the T day batch run. For the TWS of ETT, because there is no fixed operation period, before it operates, we need to separately trigger the loading SR of AD to add it to the CP of the current day, and the corresponding job has the operation condition, as shown in fig. 10 to 12, fig. 10 is the CP before the AD of EET is loaded, fig. 11 is the CP after the AD1 of EET is loaded, and fig. 12 is the CP after the AD2 and AD3 of EET are loaded. It was also mentioned above that within a TWS, the minimum unit of an operating rule is AD, and not a job. Jobs cannot be run off AD. Therefore, when the running state of the virtual head job is running, the AD is proved to have been successfully added to the current day CP.
According to the method, when the running state of each virtual head operation is run, namely each AD is determined to be loaded and finished, the real head operation for starting the business process is triggered, the business process is formally triggered, and the ADs are executed in sequence according to the front and back relations, so that the ETT is started and run.
In the embodiment of the present invention, each AD contains one real head job, but not every real head job is a real head job for starting a business process. The real head operation for starting the business process is the real head operation triggered by the ETT head operation according to the specific business process requirement. Real head jobs of some ADs according to different business processes may be triggered by completion of jobs in other ADs, which are not the real head jobs for starting the business processes described above.
From the above description, it can be seen that the present invention, by adding the judgment of the cycle self-check in the ETT header operation, ensures that after a complete-function ETT is loaded, the operation flow is allowed to continue after all ADs contained in the ETT are successfully loaded. The integrity and consistency of the transaction are guaranteed. Avoiding the occurrence of serious problems due to partial AD loading failures.
Fig. 2 is a second flowchart of a method for starting an ETT operation according to an embodiment of the present invention, and as shown in fig. 2, the method for starting an ETT operation further includes step S201 and step S202.
Step S201, if the running state of at least one of the virtual head jobs is not running, repeatedly querying the running state of each virtual head job from the batch job running control table according to a preset query waiting time and a preset maximum query number until the running state of each virtual head job is queried to be running or the query number reaches the maximum query number.
And step S202, if the query times reach the maximum query times, generating a loading exception report.
In the embodiment of the present invention, if the virtual head job check finds that there is a certain virtual head job in an un-running state, it proves that the corresponding AD is not loaded successfully, so that polling judgment (repeated query) needs to be performed, and if the maximum query number in the parameter configuration b is not reached (for example, 20 times in the parameter example), the step S103 is executed again; if the upper limit of the cycle times is reached, the AD can not be loaded normally under the query waiting time and the maximum query times set by the system, the service execution flow needs to be interrupted, and manual intervention processing is needed. The program will execute an interrupt and output a load exception report (containing the name of the AD that did not load successfully, and the name of the virtual head job).
In the whole process, before the check is passed, the operation for really realizing the business processing is not executed actually. And after the checking program ensures that all the ADs are loaded successfully, the subsequent flow processing is opened, so that the overall availability of the ETT is ensured fundamentally.
In an optional embodiment of the present invention, the querying of the running state of each virtual head job according to the preset batch job running control table in step S103 may specifically be: inquiring the running state of each virtual head job from a preset batch job running control table according to preset virtual head job information, wherein the virtual head job information comprises: the job group name and the virtual head job name corresponding to each job group name.
In an optional embodiment of the present invention, the querying of the running state of each virtual head job according to the preset batch job running control table in step S103 may specifically be: after loading of each job group in the ETT is started, waiting for preset query waiting time, and querying the running state of each virtual head job from a preset batch job running control table.
It can be seen from the above embodiments that the method for starting the ETT operation of the present invention effectively ensures the stability and the integrity of the ETT operation. The method comprises the following specific steps:
1. before the AD in the ETT is not loaded, polling waiting is carried out, and the subsequent AD business process processing is started after all the AD is loaded successfully, so that the overall atomicity and reliability in the ETT are ensured.
2. The automatic operation and maintenance level is improved, and the fault occurrence rate is reduced.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Based on the same inventive concept, the embodiment of the present invention further provides an apparatus for starting an ETT operation, which can be used to implement the method for starting an ETT operation described in the above embodiment, as described in the following embodiment. Because the principle of the apparatus for starting the ETT operation to solve the problem is similar to the method for starting the ETT operation, the embodiment of the apparatus for starting the ETT operation may refer to the embodiment of the method for starting the ETT operation, and repeated parts are not described again. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a first structural block diagram of an apparatus for starting an ETT operation according to an embodiment of the present invention, and as shown in fig. 3, the apparatus for starting an ETT operation according to an embodiment of the present invention includes:
a job group loading unit 1, configured to load each job group in the ETT, where each job group includes a virtual head job and a real head job;
a virtual head job starting unit 2 configured to start each of the virtual head jobs;
an operation state query unit 3, configured to query an operation state of each virtual head job according to a preset batch job operation control table, where the batch job operation control table is used to record an operation state of each job in the ETT;
and the real head operation starting unit 4 is configured to start the real head operation used for starting the service flow in the ETT if the running state of each virtual head operation is already running.
Fig. 4 is a second structural block diagram of the apparatus for starting the ETT operation according to the embodiment of the present invention, and as shown in fig. 4, the apparatus for starting the ETT operation according to the embodiment of the present invention further includes:
a repeated query unit 5, configured to query the running state of each virtual head job from the batch job running control table repeatedly according to a preset query waiting time and a preset maximum query frequency when the running state of at least one virtual head job is not running, until the running state of each virtual head job is queried to be already running or the query frequency reaches the maximum query frequency;
and the loading exception report generating unit 6 is used for generating a loading exception report when the query times reach the maximum query times.
In an optional embodiment of the present invention, the running state querying unit 3 is specifically configured to query, according to preset virtual header job information, a running state of each virtual header job from a preset batch job running control table, where the virtual header job information includes: the job group name and the virtual head job name corresponding to each job group name.
In an optional embodiment of the present invention, the running state querying unit 3 is specifically configured to wait for a preset querying waiting time after starting to load each job group in the ETT, and then query the running state of each virtual head job from a preset batch job running control table.
In the embodiment of the present invention, the operating conditions of the real head job include: the running state of the virtual head operation corresponding to the real head operation is running.
To achieve the above object, according to another aspect of the present application, there is also provided a computer apparatus. As shown in fig. 13, the computer device comprises a memory, a processor, a communication interface and a communication bus, wherein a computer program that can be run on the processor is stored in the memory, and the steps of the method of the embodiment are realized when the processor executes the computer program.
The processor may be a Central Processing Unit (CPU). The Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or a combination thereof.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and units, such as the corresponding program units in the above-described method embodiments of the present invention. The processor executes various functional applications of the processor and the processing of the work data by executing the non-transitory software programs, instructions and modules stored in the memory, that is, the method in the above method embodiment is realized.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor, and the like. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be coupled to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more units are stored in the memory and when executed by the processor perform the method of the above embodiments.
The specific details of the computer device may be understood by referring to the corresponding related descriptions and effects in the above embodiments, and are not described herein again.
In order to achieve the above object, according to another aspect of the present application, there is also provided a computer-readable storage medium storing a computer program which, when executed in a computer processor, implements the steps in the above method of initiating an ETT run. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (12)
1. A method of initiating an ETT operation, comprising:
loading each operation group in the ETT, wherein each operation group comprises a virtual head operation and a real head operation;
starting each virtual head operation;
inquiring the running state of each virtual head job according to a preset batch job running control table, wherein the batch job running control table is used for recording the running state of each job in the ETT;
and if the running state of each virtual head operation is running, starting the real head operation used for starting the business process in the ETT.
2. The method of initiating ETT operation according to claim 1, further comprising:
if the running state of at least one virtual head job is not running, repeatedly inquiring the running state of each virtual head job from the batch job running control table according to preset inquiry waiting time and preset maximum inquiry times until the running state of each virtual head job is inquired to be running or the inquiry times reach the maximum inquiry times;
and if the query times reach the maximum query times, generating a loading exception report.
3. The method for starting ETT operation according to claim 1, wherein the querying out the operation state of each virtual head job according to a preset batch job operation control table specifically includes:
inquiring the running state of each virtual head job from a preset batch job running control table according to preset virtual head job information, wherein the virtual head job information comprises: the job group name and the virtual head job name corresponding to each job group name.
4. The method for starting ETT operation according to claim 1, wherein the querying out the operation state of each virtual head job according to a preset batch job operation control table specifically includes:
after loading of each job group in the ETT is started, waiting for preset query waiting time, and querying the running state of each virtual head job from a preset batch job running control table.
5. The method of initiating an ETT run according to claim 1, wherein the running conditions of the real head job include: the running state of the virtual head operation corresponding to the real head operation is running.
6. An apparatus for initiating an ETT operation, comprising:
the ETT comprises a job group loading unit, a real head operation unit and a virtual head operation unit, wherein the job group loading unit is used for loading each job group in the ETT, and each job group comprises a virtual head operation and a real head operation;
a virtual head job starting unit for starting each of the virtual head jobs;
the running state query unit is used for querying the running state of each virtual head job according to a preset batch job running control table, wherein the batch job running control table is used for recording the running state of each job in the ETT;
and the real head operation starting unit is used for starting the real head operation used for starting the business process in the ETT if the running state of each virtual head operation is already running.
7. The apparatus for initiating ETT operation according to claim 6, further comprising:
the repeated query unit is used for repeatedly querying the running state of each virtual head job from the batch job running control table according to preset query waiting time and preset maximum query times when the running state of at least one virtual head job is not running until the running state of each virtual head job is queried to be running or the query times reach the maximum query times;
and the loading exception report generating unit is used for generating a loading exception report when the query times reach the maximum query times.
8. The apparatus for starting ETT operation according to claim 7, wherein the running state querying unit is specifically configured to query, according to preset virtual head job information, a running state of each virtual head job from a preset batch job running control table, where the virtual head job information includes: the job group name and the virtual head job name corresponding to each job group name.
9. The apparatus for starting ETT operation according to claim 6, wherein the running state querying unit is specifically configured to wait for a preset query waiting time after starting to load each job group in the ETT, and query the running state of each virtual head job from a preset batch job running control table.
10. The apparatus for initiating an ETT run according to claim 6, wherein the running condition of the real head job includes: the running state of the virtual head operation corresponding to the real head operation is running.
11. 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 5 when executing the computer program.
12. A computer-readable storage medium, in which a computer program is stored which, when executed in a computer processor, implements the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010806933.5A CN111930475B (en) | 2020-08-12 | 2020-08-12 | Method and device for starting ETT operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010806933.5A CN111930475B (en) | 2020-08-12 | 2020-08-12 | Method and device for starting ETT operation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111930475A true CN111930475A (en) | 2020-11-13 |
CN111930475B CN111930475B (en) | 2023-08-04 |
Family
ID=73310747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010806933.5A Active CN111930475B (en) | 2020-08-12 | 2020-08-12 | Method and device for starting ETT operation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111930475B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104036358A (en) * | 2014-06-12 | 2014-09-10 | 华夏银行股份有限公司 | Automated banking operation scheduling system |
-
2020
- 2020-08-12 CN CN202010806933.5A patent/CN111930475B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104036358A (en) * | 2014-06-12 | 2014-09-10 | 华夏银行股份有限公司 | Automated banking operation scheduling system |
Also Published As
Publication number | Publication date |
---|---|
CN111930475B (en) | 2023-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020211579A1 (en) | Processing method, device and system for distributed bulk processing system | |
CA2767667C (en) | Fault tolerant batch processing | |
EP2600246B1 (en) | Batch processing of business objects | |
CN113157710B (en) | Block chain data parallel writing method and device, computer equipment and storage medium | |
CN113157411B (en) | Celery-based reliable configurable task system and device | |
CN110955506A (en) | Distributed job scheduling processing method | |
CN111353766A (en) | Service process processing system and method of distributed service system | |
CN111930475B (en) | Method and device for starting ETT operation | |
US11372633B2 (en) | Method, device and terminal apparatus for code execution and computer readable storage medium | |
CN107958414B (en) | Method and system for eliminating long transactions of CICS (common integrated circuit chip) system | |
CN106055322A (en) | Flow scheduling method and device | |
JP7458512B2 (en) | Distributed transaction processing method, terminal and computer readable storage medium | |
CN112860389A (en) | Task scheduling method based on state machine | |
AU2014274491B2 (en) | Fault tolerant batch processing | |
JP2022013618A (en) | Distributed storage method and apparatus, electronic device, computer-readable storage medium, and computer program product | |
CN113886040A (en) | Task scheduling method and device | |
KR20220082532A (en) | System and method for process scheduling | |
CN118012584A (en) | Distributed task scheduling method applied to space wing cloud backup product | |
CN116644058A (en) | Method for creating database based on relational database management system | |
CN118034904A (en) | Scheduling method, scheduling device, scheduling equipment and computer readable storage medium | |
CN115114023A (en) | Thread allocation method, system, terminal and storage medium for thread pool | |
CN118363728A (en) | Method and device for controlling multitasking, storage medium and electronic device | |
CN118631919A (en) | Equipment capability acquisition method, device, client and storage medium | |
CN118260043A (en) | Batch job scheduling method, system, computer device and readable storage medium | |
CN115564190A (en) | Method and device for executing workflow, electronic equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |