Method for automated generation of job scheduling configuration and related devices
By automating the generation of job scheduling configurations, identifying and parsing configuration requests, generating and publishing scheduling jobs, the inefficiency of manual configuration is solved, and the accuracy of configuration and user experience are improved.
Patent Information
- Application Number
- CN202211429942.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-15
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-11-15
AI Technical Summary
In existing technologies, manual configuration of job scheduling is prone to errors, leading to missing dependencies, circular dependencies, and incorrect parameter configurations, resulting in low efficiency and affecting customer use, especially in insurance-related businesses where problems frequently occur.
By identifying job scheduling configuration requests, parsing configuration scripts, obtaining deployment parameters, basic parameters, and application resource parameters, generating scheduling jobs, and automatically configuring them into the execution system, including JSON data formatting and pre-defined rewriting rules to generate scheduling job names, setting execution cycles and priorities, and finally sending configuration results via message notifications.
It enables automated generation of job scheduling configurations, avoiding inefficient configuration, reducing configuration problems, and improving user experience.
Smart Images

Figure CN115756640B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of financial technology and financial operation automation configuration, and in particular to a method for automatically generating operation scheduling configuration and a related device thereof. BACKGROUND
[0002] With the addition of business scenarios, more and more operations need to be developed, and more and more operation scheduling needs to be configured. The current operation scheduling method is mainly configured manually. Manual configuration is prone to errors, and problems such as missing dependencies, circular dependencies, and related parameter configuration errors often occur. Manual operation scheduling is inefficient, and production problems occur frequently, affecting customer use, especially the problem of missing dependencies, which is implicit and difficult to detect.
[0003] Taking insurance business in financial technology business as an example, with the continuous increase of insurance types, combined with the complexity of insurance operations themselves, such as early customer consultation, customer positioning, electric sales push, business signing, claims, post-sales, renewal, and reinsurance, it leads to more and more business scenarios, and more and more operation scheduling needs to be configured. In order to avoid the problem of low efficiency caused by manual operation scheduling, frequent production problems, and the impact on customer use, how to automatically generate operation scheduling configuration has become a problem to be solved. SUMMARY
[0004] The purpose of the embodiments of the present application is to provide a method for automatically generating operation scheduling configuration and a related device thereof, so as to automatically configure operation scheduling, avoid low configuration efficiency, reduce operation configuration problems, and ensure user experience.
[0005] To solve the above technical problems, the embodiments of the present application provide a method for automatically generating operation scheduling configuration, which adopts the following technical solutions:
[0006] A method for automatically generating operation scheduling configuration includes the following steps:
[0007] According to the preset click monitoring control, identify and receive an operation scheduling configuration request, wherein the operation scheduling configuration request includes a script name of a configuration script and an extraction path of the configuration script;
[0008] Parse the operation scheduling configuration request to obtain the script name of the configuration script and the extraction path of the configuration script;
[0009] According to the script name of the configuration script and the extraction path of the configuration script, obtain the configuration script;
[0010] parsing the configuration script to obtain deployment parameters, basic parameters and application resource parameters in the configuration script, and sending the deployment parameters to a preset automatic configuration interface to complete configuration of an execution system, wherein the deployment parameters are used to configure an execution system adapted to a target scheduling job, the basic parameters are used to configure a specific execution task corresponding to the scheduling job, and the application resource parameters are used to configure data and queue resources used when the scheduling job is executed;
[0011] generating a scheduling job according to the basic parameters and the application resource parameters, and publishing the scheduling job into the execution system configured according to the deployment parameters, to complete automatic configuration of the scheduling job.
[0012] Further, the step of parsing the configuration script to obtain the deployment parameters, the basic parameters and the application resource parameters in the configuration script specifically includes:
[0013] generating corresponding JSON objects according to the deployment parameters, the basic parameters and the application resource parameters, and performing standard format processing on data values corresponding to each of the JSON objects, wherein the standard format processing includes performing JSON data format processing on configuration items in the deployment parameters, configuration items in the basic parameters and configuration items in the application resource parameters, respectively.
[0014] Further, the configuration items in the application resource parameters include a persistent database name, a non-persistent database name and a job execution queue name, and the step of generating a scheduling job according to the basic parameters and the application resource parameters specifically includes:
[0015] generating the scheduling job name according to a preset rewriting rule and the script name, wherein the preset rewriting rule includes capitalizing the script name and performing splicing processing on the capitalized script name according to a preset splicing symbol;
[0016] setting an association between the scheduling job and a persistent database, between the scheduling job and a non-persistent database, and between the scheduling job and a job execution queue according to the scheduling job name, the persistent database name, the non-persistent database name and the job execution queue name.
[0017] Further, the configuration script further includes an execution period, a scheduling time, a scheduling priority and a number of failure retries, and after the step of generating the scheduling job name according to the preset rewriting rule and the script name, the method further includes:
[0018] According to the execution period, the scheduling time, the scheduling priority and the failure retry number in the scheduling job name and the configuration script, the execution period, the scheduling time, the scheduling priority and the failure retry number of the scheduling job are set.
[0019] Further, the configuration item in the deployment parameter includes: the system name of the execution system, the deployment mode and the deployment type of this time, wherein the deployment mode includes any one of the incremental mode and the initialization mode, and the deployment type includes any one of the modified deployment class, the added deployment class and the deleted deployment class.
[0020] According to the system name of the execution system, the deployment mode and the deployment type of this time, the execution system is automatically configured in a preset configuration interface, wherein if the deployment mode is the initialization mode, a distinguishing character is added at the end of the text of the configuration script to mark.
[0021] Further, after the step of publishing the scheduling job to the execution system configured according to the deployment parameter, the method further includes:
[0022] According to the basic parameter, the publishing result of the scheduling job is sent to the related personnel in the form of message reminding, wherein the configuration item in the basic parameter includes the job type, the project name, the development allocation personnel identifier and the development review personnel identifier.
[0023] Further, the step of sending the publishing result of the scheduling job to the related personnel in the form of message reminding according to the basic parameter specifically includes:
[0024] The development allocation personnel identifier and the development review personnel identifier are obtained.
[0025] According to the development allocation personnel identifier and the development review personnel identifier, the job type and the project name are sent to the development allocation personnel and the development review personnel, respectively.
[0026] To solve the above technical problems, the embodiment of the application further provides a device for automatically generating job scheduling configuration, which adopts the technical scheme as follows:
[0027] A device for automatically generating job scheduling configuration, comprising:
[0028] A request receiving module is configured to identify and receive a job scheduling configuration request according to a preset click monitoring control, wherein the job scheduling configuration request includes a script name of a configuration script and an extraction path of the configuration script.
[0029] The request content analysis module is configured to analyze the job scheduling configuration request, and obtain a script name of the configuration script and an extraction path of the configuration script.
[0030] The configuration script acquisition module is configured to acquire the configuration script according to the script name of the configuration script and the extraction path of the configuration script.
[0031] The configuration parameter acquisition module is configured to analyze the configuration script, and obtain a deployment parameter, a basic parameter and an application resource parameter in the configuration script, and send the deployment parameter to a preset automatic configuration interface to complete configuration of an execution system, wherein the deployment parameter is used to configure an execution system adapted to a target scheduling job, the basic parameter is used to configure a specific execution task corresponding to the scheduling job, and the application resource parameter is used to configure data and queue resources used when the scheduling job is executed.
[0032] The automatic configuration module is configured to generate a scheduling job according to the basic parameter and the application resource parameter, and publish the scheduling job into the execution system configured according to the deployment parameter, to complete automatic configuration of the scheduling job.
[0033] To solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the technical scheme as follows:
[0034] A computer device includes a memory and a processor, the memory stores computer readable instructions, and the processor executes the computer readable instructions to realize the steps of the method for automatically generating job scheduling configuration.
[0035] To solve the above technical problems, the embodiment of the present application further provides a computer readable storage medium, which adopts the technical scheme as follows:
[0036] A computer readable storage medium stores computer readable instructions, and the computer readable instructions are executed by a processor to realize the steps of the method for automatically generating job scheduling configuration.
[0037] Compared with the prior art, the embodiment of the present application has the following beneficial effects:
[0038] The method for automatically generating a job scheduling configuration provided in the embodiments of the present application comprises the following steps: identifying and receiving a job scheduling configuration request according to a preset click monitoring control; parsing the job scheduling configuration request to obtain a script name of a configuration script and an extraction path of the configuration script; obtaining the configuration script according to the script name of the configuration script and the extraction path of the configuration script; parsing the configuration script to obtain deployment parameters, basic parameters and application resource parameters in the configuration script; generating a scheduling job according to the basic parameters and the application resource parameters, and publishing the scheduling job into an execution system configured according to the deployment parameters, so as to complete the automatic configuration of the scheduling job. The present application can automatically configure the job scheduling, avoid low configuration efficiency, reduce the occurrence of job configuration problems, and ensure the user experience. BRIEF DESCRIPTION OF DRAWINGS
[0039] In order to more clearly illustrate the solutions in the present application, the drawings needed in the embodiments of the present application will be briefly introduced as follows. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0040] Figure 1 is an exemplary system architecture diagram to which the present application can be applied;
[0041] Figure 2 a flowchart of one embodiment of the method for automatically generating a job scheduling configuration according to the present application;
[0042] Figure 3 a structural schematic diagram of one embodiment of the device for automatically generating a job scheduling configuration according to the present application;
[0043] Figure 4 is Figure 3 a structural schematic diagram of one specific embodiment of the device 305 shown in the figure;
[0044] Figure 5 a structural schematic diagram of one embodiment of the computer device according to the present application. DETAILED DESCRIPTION
[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs; the terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "include" and "have" and any variations thereof in the specification and claims of the present application and the above description of drawings are intended to cover non-exclusive inclusion. The terms "first", "second" and the like in the specification and claims of the present application or the above description of drawings are used to distinguish different objects, not to describe a particular order.
[0046] Reference to“an embodiment” herein means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase“in one embodiment” in various places in the specification are not necessarily referring to the same embodiment, nor are they necessarily all directed to the same embodiment, nor are they necessarily all directed to a single alternative embodiment. Those skilled in the art will recognize that features described in one embodiment can be combined with features described in another embodiment.
[0047] In order to make the person skilled in the art better understand the scheme of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings.
[0048] As shown in Figure 1 The system architecture 100 can include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is a medium for providing a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 can include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0049] A user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0050] The terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0051] The server 105 can be a server providing various services, such as a background server supporting the pages displayed on the terminal devices 101, 102, 103.
[0052] It should be noted that the method for automatically generating a job scheduling configuration provided by the embodiments of the present application is generally executed by a server / terminal device, and accordingly, the device for automatically generating a job scheduling configuration is generally provided in a server / terminal device.
[0053] It should be understood that Figure 1 The number of terminal devices, networks and servers in the above-mentioned embodiments is only illustrative. Any number of terminal devices, networks and servers can be provided according to the needs of implementation.
[0054] With reference to the above-mentioned embodiments, Figure 2 , a flow chart of one embodiment of the method for automatically generating a job scheduling configuration according to the present application is shown. The method for automatically generating a job scheduling configuration comprises the following steps:
[0055] Step 201, a job scheduling configuration request is identified and received according to a preset click monitoring control.
[0056] In this embodiment, the job scheduling configuration request comprises a script name of a configuration script and an extraction path of the configuration script.
[0057] Step 202, the script name of the configuration script and the extraction path of the configuration script are obtained by parsing the job scheduling configuration request.
[0058] Step 203, the configuration script is obtained according to the script name of the configuration script and the extraction path of the configuration script.
[0059] Step 204, deployment parameters, basic parameters and application resource parameters in the configuration script are obtained by parsing the configuration script, and the deployment parameters are sent to a preset automatic configuration interface to complete the configuration of an execution system.
[0060] In this embodiment, the deployment parameters are used to configure an execution system adapted to a target scheduling job, the basic parameters are used to configure specific execution tasks corresponding to the scheduling job, and the application resource parameters are used to configure data and queue resources used when the scheduling job is executed.
[0061] In this embodiment, the step of parsing the configuration script to obtain the deployment parameters, the basic parameters and the application resource parameters in the configuration script specifically comprises: generating respective JSON objects according to the deployment parameters, the basic parameters and the application resource parameters, and performing standard format processing on data values corresponding to each of the JSON objects.
[0062] In this embodiment, the standard format processing comprises performing JSON data format processing on configuration items in the deployment parameters, configuration items in the basic parameters and configuration items in the application resource parameters, respectively.
[0063] The configuration items in the deployment parameters, the configuration items in the basic parameters and the configuration items in the application resource parameters are processed in JSON data format, so that the data acquisition is convenient during the automatic configuration, the data in the unified format is acquired, and the problem of relatively difficult data acquisition caused by the non-uniform data format is avoided.
[0064] In the embodiment, the configuration items in the deployment parameters include a system name of the execution system, a deployment mode and a deployment type of this time, the deployment mode includes any one of an incremental mode and an initialization mode, and the deployment type includes any one of a modified deployment type, an added deployment type and a deleted deployment type.
[0065] In the embodiment, the configuration items in the basic parameters include a job type, a project name, a development allocation personnel identifier and a development review personnel identifier.
[0066] In the embodiment, the configuration items in the application resource parameters include a persistent database name, a non-persistent database name and a name of a job execution queue.
[0067] In step 205, a scheduling job is generated according to the basic parameters and the application resource parameters, and the scheduling job is published to the execution system configured according to the deployment parameters, so as to complete the automatic configuration of the scheduling job.
[0068] In the embodiment, the step of generating the scheduling job according to the basic parameters and the application resource parameters specifically includes: generating the scheduling job name according to a preset rewriting rule and the script name, wherein the preset rewriting rule includes capitalizing the script name and splicing the capitalized script name according to a preset splicing symbol; and setting an association between the scheduling job and the persistent database, the scheduling job and the non-persistent database and the scheduling job and the job execution queue according to the scheduling job name, the persistent database name, the non-persistent database name and the name of the job execution queue.
[0069] For example, the script name is “DMS_GRP_OP_plng_edr_base_D”, the script name is capitalized, that is, it is converted to “DMS_GRP_OP_PLNG_EDR_BASE_D”, and then the capitalized script name is spliced by using a preset splicing symbol, for example, the splicing symbol is YP, and finally the splicing result is “YP_DMS_GRP_OP_PLNG_EDR_BASE_D”.
[0070] In the embodiment, the configuration script further comprises an execution period, a scheduling time, a scheduling priority and a number of failure retries, and the step of generating the scheduling job according to the basic parameters and the application resource parameters further comprises: setting the execution period, the scheduling time, the scheduling priority and the number of failure retries of the scheduling job according to the execution period, the scheduling time, the scheduling priority and the number of failure retries in the configuration script.
[0071] The execution period, the scheduling time, the scheduling priority and the number of failure retries are set to flexibly control the scheduling job.
[0072] In the embodiment, before the step of publishing the scheduling job to the execution system configured according to the deployment parameters, the method further comprises: automatically configuring the execution system in a preset configuration interface according to a system name, a deployment mode and a deployment type of the current time of the execution system, wherein if the deployment mode is an initialization mode, a distinguishing character is added at the end of the text of the configuration script to mark.
[0073] For example, if the deployment mode is the initialization mode, the distinguishing character "IN I T" is added at the end of the text of the configuration script to mark, and if the deployment mode is an incremental mode, no distinguishing character is added at the end of the text of the configuration script.
[0074] In the embodiment, after the step of publishing the scheduling job to the execution system configured according to the deployment parameters, the method further comprises: sending a publishing result of the scheduling job to relevant personnel by a message reminding mode according to the basic parameters.
[0075] The step of sending the publishing result of the scheduling job to the relevant personnel by the message reminding mode according to the basic parameters in the embodiment specifically comprises: obtaining an identification of a development allocation personnel and an identification of a development review personnel; and sending the job type and the project name of the scheduling job to the development allocation personnel and the development review personnel respectively according to the identification of the development allocation personnel and the identification of the development review personnel.
[0076] The job type and the project name of the scheduling job are sent to the development allocation personnel and the development review personnel through the identification of the development allocation personnel and the identification of the development review personnel, so that the personnel in the development team can obtain the scheduling job at the first time, and real-time scheduling is ensured.
[0077] The application can recognize and receive a job scheduling configuration request according to a preset click monitoring control, analyze the job scheduling configuration request, obtain a script name of a configuration script and an extraction path of the configuration script, obtain the configuration script according to the script name of the configuration script and the extraction path of the configuration script, analyze the configuration script, obtain deployment parameters, basic parameters and application resource parameters in the configuration script, generate a scheduling job according to the basic parameters and the application resource parameters, publish the scheduling job to an execution system configured according to the deployment parameters, and complete automatic configuration of the scheduling job. The application can automatically configure job scheduling, avoid low configuration efficiency, reduce the occurrence of job configuration problems, and ensure user experience.
[0078] Embodiments of the application can acquire and process related data based on artificial intelligence technology. Artificial intelligence (AI) is the use of digital computers or computer-controlled machines to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0079] Artificial intelligence basic technologies generally include technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing, operation / interaction systems, mechatronics, etc. Artificial intelligence software technologies mainly include computer vision technology, robot technology, biometric identification technology, speech processing technology, natural language processing technology, and machine learning / deep learning, etc.
[0080] In embodiments of the application, an artificial intelligence model for automatically generating job scheduling configuration can be trained according to the method of automatically generating job scheduling configuration, and the job scheduling configuration can be performed using the artificial intelligence model, which is more intelligent and automated.
[0081] Further referring to Figure 3 , as an implementation of the method shown in Figure 2 , the application provides an embodiment of an apparatus for automatically generating job scheduling configuration, which corresponds to the method embodiment shown in Figure 2 , and the apparatus can be applied to various electronic devices.
[0082] As shown in Figure 3 , the apparatus 300 for automatically generating job scheduling configuration comprises a request receiving module 301, a request content analyzing module 302, a configuration script obtaining module 303, a configuration parameter obtaining module 304 and an automatic configuration module 305. Among them:
[0083] The request receiving module 301 is configured to identify and receive a job scheduling configuration request according to a preset click monitoring control, wherein the job scheduling configuration request comprises a script name of a configuration script and an extraction path of the configuration script;
[0084] The request content analyzing module 302 is configured to analyze the job scheduling configuration request to obtain the script name of the configuration script and the extraction path of the configuration script;
[0085] The configuration script obtaining module 303 is configured to obtain the configuration script according to the script name of the configuration script and the extraction path of the configuration script;
[0086] The configuration parameter obtaining module 304 is configured to analyze the configuration script to obtain deployment parameters, basic parameters and application resource parameters in the configuration script, and send the deployment parameters to a preset automatic configuration interface to complete configuration of an execution system, wherein the deployment parameters are used to configure an execution system adapted to a target scheduling job, the basic parameters are used to configure a specific execution task corresponding to the scheduling job, and the application resource parameters are used to configure data and queue resources used when the scheduling job is executed;
[0087] The automatic configuration module 305 is configured to generate a scheduling job according to the basic parameters and the application resource parameters, and publish the scheduling job to the execution system configured according to the deployment parameters, to complete automatic configuration of the scheduling job.
[0088] With reference to Figure 4 , Figure 4 is Figure 3 a structural schematic diagram of one specific embodiment of the automatic configuration module 305, which comprises a first configuration sub-module 401, a second configuration sub-module 402 and a third configuration sub-module 403. Wherein:
[0089] The first configuration sub-module 401 is configured to automatically configure the execution system in a preset configuration interface according to configuration items in the deployment parameters, such as a system name of the execution system, a deployment mode and a deployment type of this time;
[0090] The second configuration sub-module 402 is configured to set an association relationship between the scheduling job and a persistent database, between the scheduling job and a non-persistent database, and between the scheduling job and a job execution queue according to configuration items in the application resource parameters, such as a persistent database name, a non-persistent database name and a name of the job execution queue;
[0091] The third configuration submodule 403 is used to send the release result of the scheduled job to relevant personnel via message reminders based on the configuration items in the basic parameters: job type, project name, development assigner identifier, and development reviewer identifier.
[0092] This application identifies and receives job scheduling configuration requests based on preset click monitoring controls; parses the job scheduling configuration request to obtain the script name and extraction path of the configuration script; retrieves the configuration script based on the script name and extraction path; parses the configuration script to obtain deployment parameters, basic parameters, and application resource parameters; generates a scheduling job based on the basic parameters and application resource parameters, and publishes the scheduling job to the execution system configured according to the deployment parameters, thus completing the automated configuration of the scheduling job. This application avoids inefficient configuration, reduces job configuration problems, and ensures a better user experience by automating job scheduling configuration.
[0093] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).
[0094] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0095] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed]. Figure 5 , Figure 5 This is a basic structural block diagram of the computer device in this embodiment.
[0096] The computer device 5 includes a memory 51, a processor 52, and a network interface 53, which are communicatively connected through a system bus. It should be noted that only the computer device 5 with components 51-53 is shown in the figure, but it should be understood that all the shown components are not required to be implemented, and more or fewer components can be alternatively implemented. Among them, those skilled in the art can understand that the computer device herein is a device capable of automatically performing numerical calculation and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0097] The computer device can be a desktop computer, a notebook computer, a palm computer, a cloud server, and the like. The computer device can interact with the user through a keyboard, a mouse, a remote controller, a touchpad, a voice control device, and the like.
[0098] The memory 51 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the memory 51 can be an internal storage unit of the computer device 5, such as a hard disk or a memory of the computer device 5. In other embodiments, the memory 51 can also be an external storage device of the computer device 5, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, and the like. Of course, the memory 51 can also include both the internal storage unit and the external storage device of the computer device 5. In the present embodiment, the memory 51 is generally used to store an operating system and various application software installed in the computer device 5, such as computer readable instructions of the method for automatically generating a job scheduling configuration, and the like. In addition, the memory 51 can also be used to temporarily store various data that have been output or will be output.
[0099] The processor 52 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor 52 is generally used to control the overall operation of the computer device 5. In the present embodiment, the processor 52 is configured to run computer-readable instructions stored in the memory 51 or process data, such as computer-readable instructions of the method for automatically generating a job scheduling configuration.
[0100] The network interface 53 may include a wireless network interface or a wired network interface, and is generally used to establish a communication connection between the computer device 5 and other electronic devices.
[0101] The computer device provided in the present embodiment belongs to the technical field of financial job automation configuration. According to the preset click monitoring control, the present application identifies and receives a job scheduling configuration request, analyzes the job scheduling configuration request, obtains a script name of a configuration script and an extraction path of the configuration script, obtains the configuration script according to the script name of the configuration script and the extraction path of the configuration script, analyzes the configuration script, obtains deployment parameters, basic parameters and application resource parameters in the configuration script, generates a scheduling job according to the basic parameters and the application resource parameters, and publishes the scheduling job to an execution system configured according to the deployment parameters, thereby completing the automation configuration of the scheduling job. The present application avoids low configuration efficiency, reduces the occurrence of job configuration problems, and ensures the user experience.
[0102] The present application also provides another embodiment, i.e., a computer-readable storage medium storing computer-readable instructions, which can be executed by a processor to make the processor perform the steps of the method for automatically generating a job scheduling configuration as described above.
[0103] The computer-readable storage medium provided in the present embodiment belongs to the technical field of financial job automation configuration. According to the preset click monitoring control, the present application identifies and receives a job scheduling configuration request, analyzes the job scheduling configuration request, obtains a script name of a configuration script and an extraction path of the configuration script, obtains the configuration script according to the script name of the configuration script and the extraction path of the configuration script, analyzes the configuration script, obtains deployment parameters, basic parameters and application resource parameters in the configuration script, generates a scheduling job according to the basic parameters and the application resource parameters, and publishes the scheduling job to an execution system configured according to the deployment parameters, thereby completing the automation configuration of the scheduling job. The present application avoids low configuration efficiency, reduces the occurrence of job configuration problems, and ensures the user experience.
[0104] Those skilled in the art can clearly understand the above-mentioned embodiment method can be realized by means of software and the necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the method described in each embodiment of the present application.
[0105] Obviously, the above-described embodiments are only some of the embodiments of the present application, not all the embodiments, and the drawings show the preferred embodiments of the present application, but do not limit the patent scope of the present application. The present application can be implemented in many different forms, and conversely, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions recorded in the foregoing specific embodiments, or make equivalent replacements to some of the technical features. Any equivalent structure made by using the content of the specification and drawings, directly or indirectly applied to other related technical fields, is also within the scope of the patent protection of the present application.
Claims
1. A method of automatically generating a job scheduling configuration, the method comprising: The method is applied to the automatic configuration of financial operation and comprises the following steps: According to the preset click monitoring control, a job scheduling configuration request is recognized and received, wherein the job scheduling configuration request comprises a script name of a configuration script and an extraction path of the configuration script; The job scheduling configuration request is parsed to obtain the script name of the configuration script and the extraction path of the configuration script; The configuration script is obtained according to the script name of the configuration script and the extraction path of the configuration script; The configuration script is parsed to obtain deployment parameters, basic parameters and application resource parameters in the configuration script, and the deployment parameters are sent to a preset automatic configuration interface to complete the configuration of an execution system, wherein the deployment parameters are used to configure an execution system adapted to a target scheduling job, the basic parameters are used to configure specific execution tasks corresponding to the scheduling job, and the application resource parameters are used to configure data and queue resources used for executing the scheduling job; According to the basic parameters and the application resource parameters, a scheduling job is generated and published to the execution system configured according to the deployment parameters, thereby completing the automatic configuration of the scheduling job. According to the basic parameters, the publication result of the scheduling job is sent to relevant personnel in the form of a message reminder, wherein the configuration items in the basic parameters comprise a job type, a project name, a development allocation personnel identifier and a development review personnel identifier.
2. The method of automatically generating a job scheduling configuration of claim 1, wherein, The step of parsing the configuration script to obtain the deployment parameters, the basic parameters and the application resource parameters in the configuration script comprises the following steps: According to the deployment parameters, the basic parameters and the application resource parameters, corresponding JSON objects are generated, and the data values corresponding to each JSON object are subjected to standard format processing, wherein the standard format processing comprises JSON data format processing of the configuration items in the deployment parameters, the configuration items in the basic parameters and the configuration items in the application resource parameters.
3. The method of automatically generating a job scheduling configuration of claim 2, wherein, The configuration items in the application resource parameters comprise a persistent database name, a non-persistent database name and a job execution queue name, and the step of generating a scheduling job according to the basic parameters and the application resource parameters comprises the following steps: According to a preset rewriting rule and the script name, the scheduling job name is generated, wherein the preset rewriting rule comprises capitalization of the script name and concatenation processing of the capitalized script name according to a preset concatenation symbol; According to the scheduling job name, the persistent database name, the non-persistent database name and the job execution queue name, an association relationship is set between the scheduling job and the persistent database, between the scheduling job and the non-persistent database and between the scheduling job and the job execution queue.
4. The method of automatically generating a job scheduling configuration of claim 3, wherein, The configuration script further includes an execution period, a scheduling time, a scheduling priority and a number of failure retries, and after the step of generating the scheduling job name according to the preset rewriting rule and the script name, the method further includes: setting the execution period, the scheduling time, the scheduling priority and the number of failure retries of the scheduling job according to the scheduling job name and the execution period, the scheduling time, the scheduling priority and the number of failure retries in the configuration script.
5. The method of automatically generating a job scheduling configuration of claim 2, wherein, The configuration item in the deployment parameter includes a system name of the execution system, a deployment mode and a deployment type of this time, wherein the deployment mode includes any one of an incremental mode and an initialization mode, and the deployment type includes any one of a modified deployment class, an added deployment class and a deleted deployment class, and before the step of publishing the scheduling job into the execution system configured according to the deployment parameter, the method further includes: automatically configuring the execution system in a preset configuration interface according to the system name of the execution system, the deployment mode and the deployment type of this time, and if the deployment mode is the initialization mode, adding a distinguishing character at the end of the text of the configuration script to mark.
6. The method of automatically generating a job scheduling configuration of claim 1, wherein, The step of sending the publishing result of the scheduling job to related personnel through a message reminder according to the basic parameter specifically includes: obtaining the development allocation personnel identifier and the development review personnel identifier; sending the job type and the project name to the development allocation personnel and the development review personnel, respectively, according to the development allocation personnel identifier and the development review personnel identifier.
7. An apparatus for automatically generating a job scheduling configuration, the apparatus comprising: Applied to financial job automation configuration, including: A request receiving module is configured to identify and receive a job scheduling configuration request according to a preset click monitoring control, wherein the job scheduling configuration request includes a script name of a configuration script and an extraction path of the configuration script. A request content analysis module is configured to analyze the job scheduling configuration request to obtain the script name of the configuration script and the extraction path of the configuration script. A configuration script obtaining module is configured to obtain the configuration script according to the script name of the configuration script and the extraction path of the configuration script. A configuration parameter obtaining module is configured to analyze the configuration script to obtain deployment parameters, basic parameters and application resource parameters in the configuration script, and send the deployment parameters to a preset automatic configuration interface to complete configuration of an execution system, wherein the deployment parameters are used to configure an execution system adapted to a target scheduling job, the basic parameters are used to configure specific execution tasks corresponding to the scheduling job, and the application resource parameters are used to configure data and queue resources used when the scheduling job is executed. An automatic configuration module is configured to generate a scheduling job according to the basic parameters and the application resource parameters, and publish the scheduling job into the execution system configured according to the deployment parameters to complete automatic configuration of the scheduling job, and after the step of publishing the scheduling job into the execution system configured according to the deployment parameters, the method further includes: The publishing result of the scheduling job is sent to relevant personnel in a message reminding manner according to the basic parameters, wherein the configuration item in the basic parameters comprises a job type, a project name, a development allocation personnel identifier, and a development review personnel identifier. 8.A computer device comprising a memory and a processor, wherein the memory stores computer readable instructions, and the processor executes the computer readable instructions to implement the steps of the method for automatically generating a job scheduling configuration according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer readable instructions, and the computer readable instructions are executed by a processor to implement the steps of the method for automatically generating a job scheduling configuration according to any one of claims 1 to 6.
Citation Information
Patent Citations
Cloud computing platform-oriented scientific workflow system and method
CN105447643A
Big data testing method and device based on artificial intelligence, electronic equipment and medium
CN114328267A