CN112596878A - Batch processing method and device and electronic equipment - Google Patents

Batch processing method and device and electronic equipment Download PDF

Info

Publication number
CN112596878A
CN112596878A CN202011547710.8A CN202011547710A CN112596878A CN 112596878 A CN112596878 A CN 112596878A CN 202011547710 A CN202011547710 A CN 202011547710A CN 112596878 A CN112596878 A CN 112596878A
Authority
CN
China
Prior art keywords
batch
target
batches
syntax tree
unified
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
CN202011547710.8A
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.)
Shanghai I2finance Software Co ltd
Original Assignee
Shanghai I2finance Software 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 Shanghai I2finance Software Co ltd filed Critical Shanghai I2finance Software Co ltd
Priority to CN202011547710.8A priority Critical patent/CN112596878A/en
Publication of CN112596878A publication Critical patent/CN112596878A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a batch processing method, a batch processing device and electronic equipment, wherein the method comprises the following steps: acquiring a batch dependency relationship among a plurality of batches aiming at a target service; constructing a batch unified governing syntax tree based on the batch dependency relationship, and sequentially operating a plurality of batches of the target service based on the batch unified governing syntax tree; under the condition that a target batch is detected to be incapable of running, determining whether a first batch which cannot be run exists in a front batch of the target batch based on the batch unified governance syntax tree, wherein the target batch is any one of a plurality of batches of the target service; in the presence of the first batch, re-running the first batch. Therefore, the first batch which is not operated in the preposed batch of the target batch can be operated in time, so that the target batch can be normally operated, and the efficiency and the maintenance accuracy of batch maintenance can be improved.

Description

