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.
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.