CN117994015A - Bank job batch scheduling method and device, electronic equipment and storage medium - Google Patents

Bank job batch scheduling method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117994015A
CN117994015A CN202410406807.9A CN202410406807A CN117994015A CN 117994015 A CN117994015 A CN 117994015A CN 202410406807 A CN202410406807 A CN 202410406807A CN 117994015 A CN117994015 A CN 117994015A
Authority
CN
China
Prior art keywords
job
execution
batch
jobs
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410406807.9A
Other languages
Chinese (zh)
Inventor
罗烨敏
何良玉
林锋
吴晓龙
李上上
唐思敏
习杨
张政
邹泓杨
陈阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizhou Merchants Bank Co ltd
Original Assignee
Meizhou Merchants Bank Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizhou Merchants Bank Co ltd filed Critical Meizhou Merchants Bank Co ltd
Priority to CN202410406807.9A priority Critical patent/CN117994015A/en
Publication of CN117994015A publication Critical patent/CN117994015A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)

Abstract

The invention discloses a method, a device, electronic equipment and a storage medium for batch scheduling of bank jobs, and relates to the technical field of computers. The method comprises the following steps: configuring an execution system of each job and a dependency relationship between each job; acquiring batch jobs to be scheduled; judging whether the batch jobs have dependency across an execution system according to the execution system of each job and the dependency relationship among each job in the batch jobs to be scheduled, if not, executing the batch jobs by a single-system batch scheduling module according to the dependency relationship among each job; if yes, the whole-row batch scheduling module sends a job execution instruction to an execution system of each job according to the dependency relationship among the jobs, so that the execution system of each job executes the job. By the method, the dispatching of the batch operation of the banks can be realized.

Description

