CN113485816B - Deployment method, device, equipment and storage medium for timing scheduling task - Google Patents

Deployment method, device, equipment and storage medium for timing scheduling task Download PDF

Info

Publication number
CN113485816B
CN113485816B CN202110877945.1A CN202110877945A CN113485816B CN 113485816 B CN113485816 B CN 113485816B CN 202110877945 A CN202110877945 A CN 202110877945A CN 113485816 B CN113485816 B CN 113485816B
Authority
CN
China
Prior art keywords
plug
package
preset
deployment
task
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.)
Active
Application number
CN202110877945.1A
Other languages
Chinese (zh)
Other versions
CN113485816A (en
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.)
Shenzhen Lian Intellectual Property Service Center
Shenzhen Luchi Technology Co ltd
Original Assignee
Shenzhen Luchi Technology 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 Shenzhen Luchi Technology Co ltd filed Critical Shenzhen Luchi Technology Co ltd
Priority to CN202110877945.1A priority Critical patent/CN113485816B/en
Publication of CN113485816A publication Critical patent/CN113485816A/en
Application granted granted Critical
Publication of CN113485816B publication Critical patent/CN113485816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/53Decompilation; Disassembly
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention relates to the field of research and development management, and discloses a method, a device, equipment and a storage medium for deploying a timing scheduling task, which are used for reducing the coupling between the timing scheduling task and a specific service line and improving the deployment efficiency of the timing scheduling task. The deployment method of the timing scheduling task comprises the following steps: acquiring a timing scheduling task in a preset test environment, packaging configuration information in the timing scheduling task into an initial plug-in package, and performing decompilation encryption on the initial plug-in package to obtain an encrypted plug-in package; synchronizing the encrypted plug-in package to a project catalog of a preset production environment, and acquiring a plug-in deployment file according to a mapping relation between a preset deployment workflow and the deployment file; the method comprises the steps of performing hot deployment on an encryption plug-in package in a preset production environment through plug-in deployment files; releasing resources in a preset production environment and cleaning cache data. In addition, the invention also relates to a blockchain technology, and the encryption plug-in package can be stored in a blockchain node.

Description