Batch processing method and device and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a batch processing method and device and electronic equipment.
Background
With the continuous development of direct-selling banking application business, the number of effective partners of the business and clients using the business is continuously increased, and in addition, different dependencies exist among batches, so how to effectively maintain the normal operation of the batches becomes a focus problem.
At present, normal operation of a batch can be maintained in a manual intervention mode, for example, batch 1 and batch 3 are pre-batch of batch 2, that is, after batch 1 and batch 3 are operated, batch 2 can be continuously operated, and if it is detected that batch 2 cannot be operated, whether batch 1 and batch 3 normally operate needs to be determined in a manual searching mode.
However, as the number of batches is increasing and the dependency relationship between the batches is becoming more and more complex, the effective maintenance of batch operation by manual searching has the problems of higher labor cost, low maintenance efficiency and poor maintenance accuracy.
Disclosure of Invention
Embodiments of the present invention provide a batch processing method and apparatus, and an electronic device, so as to solve a problem in the prior art that data consistency cannot be guaranteed under a distributed architecture.
To solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a batch processing method, where the method includes:
acquiring a batch dependency relationship among a plurality of batches aiming at a target service;
constructing a batch unified governing syntax tree based on the batch dependency relationship, and sequentially operating a plurality of batches of the target service based on the batch unified governing syntax tree;
under the condition that a target batch is detected to be incapable of running, determining whether a first batch which cannot be run exists in a front batch of the target batch based on the batch unified governance syntax tree, wherein the target batch is any one of a plurality of batches of the target service;
and in the case that the first batch exists, re-running the first batch so as to enable the target batch to run normally.
Optionally, the determining, based on the batch unified governance syntax tree, whether there is a first batch that cannot be run in a preceding batch of the target batch when it is detected that the target batch cannot be run further includes:
determining the batch with running time inconsistent with the preset running time as the target batch based on the preset running time of each batch;
and under the condition that the target batch is detected to exist, determining whether a first batch with the running time not conforming to the preset running time exists in a front batch of the target batch or not based on the preset running time of each batch in the batch unified governance syntax tree.
Optionally, said re-running said first batch in the presence of said first batch comprises:
storing the first batch to a failure batch storage queue;
and re-running the first batch stored in the failed batch storage queue based on a preset restart period.
Optionally, the multiple batches of the target service include one or more sets of batches having an association relationship, and/or one or more individual batches capable of running independently.
In a second aspect, an embodiment of the present invention provides a batch processing apparatus, where the apparatus includes:
the relation acquisition module is used for acquiring batch dependency relations among a plurality of batches aiming at the target service;
the first operation module is used for constructing a batch unified governing syntax tree based on the batch dependency relationship and sequentially operating a plurality of batches of the target service based on the batch unified governing syntax tree;
the system comprises a batch determining module and a service processing module, wherein the batch determining module is used for determining whether a first batch which cannot be operated exists in a front batch of a target batch on the basis of the batch unified governance syntax tree under the condition that the target batch is detected to be incapable of being operated, and the target batch is any one of a plurality of batches of the target service;
and the second running module is used for re-running the first batch under the condition that the first batch exists so as to enable the target batch to run normally.
Optionally, the batch unified governance syntax tree further includes a preset running time of each batch, and the batch determination module is configured to:
determining the batch with running time inconsistent with the preset running time as the target batch based on the preset running time of each batch;
and under the condition that the target batch is detected to exist, determining whether a first batch with the running time not conforming to the preset running time exists in a front batch of the target batch or not based on the preset running time of each batch in the batch unified governance syntax tree.
Optionally, the second operation module is configured to:
storing the first batch to a failure batch storage queue;
and re-running the first batch stored in the failed batch storage queue based on a preset restart period.
Optionally, the multiple batches of the target service include one or more sets of batches having an association relationship, and/or one or more individual batches capable of running independently.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the batch processing method provided in the foregoing embodiment.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the batch processing method provided in the foregoing embodiment.
According to the technical scheme provided by the embodiment of the invention, the embodiment of the invention obtains the batch dependency relationship among the multiple batches aiming at the target service, constructs the batch unified governing syntax tree based on the batch dependency relationship, sequentially operates the multiple batches of the target service based on the batch unified governing syntax tree, determines whether the first batch which cannot be operated exists in the front batch of the target batch based on the batch unified governing syntax tree under the condition that the target batch cannot be operated, wherein the target batch is any one batch in the multiple batches of the target service, and re-operates the first batch under the condition that the first batch exists so as to enable the target batch to normally operate. Therefore, the first batch which does not normally run in the preposed batch of the target batch can be determined in time through uniformly managing the syntax tree, and the target batch can normally run by re-running the first batch, so that the efficiency and the accuracy of batch running maintenance are improved.
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, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a batch process of the present invention;
FIG. 2 is a schematic diagram of a batch unified governance syntax tree constructed in accordance with one embodiment of the present invention;
FIG. 3 is a schematic flow diagram of another batch process of the present invention;
FIG. 4 is a schematic diagram of a batch processing apparatus according to the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to the present invention.
Detailed Description
The embodiment of the invention provides a batch processing method and device and electronic equipment.
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all 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.
Example one
As shown in fig. 1, an embodiment of the present invention provides a batch processing method, where an execution subject of the method may be a server, and the server may be an independent server or a server cluster composed of multiple servers, and the method may specifically include the following steps:
in S102, batch dependencies among a plurality of batches for a target service are obtained.
The target business may be any financial business provided by a financial institution such as a bank for a user, for example, the target business may be an accounting business, a credit card business, or the like, the batch may be a set including a series of tasks having a logical relationship, and may be scheduled as a service for implementing the target business, for example, the batch may be a clearing batch, and the number of the batches of the target tasks may be plural.
In the implementation, with the continuous development of direct-selling banking application business, the number of effective partners of the business and customers using the business is increased, and in addition, different dependencies exist among batches, so how to effectively maintain the normal operation of the batches becomes a focus problem.
At present, normal operation of a batch can be maintained in a manual intervention mode, for example, batch 1 and batch 3 are pre-batch of batch 2, that is, after batch 1 and batch 3 are operated, batch 2 can be continuously operated, and if it is detected that batch 2 cannot be operated, whether batch 1 and batch 3 normally operate needs to be determined in a manual searching mode. However, as the number of batches is increasing and the dependency relationship between the batches is becoming more and more complex, the effective maintenance of batch operation by manual searching has the problems of higher labor cost, low maintenance efficiency and poor maintenance accuracy. Therefore, an implementation scheme provided in the embodiments of the present invention may specifically include the following:
the batch dependency relationship between the plurality of batches of the target service, which is stored in advance, may be obtained from a preset configuration system, where the configuration system may be a system in the server for configuring and storing the batch dependency relationship between the plurality of batches of the target service. For example, the target service may include batch 1, batch 6 and batch 7, where batch 1 may be a previous batch of batch 6 and batch 7, that is, after the operation of batch 1 is finished, batch 6 and batch 7 may continue to be operated according to the operation state and/or operation result of batch 1.
In S104, a batch unified governance syntax tree is constructed based on the batch dependency relationship, and a plurality of batches of the target service are sequentially run based on the batch unified governance syntax tree.
In implementation, a batch unified governance syntax tree may be constructed according to a batch dependency relationship between multiple batches of the obtained target service, for example, the target service may include multiple batches, different batches may have different batch dependency relationships, and a batch unified governance syntax tree may be constructed according to an operation order of the batches and a batch dependency relationship between the batches, for example, an operation order of the batches and a batch dependency relationship between the batches may be: batch 1 > batch 6, batch 1 > batch 7 …, wherein the constructed batch unified governance syntax tree may be as shown in fig. 2, where batch 1 may be a preceding batch of batch 6 and batch 7, that is, batch 1 may be run first, and then batch 6 and batch 7 may be run according to the running state and/or the running result of batch 1.
After the batch unified governance syntax tree is constructed, a plurality of batches of the target service can be sequentially run according to the constructed batch unified governance syntax tree, for example, as the batch unified governance syntax tree shown in fig. 2, batch 1, batch 2, batch 3, batch 4 and batch 5 can be synchronously run, after batch 1 is run, batch 6 and batch 7 are continuously run, and when all batches are run successfully, the execution of the target service is completed.
In the running process of the multiple batches, the multiple batches of the target service can be run in a synchronous or asynchronous mode.
In S106, when it is detected that the target lot cannot be run, it is determined whether a first lot that cannot be run exists in the pre-lot of the target lot based on the unified lot administration syntax tree.
The target batch may be any one of a plurality of batches of the target service.
In implementation, a target batch causing incomplete target service can be searched according to an operation result of the target service, a corresponding first batch is determined according to an operation condition of a pre-batch of the target batch, and efficiency and accuracy of batch detection can be improved by searching the first batch.
In addition, there may be a plurality of first lots that cannot be run in the pre-lot of the target lot.
In S108, in the case where the first lot amount exists, the first lot is rerun so that the target lot runs normally.
In the implementation, taking the unified batch governance syntax tree shown in fig. 2 as an example, assuming that batch 1 is the first batch and batch 7 is the target batch, batch 1 may be re-run, and after run of batch 1 is completed, run of batch 7 is continued, that is, normal operation of the target batch is achieved.
In addition, polling time can be preset for each batch in the batch unified governance syntax tree, when the situation that a certain batch in the batch unified governance syntax tree cannot run is detected, the running of each batch in the whole batch unified governance syntax tree can be stopped, the running condition of each batch in the batch unified governance syntax tree is inquired after the polling time (such as 2 hours) of the batch (namely the batch which cannot run) is reached, and the batch which does not run or runs in a failure in the batch unified governance syntax tree is rerun according to the running condition of each batch, so that the processor is prevented from being occupied, and the use efficiency of the processor is improved.
Therefore, the grammar tree is uniformly managed based on the constructed batch, and a plurality of batches of the target service can be uniformly scheduled and managed through the uniform inlet so as to complete the ordered operation of all the batches of the target service.
The embodiment of the invention provides a batch processing method, which comprises the steps of constructing a batch unified governing syntax tree based on batch dependency relations by obtaining batch dependency relations among a plurality of batches aiming at target services, sequentially operating the plurality of batches of the target services based on the batch unified governing syntax tree, determining whether a first batch which cannot be operated exists in a front batch of the target batch based on the batch unified governing syntax tree under the condition that the target batch cannot be operated, wherein the target batch is any one of the plurality of batches of the target services, and re-operating the first batch under the condition that the first batch exists so as to enable the target batch to normally operate. Therefore, the first batch which does not normally run in the preposed batch of the target batch can be determined in time through uniformly managing the syntax tree, and the target batch can normally run by re-running the first batch, so that the efficiency and the accuracy of batch running maintenance are improved.
Example two
As shown in fig. 3, an embodiment of the present invention provides a batch processing method, where an execution subject of the method may be a server, and the server may be an independent server or a server cluster composed of multiple servers, and the method specifically includes the following steps:
in S302, batch dependencies among a plurality of batches for a target service are obtained.
The multiple batches of the target service may include one or more sets of batches with association (i.e., combined batches), one or more sub-combined batches may be accommodated in the combined batches, i.e., one or more sets of batches with different association may be accommodated in the combined batches, and/or one or more single batches capable of running independently (i.e., normal batches), and a normal batch may also be a service with running capability.
In S304, a batch unified governance syntax tree is constructed based on the batch dependency relationship, and a plurality of batches of the target service are sequentially run based on the batch unified governance syntax tree.
The batch unified governance syntax tree can also comprise preset running time of each batch.
In implementation, the batch unified governance syntax tree may further include the number of times that each batch is allowed to be re-run after the run fails (i.e., the number of failed attempts), the time interval that each batch is re-run after the run fails (i.e., the failed attempt time interval), and the like.
As shown in FIG. 2, in the batch unified governing syntax tree, batch 1, batch 6 and batch 2 may be combined batches, and the rest of the batches may be normal batches.
In S306, based on the preset run time of each lot, a lot whose run time does not match the preset run time is determined as a target lot.
In an implementation, for example, as shown in FIG. 2, in the unified governance syntax tree for batch 1, the preset runtime is 9:00, 9:05 for batch 6, and 9:06 for batch 7, assuming that the current time is 9:07, and batch 6 and batch 7 do not start to run, then batch 6 and batch 7 may be used as the target batches.
In S308, in the case that it is detected that the target lot exists, it is determined whether there is a first lot in the pre-lot of the target lot, whose run time does not conform to the preset run time, based on the preset run time of each lot in the unified governance syntax tree for the lot.
In an implementation, assuming that in the unified governance syntax tree for lots as shown in FIG. 2, the preset run time of lot 1 is 9:00, lots 6 and 7 are target lots, and the actual run time of lot 1 is 9:02, or lot 1 is not run, then lot 1 may be taken as the first lot.
In S310, the first batch is stored to the failed batch storage queue.
In implementations, multiple different first batches may also be stored in the stale batch storage queue.
In S312, the first batch stored in the failed batch storage queue is rerun based on a preset restart period.
In an implementation, for example, every 1 minute, whether the first lot exists in the failed batch storage queue may be detected, if it is detected that one or more first lots exist in the failed batch storage queue, the one or more first lots may be re-run, and after the successful run, the successfully-run first lot may be removed from the failed batch storage queue, that is, the successfully-run first lot is removed from the failed batch storage queue.
In addition, in the case where there are a plurality of different first lots in the failed batch storage queue, the plurality of different first lots stored in the failed batch storage queue may be run on a "first-in first-out" basis at the time of the rerun.
The embodiment of the invention provides a batch processing method, which comprises the steps of constructing a batch unified governing syntax tree based on batch dependency relations by obtaining batch dependency relations among a plurality of batches aiming at target services, sequentially operating the plurality of batches of the target services based on the batch unified governing syntax tree, determining whether a first batch which cannot be operated exists in a front batch of the target batch based on the batch unified governing syntax tree under the condition that the target batch cannot be operated, wherein the target batch is any one of the plurality of batches of the target services, and re-operating the first batch under the condition that the first batch exists so as to enable the target batch to normally operate. Therefore, the first batch which does not normally run in the preposed batch of the target batch can be determined in time through uniformly managing the syntax tree, and the target batch can normally run by re-running the first batch, so that the efficiency and the accuracy of batch running maintenance are improved.
EXAMPLE III
Based on the same idea, the batch processing method provided in the embodiment of the present invention further provides a batch processing apparatus, as shown in fig. 4.
The batch processing apparatus includes: a relationship obtaining module 401, a first running module 402, a batch determining module 403, and a second running module 404, wherein:
a relationship obtaining module 401, configured to obtain a batch dependency relationship among multiple batches for a target service;
a first operation module 402, configured to construct a batch unified governance syntax tree based on the batch dependency relationship, and sequentially operate multiple batches of the target service based on the batch unified governance syntax tree;
a batch determining module 403, configured to determine, based on the batch unified governance syntax tree, whether a first batch that cannot be run exists in a pre-batch of a target batch when it is detected that the target batch cannot be run, where the target batch is any one of multiple batches of the target service;
a second running module 404, configured to, if the first batch exists, re-run the first batch so that the target batch runs normally.
In this embodiment of the present invention, the batch unified governance syntax tree further includes a preset running time of each batch, and the batch determining module 403 is configured to:
determining the batch with running time inconsistent with the preset running time as the target batch based on the preset running time of each batch;
and under the condition that the target batch is detected to exist, determining whether a first batch with the running time not conforming to the preset running time exists in a front batch of the target batch or not based on the preset running time of each batch in the batch unified governance syntax tree.
In this embodiment of the present invention, the second operation module 404 is configured to:
storing the first batch to a failure batch storage queue;
and re-running the first batch stored in the failed batch storage queue based on a preset restart period.
In an embodiment of the present invention, the multiple batches of the target service include a set of one or more batches having an association relationship, and/or one or more single batches capable of being independently run.
The embodiment of the invention provides a batch processing device, which is characterized in that a batch unified governing syntax tree is constructed based on a batch dependency relationship by acquiring the batch dependency relationship among a plurality of batches aiming at a target service, the plurality of batches of the target service are sequentially operated based on the batch unified governing syntax tree, and when the condition that the target batch cannot be operated is detected, whether a first batch which cannot be operated exists in a front batch of the target batch is determined based on the batch unified governing syntax tree, wherein the target batch is any one of the plurality of batches of the target service, and the first batch is operated again under the condition that the first batch exists, so that the target batch can be operated normally. Therefore, the first batch which does not normally run in the preposed batch of the target batch can be determined in time through uniformly managing the syntax tree, and the target batch can normally run by re-running the first batch, so that the efficiency and the accuracy of batch running maintenance are improved.
Example four
Figure 5 is a schematic diagram of a hardware configuration of an electronic device implementing various embodiments of the invention,
the electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to obtain a batch dependency relationship among multiple batches for a target service;
a processor 510, configured to construct a batch unified governance syntax tree based on the batch dependency relationship, and sequentially run multiple batches of the target service based on the batch unified governance syntax tree;
a processor 510, configured to determine, based on the unified treatment syntax tree of the target batch, whether there is a first batch that cannot be run in a pre-batch of the target batch when it is detected that the target batch cannot be run, where the target batch is any one of multiple batches of the target service;
processor 510, configured to, if the first batch exists, re-run the first batch so that the target batch runs normally.
In addition, the processor 510 is further configured to determine, as the target lot, a lot with a running time that does not conform to the preset running time based on the preset running time of each lot;
in addition, the processor 510 is further configured to, if it is detected that the target lot exists, determine whether the first lot exists in a preceding lot of the target lot, where the run time of the first lot does not conform to the preset run time, based on the preset run time of each lot in the unified governance syntax tree for the lot.
Further, processor 510 is further configured to store the first batch to a failed batch storage queue;
in addition, the processor 510 is further configured to rerun the first batch stored in the failed batch storage queue based on a preset restart period.
In addition, the multiple batches of the target service comprise one or more sets of batches with associated relationships and/or one or more single batches capable of independent operation.
The embodiment of the invention provides electronic equipment, which is characterized in that a batch dependency relationship among a plurality of batches aiming at a target service is obtained, a batch unified governing syntax tree is constructed based on the batch dependency relationship, the plurality of batches of the target service are sequentially operated based on the batch unified governing syntax tree, and when the condition that the target batch cannot be operated is detected, whether a first batch which cannot be operated exists in a front batch of the target batch is determined based on the batch unified governing syntax tree, wherein the target batch is any one of the plurality of batches of the target service, and the first batch is operated again under the condition that the first batch exists, so that the target batch can be operated normally. Therefore, the first batch which does not normally run in the preposed batch of the target batch can be determined in time through uniformly managing the syntax tree, and the target batch can normally run by re-running the first batch, so that the efficiency and the accuracy of batch running maintenance are improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other electronic devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the batch processing method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
EXAMPLE five
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the batch processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the invention provides a computer-readable storage medium, which is used for constructing a batch unified governance syntax tree based on a batch dependency relationship by acquiring the batch dependency relationship among a plurality of batches of a target service, sequentially operating the plurality of batches of the target service based on the batch unified governance syntax tree, determining whether a first batch which cannot be operated exists in a front batch of the target batch based on the batch unified governance syntax tree under the condition that the target batch cannot be operated, wherein the target batch is any one of the plurality of batches of the target service, and re-operating the first batch under the condition that the first batch exists so as to normally operate the target batch. Therefore, the first batch which does not normally run in the preposed batch of the target batch can be determined in time through uniformly managing the syntax tree, and the target batch can normally run by re-running the first batch, so that the efficiency and the accuracy of batch running maintenance are improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable batch processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable batch processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable batch processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable batch processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transient media) such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A batch processing method, the method comprising:
acquiring a batch dependency relationship among a plurality of batches aiming at a target service;
constructing a batch unified governing syntax tree based on the batch dependency relationship, and sequentially operating a plurality of batches of the target service based on the batch unified governing syntax tree;
under the condition that a target batch is detected to be incapable of running, determining whether a first batch which cannot be run exists in a front batch of the target batch based on the batch unified governance syntax tree, wherein the target batch is any one of a plurality of batches of the target service;
and in the case that the first batch exists, re-running the first batch so as to enable the target batch to run normally.
2. The method of claim 1, wherein the batch unified abatement syntax tree further comprises a preset run time for each batch, and wherein determining whether a first batch that cannot be run exists in a preceding batch of the target batch based on the batch unified abatement syntax tree in the event that the target batch is detected to be unable to run comprises:
determining the batch with running time inconsistent with the preset running time as the target batch based on the preset running time of each batch;
and under the condition that the target batch is detected to exist, determining whether a first batch with the running time not conforming to the preset running time exists in a front batch of the target batch or not based on the preset running time of each batch in the batch unified governance syntax tree.
3. The method of claim 2, wherein said re-running said first lot if said first lot exists comprises:
storing the first batch to a failure batch storage queue;
and re-running the first batch stored in the failed batch storage queue based on a preset restart period.
4. The method of claim 3, wherein the plurality of batches of target services comprises a set of one or more batches having an associative relationship and/or one or more individual batches capable of running independently.
5. A batch processing apparatus, the apparatus comprising:
the relation acquisition module is used for acquiring batch dependency relations among a plurality of batches aiming at the target service;
the first operation module is used for constructing a batch unified governing syntax tree based on the batch dependency relationship and sequentially operating a plurality of batches of the target service based on the batch unified governing syntax tree;
the system comprises a batch determining module and a service processing module, wherein the batch determining module is used for determining whether a first batch which cannot be operated exists in a front batch of a target batch on the basis of the batch unified governance syntax tree under the condition that the target batch is detected to be incapable of being operated, and the target batch is any one of a plurality of batches of the target service;
and the second running module is used for re-running the first batch under the condition that the first batch exists so as to enable the target batch to run normally.
6. The apparatus of claim 5, wherein the batch unified governance syntax tree further comprises a preset runtime for each batch, and wherein the batch determination module is configured to:
determining the batch with running time inconsistent with the preset running time as the target batch based on the preset running time of each batch;
and under the condition that the target batch is detected to exist, determining whether a first batch with the running time not conforming to the preset running time exists in a front batch of the target batch or not based on the preset running time of each batch in the batch unified governance syntax tree.
7. The apparatus of claim 6, wherein the second operation module is configured to:
storing the first batch to a failure batch storage queue;
and re-running the first batch stored in the failed batch storage queue based on a preset restart period.
8. The apparatus of claim 7, wherein the plurality of batches of target services comprise one or more collections of batches having an associative relationship and/or one or more individual batches capable of running independently.
9. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the batch processing method as claimed in any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the batch processing method according to any one of claims 1 to 4.
CN202011547710.8A 2020-12-24 2020-12-24 Batch processing method and device and electronic equipment Pending CN112596878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011547710.8A CN112596878A (en) 2020-12-24 2020-12-24 Batch processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011547710.8A CN112596878A (en) 2020-12-24 2020-12-24 Batch processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112596878A true CN112596878A (en) 2021-04-02