Bank job batch scheduling method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for batch scheduling of banking jobs, an electronic device, and a storage medium.
Background
At present, a banking transaction processing system generally comprises two modes of online transaction and batch processing transaction, wherein online transaction refers to processing a single business request initiated by a client in real time, returning a processing result of the single business request to the client in a shorter time, and notifying the client whether the business is successfully transacted; the batch processing transaction refers to that a bank processes a batch of data meeting specific conditions in a fixed time period, and is used for calculating the batch of businesses such as loan deposit of a customer or carrying out statistical analysis for meeting the daily operation and management requirements of the bank, and the processed result does not need to inform the customer in real time.
For batch processing transactions of banking jobs, a scheduling method capable of coping with the banking jobs is needed.
Disclosure of Invention
In order to solve the problem that in the prior art, for batch processing transactions of bank jobs, a scheduling method capable of coping with the bank batch jobs is needed, the invention provides the following technical scheme.
The invention provides a method for batch scheduling of bank jobs, which comprises the following steps:
Determining the operation related to banking transaction business, and configuring an execution system of each operation and the dependency relationship between each operation;
Acquiring batch jobs to be scheduled;
Judging whether the batch job has dependency across an execution system according to the execution system of each job in the batch job to be scheduled and the dependency relationship between each job;
If not, executing batch jobs by a single-system batch scheduling module according to the dependency relationship among the jobs, wherein the single-system batch scheduling module is used for scheduling the jobs which are executed by the same execution system;
If yes, the full-line batch scheduling module sends a job execution instruction to an execution system of each job according to the dependency relationship among the jobs, so that the execution system of each job executes the job, wherein the full-line batch scheduling module is used for scheduling each job which depends on different execution systems for execution.
Further, the method further comprises: configuring execution starting time of each job; when the dependency of the cross execution system does not exist among the jobs, executing the batch jobs in the same execution system by the single-system batch scheduling module according to the dependency relationship among the jobs and the execution starting time;
When the dependency of each job across the execution system exists, the whole row-level batch scheduling module sends a job execution instruction to the execution system of each job according to the dependency relationship and the execution starting time of each job.
Further, the full row-level batch scheduling module is communicated with the execution system through a standard interface; wherein the standard interface comprises: the system comprises a job starting interface, a job restarting interface, a progress feedback interface and a state query interface; the input parameters of the job starting interface comprise the content of an execution instruction, the name of a job, the identification of recorded job execution information and running batch parameters, and the output parameters comprise the identification of recorded job execution information, a first job state, job processing information, a job instance and a job execution percentage; the input parameters of the job restarting interface comprise the content of an execution instruction, the name of a job, the identification of recorded job execution information and running batch parameters, and the output parameters comprise the identification of recorded job execution information, a second job state, job processing information, a job instance and a job execution percentage; the input parameters of the progress feedback interface comprise the content of an execution instruction, the identification of recording job execution information and a third job state; the input parameters of the state query interface comprise the content of an execution instruction, the name of a job and the identification of recorded job execution information, and the output parameters comprise the identification of recorded job execution information, the fourth job state, job processing information and the job execution percentage.
Further, after executing the job, the method further comprises: recording job execution information according to a preset log format, wherein the log format comprises the following steps: system name, batch job execution date, identification of job, job name, job status, job start time, job end time, job failure cause, and job update timestamp.
In a second aspect of the present invention, there is provided an apparatus for batch scheduling of banking jobs, comprising:
The configuration module is used for determining the operation related to the banking transaction business and configuring the execution system of each operation and the dependency relationship between each operation;
The acquisition module is used for acquiring batch jobs to be scheduled;
The judging module is used for judging whether the batch job has dependency across the execution system according to the execution system of each job and the dependency relationship among each job in the batch job to be scheduled;
The single-system batch scheduling module is used for scheduling each job which depends on the execution system to execute the batch job according to the dependency relationship among each job; and if the judgment module judges that the operation is yes, the full-line batch scheduling module sends an operation execution instruction to an execution system of each operation according to the dependency relationship among the operations so that the execution system of each operation executes the operation, wherein the full-line batch scheduling module is used for scheduling each operation which depends on different execution systems for execution.
Further, the configuration module is further configured to configure execution start time of each job; the call execution module is also used for executing batch jobs in the same execution system by the single-system batch scheduling module according to the dependency relationship and the execution starting time among the jobs when the dependency across the execution system does not exist among the jobs; when the dependency of each job across the execution system exists, the whole row-level batch scheduling module sends a job execution instruction to the execution system of each job according to the dependency relationship and the execution starting time of each job.
Further, the full row-level batch scheduling module is communicated with the execution system through a standard interface; wherein the standard interface comprises: the system comprises a job starting interface, a job restarting interface, a progress feedback interface and a state query interface; the input parameters of the job starting interface comprise the content of an execution instruction, the name of a job, the identification of recorded job execution information and running batch parameters, and the output parameters comprise the identification of recorded job execution information, a first job state, job processing information, a job instance and a job execution percentage; the input parameters of the job restarting interface comprise the content of an execution instruction, the name of a job, the identification of recorded job execution information and running batch parameters, and the output parameters comprise the identification of recorded job execution information, a second job state, job processing information, a job instance and a job execution percentage; the input parameters of the progress feedback interface comprise the content of an execution instruction, the identification of recording job execution information and a third job state; the input parameters of the state query interface comprise the content of an execution instruction, the name of a job and the identification of recorded job execution information, and the output parameters comprise the identification of recorded job execution information, the fourth job state, job processing information and the job execution percentage.
Further, after invoking the execution module to execute the job, the apparatus further includes: the log recording module is used for recording the job execution information according to a preset log format, wherein the log format comprises the following steps: system name, batch job execution date, identification of job, job name, job status, job start time, job end time, job failure cause, and job update timestamp.
A third aspect of the invention provides an electronic device comprising a processor and a memory, the memory storing a plurality of instructions, the processor being for reading the instructions and performing the method according to the first aspect.
A fourth aspect of the invention provides a computer readable storage medium storing a plurality of instructions readable by a processor and for performing the method of the first aspect.
The method, the device, the electronic equipment and the storage medium for batch scheduling of the bank jobs have the following beneficial effects: the invention sets a whole-row batch scheduling module for different execution systems together for scheduling the jobs which depend on the different execution systems for execution, sets a single-system batch scheduling module for each execution system for scheduling the jobs which depend on the same execution system for execution, can realize the scheduling of the bank batch jobs, and combines the two to jointly execute the batch scheduling of the bank jobs, the whole-row batch scheduling module can solve the problem that the single-system batch scheduling module cannot execute the jobs which cross the execution systems, and the single-system batch scheduling module can avoid the fault risk and the performance risk brought by the whole-row batch scheduling module.
Drawings
Fig. 1 is a flow chart of a method for batch scheduling of banking jobs according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a call chain according to an embodiment of the present invention.
Fig. 3 is a schematic block diagram of a device for batch scheduling of banking jobs according to an embodiment of the present invention.
Detailed Description
In order to better understand the above technical solutions, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
The method provided by the invention can be implemented in a terminal environment, and the terminal can comprise one or more of the following components: processor, memory and display screen. Wherein the memory stores at least one instruction that is loaded and executed by the processor to implement the method described in the embodiments below.
The processor may include one or more processing cores. The processor connects various parts within the overall terminal using various interfaces and lines, performs various functions of the terminal and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory, and invoking data stored in the memory.
The Memory may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). The memory may be used to store instructions, programs, code, sets of codes, or instructions.
The display screen is used for displaying a user interface of each application program.
In addition, it will be appreciated by those skilled in the art that the structure of the terminal described above is not limiting and that the terminal may include more or fewer components, or may combine certain components, or a different arrangement of components. For example, the terminal further includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a power supply, and the like, which are not described herein.
Example 1
As shown in fig. 1, the embodiment provides a method for batch scheduling of banking jobs, which specifically includes the following steps.
S101: and determining the jobs related to the banking transaction business, and configuring an execution system of each job and the dependency relationship between each job.
In the embodiment of the invention, the operation refers to the sub-operation of a bank transaction operation which is commonly completed by each execution system of the bank distributed system, each sub-operation is called an operation, and one execution system can execute one operation or can execute a plurality of operations. For example, completing a banking transaction involves a "generate core reconciliation file" job and a "cut day" job for a credit system (an execution system), a "generate core reconciliation file" job for a billing system (an execution system), a "generate core reconciliation file" job for a financial system (an execution system), a "generate core reconciliation file" job for a funds system (an execution system), a "cut day" job for a core system (an execution system), and a "reconciliation file" job for a waiting peripheral system.
In the embodiment of the present invention, the dependency relationship between the jobs refers to the sequence of the jobs involved in completing a certain banking transaction, and the jobs must be executed according to the sequence of the jobs. For example, assume that completing a certain banking transaction involves job 1, job 2, and job 3, and the order of each job is to execute job 1 first, then job 3, and finally job 2.
In the embodiment of the invention, for each banking transaction service, determining which of the jobs related to the daily terminal batch of the bank exists in advance, and then configuring the execution system of the jobs related to the daily terminal batch and the dependency relationship among the jobs, and recording the dependency relationship in a configuration file.
S102: and obtaining batch jobs to be scheduled.
Furthermore, in the embodiment of the invention, after the dependency relationship between the execution system of each job and each job related to the final daily batch is configured, the batch job of the bank can be scheduled according to the formed configuration file.
In the implementation of the invention, the batch job of the bank needs to be scheduled, and the batch job to be scheduled needs to be acquired first.
S103: judging whether the batch job has dependency across an execution system according to the execution system of each job in the batch job to be scheduled and the dependency relationship between each job; if yes, step S105 is executed, and if no, step S104 is executed.
Furthermore, as the core of the invention is to commonly set a full-line-level batch scheduling module for different execution systems, the full-line-level batch scheduling module is used for scheduling each job which depends on the execution of the different execution systems. And setting a single-system batch scheduling module for each execution system, wherein the single-system batch scheduling module is used for scheduling each job which depends on the same execution system to execute. Therefore, in the embodiment of the present invention, after a batch job to be scheduled is acquired, it is required to determine whether a full-line-level batch scheduling module or a single-system batch scheduling module is used for each job in the batch job to be scheduled.
Further, since the full-line-level batch scheduling module is a job calling between different execution systems, and the single-system batch scheduling module is a job calling the same execution system, in the embodiment of the present invention, it is determined whether each job uses the full-line-level batch scheduling module or the single-system batch scheduling module, and whether the batch job to be scheduled depends on the batch jobs of other systems or not can be determined according to whether the batch job to be scheduled depends on the batch jobs of other systems, that is, according to the dependency relationship between the execution system of each job and each job in the batch job to be scheduled, whether the batch job has a dependency across execution systems or not is determined.
Here, the final daily batch of the bank needs to be completed by a plurality of systems depending on each other. For example, a "cut-day" job for a credit system (an execution system) depends on a "cut-day" job for a core system (an execution system); the "wait for peripheral system account-for" job of the core system (an execution system) depends on the "generate core account-for" job of the ticket system (an execution system), the "generate core account-for" job of the financial system (an execution system), the "generate core account-for" job of the fund system (an execution system) and the "generate core account-for" job of the credit system (an execution system), which form a cross-system dependency relationship, as shown in fig. 2.
As another example, a "pre-day cut processing" job and a "post-day cut processing" job in a credit system are independent of the batch jobs of other systems, as shown in fig. 2.
It should be noted that, in the credit system (an execution system) of fig. 2, the "generate core account-merging file" job and the "cut date" job, the "generate core account-merging file" job of the bill system (an execution system), the "generate core account-merging file" job of the financial system (an execution system), the "generate core account-merging file" job of the fund system (an execution system), the "cut date" job of the core system (an execution system) and the "wait for the account-merging file" job of the peripheral system have a sequential order between the seven jobs, but seven jobs in the call chain belong to different execution systems, so that the seven jobs are scheduled by using the full-line-level batch scheduling module; the "day cut pre-processing" and "day cut post-processing" jobs in the credit system of fig. 2 have a sequencing between them, but do not rely on the batch jobs of other systems, which are scheduled using a single system batch scheduling module provided within the credit system.
S105: and the full-line batch scheduling module sends a job execution instruction to the execution system of each job according to the dependency relationship among the jobs, so that the execution system of each job executes the job.
In the embodiment of the invention, the full row-level batch scheduling module communicates with the execution system through a standard interface, wherein the standard interface comprises: the system comprises a job starting interface, a job restarting interface, a progress feedback interface and a state query interface.
The job starting interface is used for sending a job starting instruction to the execution system by the full row batch scheduling module when the job meets the starting condition, and starting to execute the designated job after the execution system receives the instruction and synchronously returning to the processing condition; the job restarting interface is used for sending a job restarting instruction to the execution system when the job execution fails and the condition of restarting is met after manual intervention, and restarting the job after the execution system receives the instruction; the progress feedback interface is used for feeding back the execution condition of the job to the full-line batch scheduling module at regular time by the execution system; the state query interface is used for triggering the full row-level batch scheduling module to send a query instruction to the execution system when the execution system does not feed back the execution condition of the job for a long time, and querying the current state and the execution progress of the job.
The input parameters of the job starting interface comprise the content of an execution instruction, the name of a job, the identification of recorded job execution information and running batch parameters, and the output parameters comprise the identification of recorded job execution information, a first job state, job processing information, a job instance and a job execution percentage; the input parameters of the job restarting interface comprise the content of an execution instruction, the name of a job, the identification of recorded job execution information and running batch parameters, and the output parameters comprise the identification of recorded job execution information, a second job state, job processing information, a job instance and a job execution percentage; the input parameters of the progress feedback interface comprise the content of an execution instruction, the identification of recording job execution information and a third job state; the input parameters of the state query interface include the content of the execution instruction, the name of the job and the identification of the recorded job execution information, and the output parameters include the identification of the recorded job execution information, the fourth job state, the job processing information and the job execution percentage, as shown in table 1.
TABLE 1
Standard interface name Interface function Inputting parameters Output parameters
Operation starting interface When the job meets the starting condition, the whole row batch scheduling module sends an instruction for starting the job to the execution system of each job, and the execution system starts to execute the designated job after receiving the instruction and synchronously returns to the processing condition Cmd—the content of the execution instruction; jobName-the name of the job; jobRequestId-recording the identification of the job execution information; jobParameter-run lot parameters; jobRequestId-recording the identification of the job execution information; onejobStatus-first operating state: 0-batch start exception (no decision on whether start was successful by itself); 4-in batch job execution (i.e., successful start-up and job information library drop-out); a-batch job execution failure; b-batch job execution is completed; c-no job or no execution condition (e.g., internal check failed, cannot be started); jobMesg-job handling information; jobInstanceId-job instance; jobPerct-percentage of job execution;
Job restarting interface When the task fails to be executed and the running condition is met after the manual intervention, the whole-row batch scheduling module sends an instruction for restarting the task to an execution system of each task, and the execution system restarts the task after receiving the instruction Cmd—the content of the execution instruction; jobName-the name of the job; jobRequestId-recording the identification of the job execution information; jobParameter-run lot parameters; jobRequestId-recording the identification of the job execution information; towjobStatus-second operating state: 0-batch start exception (no decision on whether start was successful by itself); 4-in batch job execution (i.e., successful start-up and job information library drop-out); a-batch job execution failure; b-batch job execution is completed; c-no job or no execution condition (e.g., internal check failed, cannot be started); jobMesg-job handling information; jobInstanceId-job instance; jobPerct-percentage of job execution;
Progress feedback interface The execution system of each job feeds back the execution condition of the job to the full-line-level batch scheduling module at regular time Cmd—the content of the execution instruction, instruction feedbackJob; jobRequestId-recording the identification of the job execution information; threejobStatus-third operating state: 4-in execution; 5-pause; 6-paused; 7-termination; 8-terminated; a-failure; b-finishing; Without any means for
State query interface When the execution system of each job does not feed back the execution condition of the job for a long time, the whole-row batch scheduling module is triggered to send a query instruction to the execution system of each job to query the current state and execution progress of the job Cmd—the content of the execution instruction; jobName-the name of the job; jobRequestId-recording the identification of the job execution information; jobRequestId-recording the identification of the job execution information; fourjobStatus-fourth operating state: 0-query execution exception (current state cannot be known); 4-in batch job execution; 5-in batch job suspension; 6-batch job has been paused; 7-in batch job termination; 8-batch job has terminated; a-batch job execution failure; b-batch job execution is completed; c-job is absent; jobMesg-job handling information; jobPerct-percentage of job execution;
The first job state, the second job state, the third job state and the fourth job state may be the same or different and do not affect each other, wherein the first job state includes a batch start exception, a batch job execution failure, a batch job execution completion, no job or no execution condition; the second job state comprises a batch start exception, batch job execution failure, batch job execution completion, no job or no execution condition; the third job state includes executing, suspending, terminating, failing, completing; the fourth job state includes query execution exception, in execution of a batch job, in suspension of a batch job, suspended in a batch job, terminated in a batch job, failed execution of a batch job, completed execution of a batch job, and absence of a job.
S104: and executing batch jobs by the single-system batch scheduling module according to the dependency relationship among the jobs.
In the embodiment of the invention, the single-system batch scheduling module is positioned inside each execution system, each execution system is provided with a single-system batch scheduling module, and for each execution system, the single-system batch scheduling module in the execution system is used for distributing own examples in the execution system and scheduling the jobs in the execution system.
By the method, a full-line-level batch scheduling module is commonly arranged for different execution systems and used for scheduling jobs which depend on the execution of the different execution systems, and a single-system batch scheduling module is arranged for each execution system and used for scheduling jobs which depend on the execution of the same execution system, so that the scheduling of the bank batch jobs can be realized.
Further, in order to more orderly execute each job by the single-system batch scheduling module and the full-line batch scheduling module, in the embodiment of the present invention, the execution system of each job and the dependency relationship between each job are configured, and at the same time, the execution start time of each job needs to be configured.
In the subsequent process of executing step S104 and step S105, when the dependency across execution systems does not exist among the jobs, executing batch jobs in the same execution system by the single-system batch scheduling module according to the dependency relationship among the jobs and the execution starting time; when the dependency of each job across the execution system exists, the whole row-level batch scheduling module sends a job execution instruction to the execution system of each job according to the dependency relationship and the execution starting time of each job.
In practical applications, if each execution system uses an independent single-system batch scheduling module, jobs executed by different execution systems cannot be processed. If the bank distributed system shares a full-line-level batch scheduling module, the defects are that if the full-line-level batch scheduling module fails or is abnormal, confusion of full-line batch enterprises is caused, inconsistent data is caused, and misaccounts and other disasters affecting customer service are caused; secondly, when the system scale is relatively large, performance bottlenecks are easy to appear in the full-row-level batch scheduling module, and scheduling of the jobs cannot be completed efficiently. The invention combines the two to jointly execute the batch scheduling of the bank jobs, the full-row-level batch scheduling module can solve the problem that the single-system batch scheduling module cannot execute the cross-execution-system jobs, and the single-system batch scheduling module can avoid the fault risk and the performance risk brought by the full-row-level batch scheduling module.
Further, in order to monitor the execution condition of the batch job of the full-line batch scheduling module and the single-system batch scheduling module, in the embodiment of the invention, no matter the full-line batch scheduling module or the single-system batch scheduling module, in the process of executing the batch job, the job execution information needs to be recorded according to a preset log format. Wherein the log format includes: system name, batch job execution date, identification of job, job name, job status, job start time, job end time, job failure cause, and job update timestamp, as shown in table 2.
TABLE 2
It should be noted here that for the update of this table 2, the following manner may be followed:
1. Batch job initialization
And inserting all job information which needs to be executed in batches on the same day into the table, wherein each table is recorded, and the job state is unexecuted.
2. Job execution
The job status is set to E, and the job start time is registered.
3. Successful operation
The job status is set to S, and the job end time is registered.
4. Failure of job
The job status is set to F, and the failure cause of the job is registered at the same time.
Further, in order to monitor the execution condition of BATCH jobs of the full-line-level BATCH scheduling module and the single-system BATCH scheduling module conveniently, a BATCH_STATUS information table recorded by each execution system can be collected and then displayed to a user in the form of table 3.
TABLE 3 Table 3
When a certain execution system is selected, the detailed execution condition of each job in the execution system may be checked, as shown in table 4.
TABLE 4 Table 4
Job name Start time End time Results
Work 001 Time 8 Time 9 State 1
Operation 002 Time 10 State 2
Job 003 Time 11 Time 12 State 3
...... ...... ...... ......
For example: the monitoring effect output after the BATCH_STATUS table information of each execution system is collected is shown in Table 5.
TABLE 5
System name Predicted start time Actual start time Estimated end time Real-time end time Status of
Core(s) 22:00 22:05 22:30 In execution
Credit 21:00 21:05 21:30 21:25 Ending
Bill for bill 20:00 20:05 20:30 Error-making
Funds 23:00 23:50 Not start
When a core system is selected, the detailed execution of each job in the core system can be checked, as shown in table 6.
TABLE 6
Job name Start time End time Results
JOB001 22:00 22:05 Success of
JOB002 21:00 In execution
JOB003 20:00 20:05 Failure of
JOB004 23:00 Not start
Example two
The embodiment provides a device for batch scheduling of banking jobs, as shown in fig. 3, including: a configuration module 301, configured to determine a job related to a banking transaction service, and configure an execution system of each job and a dependency relationship between each job; an obtaining module 302, configured to obtain a batch job to be scheduled; a judging module 303, configured to judge whether a batch job has a dependency across execution systems according to an execution system of each job and a dependency relationship between each job in the batch job to be scheduled; the call execution module 304 is configured to execute a batch job by a single-system batch scheduling module according to a dependency relationship between jobs if the determination module 303 determines that the determination module is negative, where the single-system batch scheduling module is configured to schedule each job that depends on the same execution system to execute; if the judgment module 303 judges that the job is executed, a job execution instruction is sent to the execution system of each job by a full-line batch scheduling module according to the dependency relationship between each job, so that the execution system of each job executes the job, wherein the full-line batch scheduling module is used for scheduling each job executed by different execution systems.
The configuration module 301 is further configured to configure an execution start time of each job; the call execution module 304 is further configured to execute, by the single-system batch scheduling module, batch jobs according to a dependency relationship and an execution start time between the jobs when no dependency across execution systems exists between the jobs; when the dependency of each job across the execution system exists, the whole row-level batch scheduling module sends a job execution instruction to the execution system of each job according to the dependency relationship and the execution starting time of each job.
The full row-level batch scheduling module is communicated with the execution system through a standard interface; wherein the standard interface comprises: the system comprises a job starting interface, a job restarting interface, a progress feedback interface and a state query interface; the input parameters of the job starting interface comprise the content of an execution instruction, the name of a job, the identification of recorded job execution information and running batch parameters, and the output parameters comprise the identification of recorded job execution information, a first job state, job processing information, a job instance and a job execution percentage; the input parameters of the job restarting interface comprise the content of an execution instruction, the name of a job, the identification of recorded job execution information and running batch parameters, and the output parameters comprise the identification of recorded job execution information, a second job state, job processing information, a job instance and a job execution percentage; the input parameters of the progress feedback interface comprise the content of an execution instruction, the identification of recording job execution information and a third job state; the input parameters of the state query interface comprise the content of an execution instruction, the name of a job and the identification of recorded job execution information, and the output parameters comprise the identification of recorded job execution information, the fourth job state, job processing information and the job execution percentage.
The apparatus further comprises: the log recording module 305 is configured to record, after the execution module 304 is invoked to execute the job, job execution information according to a preset log format, where the log format includes: system name, batch job execution date, identification of job, job name, job status, job start time, job end time, job failure cause, and job update timestamp.
The device may implement the method for batch scheduling of banking jobs provided in the first embodiment, and the specific prediction method may be described in the first embodiment, which is not described herein.
Example III
The present invention provides an electronic device comprising a processor and a memory, the memory storing a plurality of instructions, the processor being configured to read the instructions and perform any of the methods of the previous embodiments. Wherein the processor and the memory may be connected by a bus or otherwise, for example by a bus connection. The processor may be a central processing unit (Central Processing Unit, CPU). The Processor may also be other general purpose processors, digital Signal Processors (DSP), application SPECIFIC INTEGRATED Circuits (ASIC), field-Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above.
The memory is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods in embodiments of the present application. The processor executes various functional applications of the processor and data processing, i.e., implements the methods of the method embodiments described above, by running non-transitory software programs, instructions, and modules stored in memory.
The memory may include a memory program area and a memory data area, wherein the memory program area may store an operating system, at least one application program required for a function; the storage data area may store data created by the processor, etc. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory may optionally include memory located remotely from the processor, the remote memory being connectable to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Example IV
The present invention also provides a computer readable storage medium storing a plurality of instructions that can be loaded by the processor and perform any of the methods of embodiment one. The computer readable storage medium may be a tangible storage medium such as Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, floppy disks, hard disk, a removable memory disk, a CD-ROM, or any other form of storage medium known in the art.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention. It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A method for batch scheduling of banking jobs, comprising:
Determining the operation related to banking transaction business, and configuring an execution system of each operation and the dependency relationship between each operation;
Acquiring batch jobs to be scheduled;
Judging whether the batch job has dependency across an execution system according to the execution system of each job in the batch job to be scheduled and the dependency relationship between each job;
If not, executing batch jobs by a single-system batch scheduling module according to the dependency relationship among the jobs, wherein the single-system batch scheduling module is used for scheduling the jobs which are executed by the same execution system;
If yes, the full-line batch scheduling module sends a job execution instruction to an execution system of each job according to the dependency relationship among the jobs, so that the execution system of each job executes the job, wherein the full-line batch scheduling module is used for scheduling each job which depends on different execution systems for execution.
2. The method of batch scheduling of banking jobs as claimed in claim 1, further comprising:
configuring execution starting time of each job;
when the dependency of the cross execution system does not exist among the jobs, executing the batch jobs in the same execution system by the single-system batch scheduling module according to the dependency relationship among the jobs and the execution starting time;
When the dependency of each job across the execution system exists, the whole row-level batch scheduling module sends a job execution instruction to the execution system of each job according to the dependency relationship and the execution starting time of each job.
3. The method of claim 1, wherein the full row-level batch scheduling module communicates with the execution system via a standard interface; wherein the standard interface comprises: the system comprises a job starting interface, a job restarting interface, a progress feedback interface and a state query interface;
The input parameters of the job starting interface comprise the content of an execution instruction, the name of a job, the identification of recorded job execution information and running batch parameters, and the output parameters comprise the identification of recorded job execution information, a first job state, job processing information, a job instance and a job execution percentage;
The input parameters of the job restarting interface comprise the content of an execution instruction, the name of a job, the identification of recorded job execution information and running batch parameters, and the output parameters comprise the identification of recorded job execution information, a second job state, job processing information, a job instance and a job execution percentage;
The input parameters of the progress feedback interface comprise the content of an execution instruction, the identification of recording job execution information and a third job state;
The input parameters of the state query interface comprise the content of an execution instruction, the name of a job and the identification of recorded job execution information, and the output parameters comprise the identification of recorded job execution information, the fourth job state, job processing information and the job execution percentage.
4. The method of claim 1, further comprising, after executing the job:
Recording job execution information according to a preset log format, wherein the log format comprises the following steps: system name, batch job execution date, identification of job, job name, job status, job start time, job end time, job failure cause, and job update timestamp.
5. An apparatus for batch scheduling of banking jobs, comprising:
The configuration module is used for determining the operation related to the banking transaction business and configuring the execution system of each operation and the dependency relationship between each operation;
The acquisition module is used for acquiring batch jobs to be scheduled;
The judging module is used for judging whether the batch job has dependency across the execution system according to the execution system of each job and the dependency relationship among each job in the batch job to be scheduled;
The single-system batch scheduling module is used for scheduling each job which depends on the execution system to execute the batch job according to the dependency relationship among each job; and if the judgment module judges that the operation is yes, the full-line batch scheduling module sends an operation execution instruction to an execution system of each operation according to the dependency relationship among the operations so that the execution system of each operation executes the operation, wherein the full-line batch scheduling module is used for scheduling each operation which depends on different execution systems for execution.
6. The apparatus for batch scheduling of banking jobs as claimed in claim 5, wherein the configuration module is further configured to configure execution start time of each job; the call execution module is also used for executing batch jobs in the same execution system by the single-system batch scheduling module according to the dependency relationship and the execution starting time among the jobs when the dependency across the execution system does not exist among the jobs; when the dependency of each job across the execution system exists, the whole row-level batch scheduling module sends a job execution instruction to the execution system of each job according to the dependency relationship and the execution starting time of each job.
7. The apparatus for batch scheduling of banking jobs as claimed in claim 5 wherein the full row level batch scheduling module communicates with the execution system via a standard interface; wherein the standard interface comprises: the system comprises a job starting interface, a job restarting interface, a progress feedback interface and a state query interface; the input parameters of the job starting interface comprise the content of an execution instruction, the name of a job, the identification of recorded job execution information and running batch parameters, and the output parameters comprise the identification of recorded job execution information, a first job state, job processing information, a job instance and a job execution percentage; the input parameters of the job restarting interface comprise the content of an execution instruction, the name of a job, the identification of recorded job execution information and running batch parameters, and the output parameters comprise the identification of recorded job execution information, a second job state, job processing information, a job instance and a job execution percentage; the input parameters of the progress feedback interface comprise the content of an execution instruction, the identification of recording job execution information and a third job state; the input parameters of the state query interface comprise the content of an execution instruction, the name of a job and the identification of recorded job execution information, and the output parameters comprise the identification of recorded job execution information, the fourth job state, job processing information and the job execution percentage.
8. The apparatus for batch scheduling of banking jobs as claimed in claim 5, wherein after invoking the execution module to execute the jobs, the apparatus further comprises:
The log recording module is used for recording the job execution information according to a preset log format, wherein the log format comprises the following steps: system name, batch job execution date, identification of job, job name, job status, job start time, job end time, job failure cause, and job update timestamp.
9. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions, the processor configured to read the instructions and perform the method of batch scheduling of banking jobs as claimed in any one of claims 1 to 4.
10. A computer readable storage medium having stored thereon a plurality of instructions readable by a processor and executable by the processor to perform the method of batch scheduling of banking jobs as claimed in any one of claims 1 to 4.
CN202410406807.9A 2024-04-07 2024-04-07 Bank job batch scheduling method and device, electronic equipment and storage medium Pending CN117994015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410406807.9A CN117994015A (en) 2024-04-07 2024-04-07 Bank job batch scheduling method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410406807.9A CN117994015A (en) 2024-04-07 2024-04-07 Bank job batch scheduling method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117994015A true CN117994015A (en) 2024-05-07