Deployment method, device, equipment and storage medium for timing scheduling task
Technical Field
The present invention relates to the field of transaction process optimization technologies, and in particular, to a method, an apparatus, a device, and a storage medium for deploying a task in a timing manner.
Background
In the daily management process of enterprises, regular scheduling tasks such as regular reminding, regular mail, regular synchronization and the like are often needed, and enterprises and owners generally develop related regular scheduling functions according to specific regular scheduling requirements so as to improve the management efficiency of the enterprises.
The problem that the timing scheduling task of the enterprise is difficult to be integrated with a specific service line still exists at the present stage, the corresponding timing scheduling function is independently developed after the service function is developed, so that the problems of long development period, high development cost and the like are caused, and once the service function is changed, the timing scheduling function is also involved, and the function decoupling performance is poor.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for deploying a timing scheduling task, which are used for reducing the coupling between the timing scheduling task and a specific service line and improving the deployment efficiency of the timing scheduling task.
The first aspect of the present invention provides a method for deploying a timing scheduling task, comprising:
Acquiring a timing scheduling task in a preset test environment, and extracting configuration information in the timing scheduling task;
packaging the configuration information into an initial plug-in package, and decompiling and encrypting the initial plug-in package to obtain an encrypted plug-in package;
synchronizing the encrypted plug-in package to a project catalog of a preset production environment, and acquiring a plug-in deployment file corresponding to the encrypted plug-in package according to a mapping relation between a preset deployment workflow and the deployment file;
performing hot deployment on the encryption plug-in package in the preset production environment through the plug-in deployment file so as to deploy the timing scheduling task into the preset production environment;
and releasing the resources in the preset production environment and cleaning the cache data.
Optionally, in a first implementation manner of the first aspect of the present invention, the acquiring a timing scheduling task in a preset test environment and extracting configuration information in the timing scheduling task include:
reading preset user login information, and simulating a timing scheduling task configuration system in a login preset test environment according to the user login information;
calling a preset timed scheduling task acquisition interface to acquire timed scheduling tasks from the timed scheduling task configuration system;
Analyzing the timed scheduling task to obtain configuration information in the timed scheduling task, wherein the configuration information comprises a task name, a task creator and a task type.
Optionally, in a second implementation manner of the first aspect of the present invention, the encapsulating the configuration information into an initial plug-in package, and performing decompilation encryption on the initial plug-in package to obtain an encrypted plug-in package includes:
extracting key configurations in the configuration information based on a preset project automation construction tool, and packaging the key configurations into an initial plug-in package;
and performing decompilation encryption on the initial plug-in package through a preset decompilation encryption algorithm to obtain an encrypted plug-in package.
Optionally, in a third implementation manner of the first aspect of the present invention, the synchronizing the encrypted plug-in package to a project directory of a preset production environment, and obtaining, according to a mapping relationship between a preset deployment workflow and a deployment file, a plug-in deployment file corresponding to the encrypted plug-in package includes:
acquiring a code warehouse address of a preset production environment, and uploading the encrypted plug-in package to an item directory corresponding to the code warehouse address;
Running a code synchronous command under a preset production environment, and updating the encryption plug-in package into a project of the preset production environment;
the mapping relation between the preset deployment workflow and the deployment files is obtained, and the corresponding plug-in deployment files are determined according to the deployment workflow corresponding to the encrypted plug-in package, wherein the plug-in deployment files are used for executing the plug-in deployment workflow.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the deploying, by the plug-in deployment file, the hot deployment of the encrypted plug-in package in the preset production environment to deploy the timing scheduling task to the preset production environment includes:
the encryption plug-in package is decrypted through a preset decompilation decryption algorithm, and a decryption plug-in package is obtained;
compiling the decryption plug-in package through a preset compiling program to obtain a pre-installed plug-in package to be operated;
and calling the plug-in deployment file, and thermally deploying the pre-installed plug-in package into a preset production environment so as to deploy the timing scheduling task into the preset production environment.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the releasing the resources in the preset production environment and cleaning the cache data includes:
Releasing invalid resources in a new production environment corresponding to the preset production environment, wherein the new production environment is provided with a new timing scheduling task, and the invalid resources comprise null objects, over-reference range objects, unreferenced objects and unreferenced resource files;
and searching a plug-in cache area in the new production environment, and cleaning plug-in cache data of the plug-in cache area.
The second aspect of the present invention provides a deployment apparatus for timing task scheduling, including:
the acquisition module is used for acquiring a timing scheduling task in a preset test environment and extracting configuration information in the timing scheduling task;
the encryption module is used for packaging the configuration information into an initial plug-in package, and performing decompilation encryption on the initial plug-in package to obtain an encrypted plug-in package;
the synchronization module is used for synchronizing the encrypted plug-in package to a project directory of a preset production environment and acquiring a plug-in deployment file corresponding to the encrypted plug-in package according to a mapping relation between a preset deployment workflow and the deployment file;
the deployment module is used for performing hot deployment on the encryption plug-in package in the preset production environment through the plug-in deployment file so as to deploy the timing scheduling task into the preset production environment;
And the release module is used for releasing the resources in the preset production environment and cleaning the cache data.
Optionally, in a first implementation manner of the second aspect of the present invention, the acquiring module includes:
the reading unit is used for reading preset user login information and simulating a timing scheduling task configuration system in a preset test environment according to the user login information;
the calling unit is used for calling a preset timed scheduling task acquisition interface and acquiring timed scheduling tasks from the timed scheduling task configuration system;
the analysis unit is used for analyzing the timing scheduling task to obtain configuration information in the timing scheduling task, wherein the configuration information comprises a task name, a task creator and a task type.
Optionally, in a second implementation manner of the second aspect of the present invention, the encryption module is specifically configured to:
extracting key configurations in the configuration information based on a preset project automation construction tool, and packaging the key configurations into an initial plug-in package;
and performing decompilation encryption on the initial plug-in package through a preset decompilation encryption algorithm to obtain an encrypted plug-in package.
Optionally, in a third implementation manner of the second aspect of the present invention, the synchronization module is specifically configured to:
acquiring a code warehouse address of a preset production environment, and uploading the encrypted plug-in package to an item directory corresponding to the code warehouse address;
running a code synchronous command under a preset production environment, and updating the encryption plug-in package into a project of the preset production environment;
the mapping relation between the preset deployment workflow and the deployment files is obtained, and the corresponding plug-in deployment files are determined according to the deployment workflow corresponding to the encrypted plug-in package, wherein the plug-in deployment files are used for executing the plug-in deployment workflow.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the deployment module is specifically configured to:
the encryption plug-in package is decrypted through a preset decompilation decryption algorithm, and a decryption plug-in package is obtained;
compiling the decryption plug-in package through a preset compiling program to obtain a pre-installed plug-in package to be operated;
and calling the plug-in deployment file, and thermally deploying the pre-installed plug-in package into a preset production environment so as to deploy the timing scheduling task into the preset production environment.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the release module is specifically configured to:
releasing invalid resources in a new production environment corresponding to the preset production environment, wherein the new production environment is provided with a new timing scheduling task, and the invalid resources comprise null objects, over-reference range objects, unreferenced objects and unreferenced resource files;
and searching a plug-in cache area in the new production environment, and cleaning plug-in cache data of the plug-in cache area.
A third aspect of the present invention provides a deployment apparatus for timing scheduled tasks, comprising: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the deployment device of the regularly scheduled task to execute the deployment method of the regularly scheduled task.
A fourth aspect of the present invention provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the above-described deployment method of timed scheduled tasks.
In the technical scheme provided by the invention, a timing scheduling task in a preset test environment is obtained, and configuration information in the timing scheduling task is extracted; packaging the configuration information into an initial plug-in package, and decompiling and encrypting the initial plug-in package to obtain an encrypted plug-in package; synchronizing the encrypted plug-in package to a project catalog of a preset production environment, and acquiring a plug-in deployment file corresponding to the encrypted plug-in package according to a mapping relation between a preset deployment workflow and the deployment file; performing hot deployment on the encryption plug-in package in the preset production environment through the plug-in deployment file so as to deploy the timing scheduling task into the preset production environment; and releasing the resources in the preset production environment and cleaning the cache data. In the embodiment of the invention, after the server acquires the timing scheduling task in the preset test environment, the configuration information of the timing scheduling task is extracted, then the configuration information is packaged into the initial plug-in package, the server encrypts the initial plug-in package and then synchronizes the initial plug-in package into the preset production environment, and the plug-in deployment file is acquired, so that the timing scheduling task can be deployed in the preset production environment in the form of the plug-in package, and the automatic deployment of the timing scheduling task is realized. The invention can reduce the coupling between the timing scheduling task and the specific service line and improve the deployment efficiency of the timing scheduling task.
Drawings
FIG. 1 is a schematic diagram of one embodiment of a method for deploying a scheduled task in a timing manner according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a method for deploying a scheduled task in a timing manner according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of a deployment apparatus for periodically scheduling tasks in an embodiment of the invention;
FIG. 4 is a schematic diagram of another embodiment of a deployment apparatus for periodically scheduling tasks in an embodiment of the invention;
FIG. 5 is a schematic diagram of one embodiment of a deployment device for scheduling tasks at regular intervals in an embodiment of the invention.
Detailed Description
The embodiment of the invention provides a method, a device, equipment and a storage medium for deploying a timing scheduling task, which are used for reducing the coupling between the timing scheduling task and a specific service line and improving the deployment efficiency of the timing scheduling task.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For ease of understanding, a specific flow of an embodiment of the present invention is described below, referring to fig. 1, and one embodiment of a method for deploying a scheduled task in an embodiment of the present invention includes:
101. acquiring a timing scheduling task in a preset test environment, and extracting configuration information in the timing scheduling task;
it can be understood that the execution body of the present invention may be a deployment device for scheduling tasks regularly, and may also be a terminal or a server, which is not limited herein. The embodiment of the invention is described by taking a server as an execution main body as an example.
In this embodiment, the scheduled tasks in the preset test environment may be created and configured by the project management platform, for example, the report tasks are sent regularly by the report system, the mail tasks are sent regularly by the project management system, and may also be created uniformly by the scheduled task management platform.
In this embodiment, the configuration information in the scheduled task includes a task name, a task creator, a task type, a task execution target, a task trigger time, a task repetition time, a task template path, a task description, task condition parameters, and task output data, where the task execution target is a target system to be scheduled by the scheduled task at the time of designation, the task template path is a template path adopted at the time of creation of the scheduled task at the time of designation, and the task condition parameters are trigger condition parameters of the scheduled task at the time of designation.
102. Packaging the configuration information into an initial plug-in package, and performing decompilation encryption on the initial plug-in package to obtain an encrypted plug-in package;
in this embodiment, after the server obtains the configuration information of the timing scheduling task, the server writes the configuration information into the plug-in module according to the data format of the preset plug-in module, and then the server encapsulates the plug-in module containing the configuration information into an initial plug-in package by executing the plug-in building command, where the initial plug-in package is typically a compressed package, and may be decompiled, so that there is a risk of disclosure of content.
In this embodiment, the server encapsulates the configuration information into the initial package by using a preset plug-in engine, where the plug-in engine includes a plug-in management engine plug-in manager and a class loader ClassLoader, which can be used for encapsulating the system plug-in, so that the efficiency of plug-in deployment can be improved, and the plug-in engine specifically used is not limited herein.
103. Synchronizing the encrypted plug-in package to a project catalog of a preset production environment, and acquiring a plug-in deployment file corresponding to the encrypted plug-in package according to a mapping relation between a preset deployment workflow and the deployment file;
In this embodiment, since the timing scheduling task is configured in the preset test environment, in order to further improve the synchronicity between the timing scheduling task and the specific service flow, the encrypted plug-in package is synchronized to the project directory of the preset production environment, so that the timing scheduling task in the preset production environment can copy the configuration information in the preset test environment without manual configuration, thereby avoiding human errors and improving the development efficiency.
In this embodiment, the deployment file is used to deploy to the target machine to form a system file of the project running environment on the target machine, and the deployment workflow is used to instruct a series of automated operation flows to deploy the deployment file to the corresponding location of the target machine. Different deployment files are mapped to different deployment workflows, for example, the deployment files of a package of plugins and the package deployment workflows are in a mutual mapping relationship, the deployment files of the package of components and the package deployment workflows are in a mutual mapping relationship, when a server performs hot deployment, the whole project operation environment is not required to be set, and only the operation environment of a package deployment file part is required to be updated, so that the server obtains the package deployment files according to the mapping relationship between the deployment workflows and the deployment files, namely, hot deployment can be performed, and the deployment efficiency of a timing scheduling task is improved.
104. The hot deployment of the encryption plug-in package is carried out in a preset production environment through the plug-in deployment file, so that the timing scheduling task is deployed in the preset production environment;
in this embodiment, hot deployment refers to system upgrade when a system is running without restarting the system, and for most systems or application programs, hot deployment refers to updating class objects when running, and for the present invention, a server updates a plug-in deployment file corresponding to a timing scheduling task to a preset production environment, where the running system in the preset production environment can obtain the timing scheduling task in the preset test environment in real time, so as to complete a preset production environment deployment flow of the timing scheduling task.
105. Releasing resources in a preset production environment and cleaning cache data.
In this embodiment, the cache and the original resources in the preset production environment may have a hysteresis effect on the heat deployment, so that in order to enable the preset production environment to update the timing scheduling task in real time, the server also releases the original plug-in package resources in the preset production environment and cleans the original plug-in cache after deploying the encrypted plug-in package to the preset production environment, so that the preset production environment can update the timing scheduling task in real time.
Further, the server stores the encrypted plug-in package in a blockchain database, as not limited herein.
In the embodiment of the invention, after the server acquires the timing scheduling task in the preset test environment, the configuration information of the timing scheduling task is extracted, then the configuration information is packaged into the initial plug-in package, the server encrypts the initial plug-in package and then synchronizes the initial plug-in package into the preset production environment, and the plug-in deployment file is acquired, so that the timing scheduling task can be deployed in the preset production environment in the form of the plug-in package, and the automatic deployment of the timing scheduling task is realized. The invention can reduce the coupling between the timing scheduling task and the specific service line and improve the deployment efficiency of the timing scheduling task.
Referring to fig. 2, another embodiment of a method for deploying a scheduled task according to an embodiment of the present invention includes:
201. reading preset user login information, and simulating a timing scheduling task configuration system in a preset test environment according to the user login information;
in this embodiment, in order to obtain the configuration information of the scheduled task, the server obtains the access right of the scheduled task configuration system in a login simulation manner, and the user login information used for login simulation may be user login information of a specific administrator right or user login information having a task creation right of the scheduled task, which is not specifically limited herein.
202. Calling a preset timed scheduling task acquisition interface to acquire timed scheduling tasks from a timed scheduling task configuration system;
in this embodiment, the task configuration system for timing scheduling may be a platform system specially used for managing the task for timing scheduling, or may be a service system with task configuration function for timing scheduling on an enterprise service line, for example, a report function for timing sending in a report management system, and a mail function for timing sending in a customer service system, where these functions may be completed by the task for timing scheduling, so that they all have configuration information for the task for timing scheduling.
In this embodiment, after logging in the timed task configuration system by simulation, the server obtains access and operation rights of the timed task configuration system, and then invokes a preset timed task acquisition interface based on the access and operation rights to acquire the timed task from the timed task configuration system for automatic deployment of subsequent timed tasks.
203. Analyzing the timing scheduling task to obtain configuration information in the timing scheduling task, wherein the configuration information comprises a task name, a task creator and a task type;
in this embodiment, the server extracts configuration information in the scheduled task, that is, task description information of the scheduled task, by analyzing the scheduled task, where the configuration information includes, but is not limited to, information that can describe related attributes of the scheduled task, such as a task name, a task creator, a task type, a task execution target, a task trigger time, a task repetition time, a task template path, task descriptions, task condition parameters, task output data, and the like.
204. Packaging the configuration information into an initial plug-in package, and performing decompilation encryption on the initial plug-in package to obtain an encrypted plug-in package;
specifically, the server extracts key configurations in configuration information based on a preset project automation construction tool, and packages the key configurations into an initial plug-in package; and the server decompiles and encrypts the initial plug-in package through a preset decompilation encryption algorithm to obtain an encrypted plug-in package.
In this optional embodiment, the preset project automation construction tool includes a construction script gradle, and the server encapsulates the key configuration in the configuration information through the preset project automation construction tool, so as to obtain an initial package, where the key configuration refers to a necessary configuration in the process of plug-in deployment, and some unnecessary configurations, such as a task creator, task description, and the like, are removed. The server can convert the initial plug-in package into an encrypted plug-in package through a preset decompilation encryption algorithm to prevent decompilation, wherein the decompilation algorithm is a custom encryption algorithm, and is not specifically limited herein.
205. Synchronizing the encrypted plug-in package to a project catalog of a preset production environment, and acquiring a plug-in deployment file corresponding to the encrypted plug-in package according to a mapping relation between a preset deployment workflow and the deployment file;
Specifically, the server acquires a code warehouse address of a preset production environment, and uploads an encryption plug-in package to an item directory corresponding to the code warehouse address; the server runs a code synchronous command under a preset production environment and updates the encryption plug-in package into a project of the preset production environment; the server obtains a preset mapping relation between the deployment workflow and the deployment files, and determines corresponding plug-in deployment files according to the deployment workflow corresponding to the encrypted plug-in package, wherein the plug-in deployment files are used for executing the plug-in deployment workflow.
In this optional embodiment, the server uploads the encrypted package to the code repository of the preset production environment to synchronize the encrypted package in the preset test environment, specifically, the server obtains the code repository address of the preset production environment, and uploads the encrypted package to the project list of the package storage location, thereby synchronizing the code. And finally, the server determines a plug-in deployment file according to the mapping relation between the deployment workflow and the deployment file, and is used for executing the plug-in deployment workflow so as to enable the encrypted plug-in package of the timing scheduling task to be automatically deployed in the preset production environment.
206. The hot deployment of the encryption plug-in package is carried out in a preset production environment through the plug-in deployment file, so that the timing scheduling task is deployed in the preset production environment;
specifically, the server decrypts the encrypted plug-in package through a preset decompilation decryption algorithm to obtain a decrypted plug-in package; the server compiles the decryption plug-in package through a preset compiling program to obtain a pre-installed plug-in package to be operated; the server calls the plug-in deployment file to thermally deploy the pre-installed plug-in package into the preset production environment so as to deploy the timing scheduling task into the preset production environment.
In this optional embodiment, before the server performs the hot deployment, the server needs to decrypt the encrypted plug-in package, specifically, the server performs decompilation and decryption on the encrypted plug-in package according to a preset decompilation and decryption algorithm, so as to obtain a decrypted plug-in package with restored configuration information, where it needs to be noted that the content of the decrypted plug-in package is the same as the content before decompilation and encryption.
In this optional embodiment, the server performs compiling processing on the decrypted plug-in package before operation through a preset compiler to obtain a pre-installed plug-in package capable of being directly operated, and the server can thermally deploy the compiled pre-installed plug-in package into a preset production environment by calling a plug-in deployment file, so that a timing scheduling task is deployed into the preset production environment.
207. Releasing resources in a preset production environment and cleaning cache data.
Specifically, the server releases invalid resources in a new production environment corresponding to the preset production environment, wherein the new production environment has a new timing scheduling task, and the invalid resources comprise null objects, over-reference range objects, unreferenced objects and unreferenced resource files; the server searches the plug-in cache area in the new production environment and cleans plug-in cache data of the plug-in cache area.
In this alternative embodiment, since the scheduled tasks in the preset production environment are redeployed and completed, the current production environment is a new production environment with new scheduled tasks, and the server clears the invalid resources and plug-in cache data in the new production environment based on the new production environment, so that the new production environment can synchronize the new scheduled tasks in real time. The invalid resources comprise null objects, over-reference scope objects, unreferenced objects and unreferenced resource files, and all the invalid resources can cause the abnormal reference of the objects in the new production environment, so that the timing scheduling task and even the whole system are abnormal, and therefore, the resource release and the cache cleaning are necessary links for deployment.
In the embodiment of the invention, the server acquires the access and operation authority of the timed scheduling task configuration system in a login simulating manner, invokes a preset timed scheduling task acquisition interface to acquire the timed scheduling task, and analyzes the timed scheduling task to acquire the configuration information in the timed scheduling task. The invention can reduce the coupling between the timing scheduling task and the specific service line and improve the deployment efficiency of the timing scheduling task.
The method for disposing the scheduled task in the embodiment of the present invention is described above, and the apparatus for disposing the scheduled task in the embodiment of the present invention is described below, referring to fig. 3, and one embodiment of the apparatus for disposing the scheduled task in the embodiment of the present invention includes:
the acquisition module 301 is configured to acquire a timing scheduling task in a preset test environment, and extract configuration information in the timing scheduling task;
the encryption module 302 is configured to encapsulate the configuration information into an initial plug-in package, and decompil and encrypt the initial plug-in package to obtain an encrypted plug-in package;
the synchronization module 303 is configured to synchronize the encrypted plug-in package to a project directory of a preset production environment, and obtain a plug-in deployment file corresponding to the encrypted plug-in package according to a mapping relationship between a preset deployment workflow and a deployment file;
The deployment module 304 is configured to perform, through the plug-in deployment file, hot deployment on the encrypted plug-in package in the preset production environment, so as to deploy the timing scheduling task into the preset production environment;
and the releasing module 305 is configured to release the resources in the preset production environment and clean the cache data.
Further, the encrypted plug-in package is stored in a blockchain database, and is not limited herein.
In the embodiment of the invention, after the server acquires the timing scheduling task in the preset test environment, the configuration information of the timing scheduling task is extracted, then the configuration information is packaged into the initial plug-in package, the server encrypts the initial plug-in package and then synchronizes the initial plug-in package into the preset production environment, and the plug-in deployment file is acquired, so that the timing scheduling task can be deployed in the preset production environment in the form of the plug-in package, and the automatic deployment of the timing scheduling task is realized. The invention can reduce the coupling between the timing scheduling task and the specific service line and improve the deployment efficiency of the timing scheduling task.
Referring to fig. 4, another embodiment of a deployment apparatus for scheduling tasks in a timing manner according to an embodiment of the present invention includes:
The acquisition module 301 is configured to acquire a timing scheduling task in a preset test environment, and extract configuration information in the timing scheduling task;
the encryption module 302 is configured to encapsulate the configuration information into an initial plug-in package, and decompil and encrypt the initial plug-in package to obtain an encrypted plug-in package;
the synchronization module 303 is configured to synchronize the encrypted plug-in package to a project directory of a preset production environment, and obtain a plug-in deployment file corresponding to the encrypted plug-in package according to a mapping relationship between a preset deployment workflow and a deployment file;
the deployment module 304 is configured to perform, through the plug-in deployment file, hot deployment on the encrypted plug-in package in the preset production environment, so as to deploy the timing scheduling task into the preset production environment;
and the releasing module 305 is configured to release the resources in the preset production environment and clean the cache data.
Optionally, the acquiring module 301 includes:
the reading unit 3011 is used for reading preset user login information and simulating a timing scheduling task configuration system in a login preset test environment according to the user login information;
a calling unit 3012, configured to call a preset timed task acquisition interface, and acquire a timed task from the timed task configuration system;
And the analyzing unit 3013 is configured to analyze the scheduled task to obtain configuration information in the scheduled task, where the configuration information includes a task name, a task creator, and a task type.
Optionally, the encryption module 302 is specifically configured to:
extracting key configurations in the configuration information based on a preset project automation construction tool, and packaging the key configurations into an initial plug-in package;
and performing decompilation encryption on the initial plug-in package through a preset decompilation encryption algorithm to obtain an encrypted plug-in package.
Optionally, the synchronization module 303 is specifically configured to:
acquiring a code warehouse address of a preset production environment, and uploading the encrypted plug-in package to an item directory corresponding to the code warehouse address;
running a code synchronous command under a preset production environment, and updating the encryption plug-in package into a project of the preset production environment;
the mapping relation between the preset deployment workflow and the deployment files is obtained, and the corresponding plug-in deployment files are determined according to the deployment workflow corresponding to the encrypted plug-in package, wherein the plug-in deployment files are used for executing the plug-in deployment workflow.
Optionally, the deployment module 304 is specifically configured to:
The encryption plug-in package is decrypted through a preset decompilation decryption algorithm, and a decryption plug-in package is obtained;
compiling the decryption plug-in package through a preset compiling program to obtain a pre-installed plug-in package to be operated;
and calling the plug-in deployment file, and thermally deploying the pre-installed plug-in package into a preset production environment so as to deploy the timing scheduling task into the preset production environment.
Optionally, the release module 305 is specifically configured to:
releasing invalid resources in a new production environment corresponding to the preset production environment, wherein the new production environment is provided with a new timing scheduling task, and the invalid resources comprise null objects, over-reference range objects, unreferenced objects and unreferenced resource files;
and searching a plug-in cache area in the new production environment, and cleaning plug-in cache data of the plug-in cache area.
In the embodiment of the invention, the server acquires the access and operation authority of the timed scheduling task configuration system in a login simulating manner, invokes a preset timed scheduling task acquisition interface to acquire the timed scheduling task, and analyzes the timed scheduling task to acquire the configuration information in the timed scheduling task. The invention can reduce the coupling between the timing scheduling task and the specific service line and improve the deployment efficiency of the timing scheduling task.
The above-mentioned fig. 3 and fig. 4 describe the deployment apparatus of the scheduled task in the embodiment of the present invention in detail from the point of view of the modularized functional entity, and the following describes the deployment device of the scheduled task in the embodiment of the present invention in detail from the point of view of hardware processing.
Fig. 5 is a schematic structural diagram of a deployment device for timing task scheduling, where the deployment device 500 for timing task scheduling may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing application programs 533 or data 532 according to an embodiment of the present invention. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the deployment device 500 for scheduling tasks at regular time. Still further, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the deployment device 500 that schedules tasks at regular time.
The deployment device 500 for timing scheduled tasks may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows Serve, mac OS X, unix, linux, freeBSD, and the like. Those skilled in the art will appreciate that the configuration of the deployment device for a regularly scheduled task shown in fig. 5 does not constitute a limitation on the deployment device for a regularly scheduled task and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
The invention also provides a deployment device for the timing scheduling task, the computer device comprises a memory and a processor, wherein the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the deployment method for the timing scheduling task in the above embodiments.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and may also be a volatile computer readable storage medium, where instructions are stored in the computer readable storage medium, when the instructions are executed on a computer, cause the computer to perform the steps of the deployment method for the timing scheduling task.
Further, the computer-readable storage medium 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 for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. The deployment method of the timing scheduling task is characterized by comprising the following steps of:
acquiring a timing scheduling task in a preset test environment, and extracting configuration information in the timing scheduling task;
writing the configuration information into a preset plug-in module, executing a plug-in construction command and packaging to obtain an initial plug-in package, and decompiling and encrypting the initial plug-in package to obtain an encrypted plug-in package;
synchronizing the encrypted plug-in package to a project catalog of a preset production environment, and acquiring a plug-in deployment file corresponding to the encrypted plug-in package according to a mapping relation between a preset deployment workflow and the deployment file;
Performing hot deployment on the encryption plug-in package in the preset production environment through the plug-in deployment file so as to deploy the timing scheduling task into the preset production environment;
releasing the resources in the preset production environment and cleaning cache data;
synchronizing the encrypted plug-in package to a project directory of a preset production environment, and acquiring a plug-in deployment file corresponding to the encrypted plug-in package according to a mapping relation between a preset deployment workflow and the deployment file, wherein the method comprises the following steps:
acquiring a code warehouse address of a preset production environment, and uploading the encrypted plug-in package to an item directory corresponding to the code warehouse address;
running a code synchronous command under a preset production environment, and updating the encryption plug-in package into a project of the preset production environment;
acquiring a preset mapping relation between a deployment workflow and a deployment file, and determining a corresponding plug-in deployment file according to the deployment workflow corresponding to the encrypted plug-in package, wherein the plug-in deployment file is used for executing the plug-in deployment workflow so as to form a system file of a project operation environment on a target machine;
the hot deployment of the encrypted plug-in package in the preset production environment through the plug-in deployment file to deploy the timing scheduling task into the preset production environment comprises the following steps:
The encryption plug-in package is decrypted through a preset decompilation decryption algorithm, and a decryption plug-in package is obtained;
compiling the decryption plug-in package through a preset compiling program to obtain a pre-installed plug-in package to be operated;
and calling the plug-in deployment file, and thermally deploying the pre-installed plug-in package into a preset production environment so as to deploy the timing scheduling task into the preset production environment.
2. The method for deploying a regularly scheduled task according to claim 1, wherein the acquiring the regularly scheduled task in a preset test environment and extracting the configuration information in the regularly scheduled task comprises:
reading preset user login information, and simulating a timing scheduling task configuration system in a login preset test environment according to the user login information;
calling a preset timed scheduling task acquisition interface to acquire timed scheduling tasks from the timed scheduling task configuration system;
analyzing the timed scheduling task to obtain configuration information in the timed scheduling task, wherein the configuration information comprises a task name, a task creator and a task type.
3. The deployment method of the timing scheduling task according to claim 1, wherein writing the configuration information into a preset plug-in template and executing a plug-in building command to package, obtaining an initial plug-in package, decompiling and encrypting the initial plug-in package, obtaining an encrypted plug-in package, comprises:
Extracting key configurations in the configuration information based on a plug-in template in a preset project automation construction tool, and executing a plug-in construction command to pack the key configurations into an initial plug-in package;
and performing decompilation encryption on the initial plug-in package through a preset decompilation encryption algorithm to obtain an encrypted plug-in package.
4. A method for deploying a timed scheduled task according to any one of claims 1-3, wherein the releasing the resources in the preset production environment and cleaning up the cache data comprises:
releasing invalid resources in a new production environment corresponding to the preset production environment, wherein the new production environment is provided with a new timing scheduling task, and the invalid resources comprise null objects, over-reference range objects, unreferenced objects and unreferenced resource files;
and searching a plug-in cache area in the new production environment, and cleaning plug-in cache data of the plug-in cache area.
5. A deployment device for timing scheduled tasks, the deployment device for timing scheduled tasks comprising:
the acquisition module is used for acquiring a timing scheduling task in a preset test environment and extracting configuration information in the timing scheduling task;
The encryption module is used for writing the configuration information into a preset plug-in module and executing a plug-in construction command to package so as to obtain an initial plug-in package, and decompiling and encrypting the initial plug-in package so as to obtain an encrypted plug-in package;
the synchronization module is used for synchronizing the encrypted plug-in package to a project directory of a preset production environment and acquiring a plug-in deployment file corresponding to the encrypted plug-in package according to a mapping relation between a preset deployment workflow and the deployment file;
the deployment module is used for performing hot deployment on the encryption plug-in package in the preset production environment through the plug-in deployment file so as to deploy the timing scheduling task into the preset production environment;
the release module is used for releasing the resources in the preset production environment and cleaning the cache data;
the synchronization module is specifically configured to:
acquiring a code warehouse address of a preset production environment, and uploading the encrypted plug-in package to an item directory corresponding to the code warehouse address;
running a code synchronous command under a preset production environment, and updating the encryption plug-in package into a project of the preset production environment;
acquiring a preset mapping relation between a deployment workflow and a deployment file, and determining a corresponding plug-in deployment file according to the deployment workflow corresponding to the encrypted plug-in package, wherein the plug-in deployment file is used for executing the plug-in deployment workflow so as to form a system file of a project operation environment on a target machine;
The deployment module is specifically configured to:
the encryption plug-in package is decrypted through a preset decompilation decryption algorithm, and a decryption plug-in package is obtained;
compiling the decryption plug-in package through a preset compiling program to obtain a pre-installed plug-in package to be operated;
and calling the plug-in deployment file, and thermally deploying the pre-installed plug-in package into a preset production environment so as to deploy the timing scheduling task into the preset production environment.
6. The deployment apparatus for timed scheduled tasks of claim 5, wherein the acquisition module comprises:
the reading unit is used for reading preset user login information and simulating a timing scheduling task configuration system in a preset test environment according to the user login information;
the calling unit is used for calling a preset timed scheduling task acquisition interface and acquiring timed scheduling tasks from the timed scheduling task configuration system;
the analysis unit is used for analyzing the timing scheduling task to obtain configuration information in the timing scheduling task, wherein the configuration information comprises a task name, a task creator and a task type.
7. A deployment device for timing scheduled tasks, the deployment device for timing scheduled tasks comprising: a memory and at least one processor, the memory having instructions stored therein;
The at least one processor invoking the instructions in the memory to cause the deployment device of the regularly scheduled task to perform the deployment method of the regularly scheduled task of any one of claims 1-4.
8. A computer readable storage medium having instructions stored thereon, which when executed by a processor, implement a method of deployment of a timed scheduling task according to any one of claims 1-4.
CN202110877945.1A 2021-07-30 2021-07-30 Deployment method, device, equipment and storage medium for timing scheduling task Active CN113485816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110877945.1A CN113485816B (en) 2021-07-30 2021-07-30 Deployment method, device, equipment and storage medium for timing scheduling task

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110877945.1A CN113485816B (en) 2021-07-30 2021-07-30 Deployment method, device, equipment and storage medium for timing scheduling task