Family

ID=75200912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011547710.8A Pending CN112596878A (en) 2020-12-24 2020-12-24 Batch processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112596878A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140108489A1 (en) * 2012-10-15 2014-04-17 Et International, Inc. Flowlet-based processing
CN110471753A (en) * 2019-08-15 2019-11-19 中国银行股份有限公司 The control method and device of lot size scheduling system
CN111859403A (en) * 2020-07-30 2020-10-30 中国工商银行股份有限公司 Method and device for determining dependency vulnerability, electronic equipment and storage medium
CN111949832A (en) * 2020-08-14 2020-11-17 中国工商银行股份有限公司 Method and device for analyzing dependency relationship of batch operation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140108489A1 (en) * 2012-10-15 2014-04-17 Et International, Inc. Flowlet-based processing
CN110471753A (en) * 2019-08-15 2019-11-19 中国银行股份有限公司 The control method and device of lot size scheduling system
CN111859403A (en) * 2020-07-30 2020-10-30 中国工商银行股份有限公司 Method and device for determining dependency vulnerability, electronic equipment and storage medium
CN111949832A (en) * 2020-08-14 2020-11-17 中国工商银行股份有限公司 Method and device for analyzing dependency relationship of batch operation

Similar Documents

Publication Publication Date Title
CN110232048B (en) Log file acquisition method, device and storage medium
US10956280B2 (en) Data backup method, electronic device, and storage medium
CN110162254B (en) Display method and terminal equipment
CN109995862B (en) Resource scheduling method and terminal
CN110674112A (en) Data query method and device and electronic equipment
CN112379976A (en) Event processing method and device, mobile terminal and storage medium
CN108984066B (en) Application icon display method and mobile terminal
CN112231144A (en) Data processing method and device and electronic equipment
CN110808872A (en) Method and device for realizing flow experiment and electronic equipment
CN111399819B (en) Data generation method, device, electronic equipment and storage medium
CN111338745A (en) Deployment method and device of virtual machine and intelligent equipment
CN112650498B (en) Static library integration method and device, electronic equipment and storage medium
CN108089935B (en) Application program management method and mobile terminal
CN115509770B (en) Micro-service calling method and device, electronic equipment and readable storage medium
CN112596878A (en) Batch processing method and device and electronic equipment
CN111045588B (en) Information viewing method and electronic equipment
CN110659329A (en) Data processing method and device and electronic equipment
CN112035180A (en) Automatic instance loading method and device, electronic equipment and storage medium
CN111475141A (en) List generation method and device and electronic equipment
CN112130949A (en) Prompt resource display method and device and computer readable storage medium
CN112995265A (en) Request distribution method and device and electronic equipment
CN110908732A (en) Task deleting method of application and electronic equipment
CN113127214B (en) Timing wake-up processing method and device, terminal equipment and storage medium
CN113760540B (en) Task processing method and related device
CN115081026A (en) Index data acquisition method, device and equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 306, No. 799, Ximen Road, Chengqiao Town, Chongming District, Shanghai 202150

Applicant after: SHANGHAI I2FINANCE SOFTWARE CO.,LTD.

Address before: Room 2076, area C, building 8, No.2, Guanshan Road, Chengqiao Town, Chongming District, Shanghai 202150

Applicant before: SHANGHAI I2FINANCE SOFTWARE CO.,LTD.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210402