Family

ID=90895736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410406807.9A Pending CN117994015A (en) 2024-04-07 2024-04-07 Bank job batch scheduling method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117994015A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400139A (en) * 2020-03-18 2020-07-10 中国建设银行股份有限公司 Multi-data center batch job management and control and scheduling system, method and storage medium
CN112000451A (en) * 2020-08-19 2020-11-27 中国建设银行股份有限公司 Batch job scheduling system, method, device and storage medium
CN115829266A (en) * 2022-12-05 2023-03-21 中国农业银行股份有限公司 Method and device for job cooperation of cross-scheduling system, electronic equipment and storage medium
CN117522540A (en) * 2023-11-07 2024-02-06 北银金融科技有限责任公司 Distributed electronic bill management system based on bank

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400139A (en) * 2020-03-18 2020-07-10 中国建设银行股份有限公司 Multi-data center batch job management and control and scheduling system, method and storage medium
CN112000451A (en) * 2020-08-19 2020-11-27 中国建设银行股份有限公司 Batch job scheduling system, method, device and storage medium
CN115829266A (en) * 2022-12-05 2023-03-21 中国农业银行股份有限公司 Method and device for job cooperation of cross-scheduling system, electronic equipment and storage medium
CN117522540A (en) * 2023-11-07 2024-02-06 北银金融科技有限责任公司 Distributed electronic bill management system based on bank