Publications (2)

Publication Number Publication Date
CN113485816A CN113485816A (en) 2021-10-08
CN113485816B true CN113485816B (en) 2024-01-30

Family

ID=77945041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110877945.1A Active CN113485816B (en) 2021-07-30 2021-07-30 Deployment method, device, equipment and storage medium for timing scheduling task

Country Status (1)

Country Link
CN (1) CN113485816B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677391A (en) * 2015-12-30 2016-06-15 深圳联友科技有限公司 Method and apparatus for realizing timing plug-in
CN111488181A (en) * 2020-04-07 2020-08-04 广州虎牙科技有限公司 Task scheduling method and device, storage medium and server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103197952B (en) * 2012-01-09 2017-08-25 华为技术有限公司 The management system and method disposed for application system maintenance based on cloud infrastructure
US9712604B2 (en) * 2014-05-30 2017-07-18 Vmware, Inc. Customized configuration of cloud-based applications prior to deployment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677391A (en) * 2015-12-30 2016-06-15 深圳联友科技有限公司 Method and apparatus for realizing timing plug-in
CN111488181A (en) * 2020-04-07 2020-08-04 广州虎牙科技有限公司 Task scheduling method and device, storage medium and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
云计算环境下业务自动化部署的设计与实现;汪源等;《软件》;第35卷(第9期);第66-72页 *