Similar Documents

Publication Publication Date Title
CN107016480B (en) Task scheduling method, device and system
CN111400011B (en) Real-time task scheduling method, system, equipment and readable storage medium
CN111580939B (en) Method and device for processing transactions in hierarchical and asynchronous mode
CN113157710B (en) Block chain data parallel writing method and device, computer equipment and storage medium
CN112150262B (en) Account checking data processing method and device
CN112101955B (en) Concurrent payment method, system and device
CN114579654B (en) Unified operation management method and platform system for multi-payment settlement system of bank
WO2020253045A1 (en) Configured supplementary processing method and device for data of which forwarding has abnormality, and readable storage medium
CN115526608A (en) Batch transaction service automated processing method, system and storage medium
CN111210340A (en) Automatic task processing method and device, server and storage medium
US11861214B2 (en) Memory device forensics and preparation
CN117994015A (en) Bank job batch scheduling method and device, electronic equipment and storage medium
CN108062224B (en) Data reading and writing method and device based on file handle and computing equipment
CN115437766A (en) Task processing method and device
CN113436018A (en) Asset hosting business processing method and device, storage medium and electronic equipment
CN111488236A (en) Order abnormity processing method, server, storage medium and processing device
CN116188190A (en) Multi-batch semi-real-time reconciliation method and system for high-concurrency payment system
CN112732415B (en) Transaction processing method, device and equipment based on resource exchange proxy system
CN109714211B (en) Marketing interface troubleshooting method and terminal equipment
CN110728501B (en) Incoming part processing method and incoming part system
CN114219626A (en) Task exception handling method, device, equipment, storage medium and program product
CN116303361A (en) Service data migration method, device and system
CN116451965A (en) Service request processing method and device, computer equipment and storage medium
CN112364378A (en) Information processing method and device for order transaction operation management system
CN115658317A (en) Task processing method and device

Legal Events

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