Also Published As

Publication number Publication date
CN113485816A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
US7421621B1 (en) Application integration testing
US11436100B2 (en) Backup client agent
Borgdorff et al. Distributed multiscale computing with MUSCLE 2, the multiscale coupling library and environment
Wolski et al. Cspot: Portable, multi-scale functions-as-a-service for iot
WO2020015191A1 (en) Business rule releasing and managing method, electronic device and readable storage medium
US11106512B2 (en) System and method for container provenance tracking
WO2020018523A1 (en) System and method for distributed ledger-based software supply chain management
US20050223101A1 (en) Computer-implemented method, system and program product for resolving prerequisites for native applications utilizing an open service gateway initiative ( OSGi) framework
JP5371095B2 (en) Patch application system
CN112860645A (en) Processing method and device for offline compressed file, computer equipment and medium
CN107918564B (en) Data transmission exception handling method and device, electronic equipment and storage medium
CN113220431A (en) Cross-cloud distributed data task scheduling method, device and storage medium
CN114385759A (en) Configuration file synchronization method and device, computer equipment and storage medium
US20100223469A1 (en) Method, System and Computer Program Product for Certifying Software Origination
US20210194929A1 (en) Determination of Compliance with Security Technical Implementation Guide Standards
JP2008186461A (en) System, method and program for synchronizing multi-source spreadsheet data
CN113485816B (en) Deployment method, device, equipment and storage medium for timing scheduling task
van der Burg et al. Automated deployment of a heterogeneous service-oriented system
Schwarzkopf et al. Checking running and dormant virtual machines for the necessity of security updates in cloud environments
WO2019145082A1 (en) A method for collaborative machine learning of analytical models
EP3333698A1 (en) System and method for managing machine images on a plurality of distributed servers
CN114399230A (en) Task information processing method, device, equipment and storage medium
Feuerlicht et al. Service Consumer Framework-Managing Service Evolution from a Consumer Perspective
CN113608744B (en) Method for establishing environment construction unit for executing distributed compiling and distributed compiling system
CN105786532A (en) Web Service-based version updating method

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240103

Address after: 518000, Building 1, Building 803, 7th Industrial Zone, Yuliu Community, Yutang Street, Guangming District, Shenzhen, Guangdong Province

Applicant after: Shenzhen Luchi Technology Co.,Ltd.

Address before: 518000 Room 202, block B, aerospace micromotor building, No.7, Langshan No.2 Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen LIAN intellectual property service center

Effective date of registration: 20240103

Address after: 518000 Room 202, block B, aerospace micromotor building, No.7, Langshan No.2 Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen LIAN intellectual property service center

Address before: Room 201, building a, No.1 Qianwan 1st Road, Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong Province (settled in Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant