CN110597553A - Task execution method and device, computer equipment and readable storage medium - Google Patents

Task execution method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN110597553A
CN110597553A CN201910850858.XA CN201910850858A CN110597553A CN 110597553 A CN110597553 A CN 110597553A CN 201910850858 A CN201910850858 A CN 201910850858A CN 110597553 A CN110597553 A CN 110597553A
Authority
CN
China
Prior art keywords
task
code
source code
target source
calling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910850858.XA
Other languages
Chinese (zh)
Inventor
郑志胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dasou Vehicle Software Technology Co Ltd
Original Assignee
Zhejiang Dasou Vehicle Software 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 Zhejiang Dasou Vehicle Software Technology Co Ltd filed Critical Zhejiang Dasou Vehicle Software Technology Co Ltd
Priority to CN201910850858.XA priority Critical patent/CN110597553A/en
Publication of CN110597553A publication Critical patent/CN110597553A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/72Code refactoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a task execution method, a task execution device, a computer device and a readable storage medium. The method comprises the following steps: acquiring a preset timing task; the timing task comprises trigger time, a first calling path and a code identifier; the timing task is operated when the trigger time is reached, a construction task is called according to the first calling path, and a target source code is called according to the code identification; running the construction task to construct the target source code to obtain an executable file corresponding to the target source code; and executing the executable file, and outputting the test result of the target source code according to the execution result. By adopting the method, the development period of the software product can be shortened, and the development efficiency of the software product can be improved.

Description

Task execution method and device, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of computer software development technologies, and in particular, to a task execution method and apparatus, a computer device, and a readable storage medium.
Background
With the rapid development of computer technology, the demand of software products is continuously and rapidly increasing; in the development process of a software product, a developer submits program source code, the source code cannot be directly executed by a computer, and the source code needs to be constructed, and an executable script which can be executed by the computer can be generated after the source code is constructed.
At present, after a developer submits a program source code, the developer or a software product manager generally constructs the submitted source code manually, so that the development period of a software product is prolonged, and the software development efficiency is reduced.
Disclosure of Invention
In view of the above, it is necessary to provide a task execution method, a task execution apparatus, a computer device, and a readable storage medium, which can shorten a development period of a software product and improve software development efficiency.
In a first aspect, an embodiment of the present application provides a task execution method, where the task execution method includes:
acquiring a preset timing task; the timing task comprises trigger time, a first calling path and a code identifier;
the timing task is operated when the trigger time is reached, a construction task is called according to the first calling path, and a target source code is called according to the code identification;
running the construction task to construct the target source code to obtain an executable file corresponding to the target source code;
and executing the executable file, and outputting the test result of the target source code according to the execution result.
Therefore, when the trigger time is up, the computer equipment can automatically run the construction task to realize the automatic construction of the target source code, so that the development period of the software product is shortened, and the development efficiency of the software product is improved.
In one embodiment, before the step of executing the executable file and outputting the test result for the target source code according to the execution result, the timing task further includes:
calling a callback task according to the second calling path; the callback task comprises a code path of the executable file;
and running the callback task to acquire the executable file according to the code path.
Therefore, the effect of automatic callback of the executable file is achieved, the automatic execution process from building of the target source code to testing is realized, and the automatic continuous integration of the code is realized.
In one embodiment, before the step of acquiring the preset timing task, the method further includes:
acquiring the trigger time, the first calling path and the code identification input by a user;
generating the timed task based on the trigger time, the first invocation path, and the code identification.
Therefore, the timing task is generated based on the triggering mode selected by the user, the construction task is further called and operated, the automatic construction of the target source code is realized, and the low efficiency caused by manually constructing the target source code is avoided.
In one embodiment, the step of generating the timing task based on the trigger time, the first invocation path and the code identification comprises:
generating a template according to the trigger time and a preset task to generate a template task;
and generating the timing task according to the template task, the first calling path and the code identification.
Therefore, the timing task is quickly generated based on the task generation template, the generation speed of the timing task is improved, and the automatic construction speed of the target source code is further improved.
In one embodiment, the step of running the timed task when the trigger time arrives, invoking a construction task according to the first invoking path, and invoking a target source code according to the code identifier includes:
the timing task is operated when the trigger time is up, and a construction task is called through the first calling path according to a preset grammar tool;
and calling a target source code according to the code identification.
Therefore, according to the preset grammar tool, the first calling path is used for calling the construction task, the implementation difficulty of the embodiment is reduced by the application of the grammar tool, the development difficulty of the target source code automatic construction program is further reduced, and the development efficiency of the software product is improved.
In one embodiment, the code identifier includes a code version number, and the step of calling the target source code according to the code identifier includes:
and pulling the target source code from a target code server according to the code version number.
Therefore, according to the code version number, the computer equipment can conveniently search and pull the target source code from the target code server, the speed of pulling the target source code from the target code server by the computer equipment is increased, the automatic construction speed of the target source code is increased, the development period of a software product is further shortened, and the development efficiency of the software product is improved.
In a second aspect, an embodiment of the present application provides a task execution device, where the task execution device includes:
the acquisition module is used for acquiring a preset timing task; the timing task comprises trigger time, a first calling path and a code identifier;
the first calling module is used for running the timing task when the trigger time is reached, calling a construction task according to the first calling path and calling a target source code according to the code identifier;
the execution module is used for running the construction task to construct the target source code to obtain an executable file corresponding to the target source code;
and the test module is used for executing the executable file and outputting the test result of the target source code according to the execution result.
In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the task execution method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the task execution method according to the first aspect.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
acquiring a preset timing task; the timing task comprises trigger time, a first calling path and a code identifier; when the trigger time is up, calling a construction task according to the first calling path, and calling a target source code according to the code identifier; running the construction task to construct the target source code to obtain an executable file corresponding to the target source code; therefore, when the trigger time is up, the automatic construction of the target source code can be realized by running the construction task, so that the development period of the software product is shortened, and the development efficiency of the software product is improved.
Drawings
FIG. 1 is a diagram of an application environment for a task execution method, according to an embodiment;
FIG. 2 is a flowchart of a task execution method according to an embodiment;
FIG. 3 is a flowchart of a task execution method according to an embodiment;
FIG. 4 is a flowchart of a task execution method according to an embodiment;
FIG. 5 is a diagram illustrating a detailed step of step S800 in the embodiment shown in FIG. 4;
FIG. 6 is a flowchart of a task execution method according to an embodiment;
fig. 7 is a block diagram of a task execution device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The task execution method provided by the present application may be applied to a computer device shown in fig. 1, where the computer device may be a server, and its internal structure diagram may be as shown in fig. 1. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data of the task execution method.
Currently, the demand for software products is continuously increasing due to the rapid development of computer technology; in the development process of a software product, a developer submits a program source code, the source code cannot be directly executed by a computer, but needs to be constructed, and a task script which can be executed by the computer can be generated after the construction; however, in the process of code integration, after a developer submits a program source code, the developer or a software product manager generally constructs the submitted source code manually, which prolongs the development period of the software product and reduces the software development efficiency. The task execution method, the task execution device, the computer equipment and the readable storage medium aim at solving the technical problems of long development period and low software development efficiency of software products caused by the fact that developers or software product managers construct source codes manually in the prior art. The following describes in detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by embodiments and with reference to the drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
It should be noted that, in the task execution method provided in the embodiments of the present application, the execution main body may be a task execution device, and the task execution device may be implemented as part of or all of a computer device by software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is a computer device as an example.
Referring to fig. 2, which shows a flowchart of a task execution method provided in an embodiment of the present application, as shown in fig. 2, the task execution method may include the following steps:
and step S100, acquiring a preset timing task.
The timing task is generated by the computer device after receiving the relevant configuration parameters input by the user, specifically, a software platform, such as an MLflow platform, is configured in the computer device, and after the user inputs the relevant parameters for configuring the timing task based on the software platform, the computer device can generate the corresponding timing task; the timing task comprises trigger time, a first calling path and a code identifier, wherein the trigger time is the running time of the timing task input by a user, namely the timing task is automatically run by the computer equipment when the trigger time is reached; the first calling path is a path for acquiring a construction task, namely the computer equipment can call the construction task stored under the path according to the first calling path; the code identifier is an identity identifier of the target source code, and in this embodiment, as an implementation manner, the code identifier is specifically a version number of the target source code.
And step S200, running the timing task when the trigger time is reached, calling a construction task according to the first calling path, and calling a target source code according to the code identifier.
After the configuration of the timing task is completed, when the trigger time is reached, the timing task is triggered to run; when the timing task runs, the construction task is called according to the first calling path, and the target source code is called according to the code identification; specifically, in this embodiment, the construction of the source code is implemented by an integration tool in a computer device, for example, Jenkins platform; when the triggering time is reached, the computer device invokes the construction task according to the first invoking path and triggers the construction task to run.
Step S300, the construction task is operated to construct the target source code, and an executable file corresponding to the target source code is obtained.
In the traditional technology, when a developer or a software product manager manually constructs a submitted source code, taking an integrated tool as a Jenkins platform as an example, after the developer submits the source code, when the code is constructed through the Jenkins platform, the developer needs to manually input a path of the submitted source code into a Jenkins construction task, and then the software platform manually triggers the construction task to run, so that the Jenkins platform calls the source code according to the path in the construction task and constructs the source code; in this embodiment, when the timing task is triggered, the computer device will invoke the construction task according to the first invoking path, invoke the target source code according to the code identifier, and run the invoked construction task in the Jenkins platform; optionally, the Jenkins platform is based on token-based authentication, so that the timing task of this embodiment further includes a token corresponding to the Jenkins platform, and when the timing task is triggered, the computer device calls the construction task according to the first calling path and the token; when the construction task is operated, the Jenkins platform constructs the target source code to generate a corresponding executable file, and the executable file can be an automatic test script corresponding to the target source code. Therefore, the effect that the target source code submitted by the developer can be automatically executed and constructed when the trigger time is up is achieved, the trigger time can be set according to the actual requirement, the automatic construction of the target source code is realized, and the problems of long development period and low software development efficiency of software products caused by manually constructing the source code submitted by the developer are solved.
And step S400, executing the executable file, and outputting the test result of the target source code according to the execution result.
The computer equipment executes the executable file generated after the target source code is constructed, monitors the running process of the executable file and outputs a test result aiming at the target source code according to the running result; specifically, an operation log may be recorded during the monitoring process, and the test result may be generated according to the operation log.
The embodiment obtains the preset timing task; the timing task comprises trigger time, a first calling path and a code identifier; the timing task is operated when the trigger time is reached, a construction task is called according to the first calling path, and a target source code is called according to the code identification; running the construction task to construct the target source code to obtain an executable file corresponding to the target source code; executing the executable file, and outputting a test result of the target source code according to an execution result; therefore, when the trigger time is up, the automatic construction of the target source code can be realized by running the construction task, so that the development period of the software product is shortened, and the development efficiency of the software product is improved.
Fig. 3 is a flowchart illustrating a task execution method according to another embodiment. On the basis of the embodiment shown in fig. 2, before step S400, the task execution method of this embodiment further includes:
step S500, calling a callback task according to the second calling path; the callback task includes a code path of the executable file.
The timing task also comprises a calling path corresponding to the callback task, and the callback task is called according to the second calling path when the timing task runs.
And step S600, operating the callback task to acquire the executable file according to the code path.
After the callback task is called, triggering the callback task to run; the callback task can obtain an executable file according to the code path when running; it should be noted that after the target source code is constructed to generate the executable file, the executable file is stored in the designated path, and the designated path is the second invoking path; when the timing task is configured, the time when the construction task is completed can be set to trigger the operation of the callback task; in this embodiment, as an implementation manner, the explanation continues by taking the integrated tool as a Jenkins platform as an example, and the callback process may specifically be to call back an executable file generated by building the Jenkins platform to a software platform, such as a flow platform, through a curl command.
The embodiment obtains the preset timing task; the timing task comprises trigger time, a first calling path, a second calling path and a code identifier; when the trigger time is up, calling a construction task according to the first calling path, and calling a target source code according to the code identifier; running the construction task to construct the target source code to obtain an executable file corresponding to the target source code; calling a callback task according to the second calling path; the callback task comprises a code path of the executable file; running the callback task to acquire the executable file according to the code path; executing the executable file, and outputting a test result aiming at the target source code according to an execution result; therefore, after the target source code is automatically built by the computer equipment, the computer equipment can run the callback task to call the executable file, run the executable file and generate the test result according to the running result of the executable file, so that the automatic test of the target source code is realized, the code quality is improved, the automatic execution process from building of the target source code to testing is further realized, the automatic continuous integration of the code is realized, the development period of a software product is shortened, and the development efficiency of the software product is improved.
Fig. 4 is a flowchart illustrating a task execution method according to another embodiment. On the basis of the embodiment shown in fig. 2, before step S100, the task execution method of this embodiment further includes:
step S700, acquiring a trigger time, a first invoking path and a code identifier input by a user.
The user can be a software product developer or a software product manager, and inputs the trigger time of the timed task, a first calling path for calling the build task, and a code identifier for calling the target source code based on the actual code integration job requirement, wherein the first calling path can be a storage path of the build task, specifically, a position where a task instance after the build task is instantiated is stored, and the task instance is an instantiated build task which can be directly executed by the computer device; as an embodiment, the code identification may be a code version number of the target source code.
Step S800, generating the timing task based on the trigger time, the first invoking path and the code identifier.
And after receiving the trigger time, the first calling path and the code identification input by the user, the computer equipment takes the trigger time, the first calling path and the code identification as task generation parameters to generate a corresponding timing task. As shown in fig. 5, in this embodiment, an optional implementation manner of the step S800 includes:
and step S810, generating a template according to the trigger time and a preset task, and generating a template task.
As an embodiment, a software platform of the computer device is provided with a plurality of task generation templates for generating different tasks, for example, a task generation template for generating a timing task; in this embodiment, when the user inputs the trigger time, the user also inputs a trigger mode, and after receiving the trigger time and the trigger mode input by the user, the computer device generates a template according to the task, and generates a template task, where the template task may include basic information of a timing task such as the trigger time and the trigger mode, and the trigger mode in this embodiment may be timing trigger.
Step S820, generating the timing task according to the template task, the first invoking path and the code identifier.
Configuring a first calling path and a code identifier for the template task to generate a timing task; as an implementation manner, in this embodiment, the integration tool is taken as a Jenkins platform as an example for further explanation, in this embodiment, a timing task is generated according to a template task, a first invocation path and a code identifier, and specifically, the creation of the timing task is completed after a compiled curl script is configured in the template task; the compiled curl script comprises a first calling path, a code identifier and a token of a Jenkins platform; when the curl script is executed, a construction task corresponding to the Jenkins platform is called according to the first calling path and the token, and a corresponding target source code is obtained according to the code identification.
In the embodiment, the trigger time, the first invoking path and the code identifier input by the user are acquired; generating a template according to the trigger time and a preset task to generate a template task; generating the timing task according to the template task, the first calling path and the code identification; acquiring a preset timing task; when the trigger time is up, calling a construction task according to the first calling path, and calling a target source code according to the code identifier; running the construction task to construct the target source code to obtain an executable file corresponding to the target source code; therefore, the timing task is created, the execution of the construction task is triggered, the automatic construction of the called target source code is executed, and the problems of high construction time and high labor cost caused by manual construction are solved.
In other embodiments, as an implementation manner, unlike a timing trigger, the implementation manner of this embodiment may also be an event trigger or a manual trigger, the computer device generates a task according to the first invocation path input by the user and the code identification, and triggers the generated task based on the trigger manner selected by the user; for example, a user selects event triggering, when a target event is detected by the computer device, the task is triggered to run, and a constructed task is called according to a first calling path; or, the user selects manual triggering, the computer device triggers the task to run when receiving a signal of the manual triggering, and the task is called and constructed according to the first calling path, so that the application scene of the task execution method is expanded based on different triggering modes.
Fig. 6 is a flowchart illustrating a task execution method according to another embodiment. On the basis of the embodiment shown in fig. 2, step S200 includes:
and step S210, the timing task is operated when the trigger time is reached, and a construction task is called through the first calling path according to a preset grammar tool.
And step S220, calling a target source code according to the code identification.
Specifically, in this embodiment, when the trigger time is reached, the timing task is run, as an implementation manner, the preset syntax tool may be a curl syntax tool, when the timing task is run, an http request is called by the curl syntax tool to execute the curl script, when the curl script is executed, the target source code is called according to the second calling path, the construction task of the Jenkins platform is triggered to run, and when the construction task is run, the called target source code is compiled to construct an executable file.
As an implementation manner, the code identifier includes a code version number, and in this embodiment, step S220 specifically includes:
and pulling the target source code from a target code server according to the code version number.
The embodiment obtains the preset timing task; the timing task comprises trigger time, a first calling path and a code identifier; when the trigger time is up, calling and constructing a task through the first calling path according to a preset grammar tool; calling a target source code according to the code identification; running the construction task to construct the target source code to obtain an executable file corresponding to the target source code; therefore, the source code is constructed according to the script triggered by the timing task, the labor cost is saved, and the research and development efficiency is improved.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, there is provided a task performing apparatus including:
an obtaining module 10, configured to obtain a preset timing task; the timing task comprises trigger time, a first calling path and a code identifier;
the first invoking module 20 is configured to run the timing task when the trigger time arrives, invoke a construction task according to the first invoking path, and invoke a target source code according to the code identifier;
the execution module 30 is configured to run the construction task to perform construction on the target source code, so as to obtain an executable file corresponding to the target source code;
and the test module 40 is used for executing the executable file and outputting a test result of the target source code according to an execution result.
Optionally, the timing task further includes a second fetch path, and the apparatus further includes:
the second calling module is used for calling the callback task according to the second calling path; the callback task comprises a code path of the executable file;
and the third calling module is used for running the callback task so as to obtain the executable file according to the code path.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring the trigger time, the first calling path and the code identification which are input by a user;
and the generating module is used for generating the timing task based on the trigger time, the first calling path and the code identification.
Optionally, the generating module includes:
the first generation unit is used for generating a template according to the trigger time and a preset task and generating a template task;
and the second generating unit is used for generating the timing task according to the template task, the first calling path and the code identifier.
Optionally, the first invoking module includes:
the first calling unit is used for running the timing task when the trigger time is up, and calling and constructing a task through the first calling path according to a preset grammar tool;
and the second calling unit is used for calling the target source code according to the code identification.
Optionally, the code identifier includes a code version number, and the second invoking unit is further configured to pull the target source code from a target code server according to the code version number.
The task execution device provided in this embodiment may execute the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
For specific limitations of the task execution device, reference may be made to the above limitations of the task execution method, which are not described herein again. The respective modules in the task execution apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, there is also provided a computer device as shown in fig. 1, which may be a server. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing task execution data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of task execution.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a preset timing task; the timing task comprises trigger time, a first calling path and a code identifier;
the timing task is operated when the trigger time is reached, a construction task is called according to the first calling path, and a target source code is called according to the code identification;
running the construction task to construct the target source code to obtain an executable file corresponding to the target source code;
and executing the executable file, and outputting the test result of the target source code according to the execution result.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a preset timing task; the timing task comprises trigger time, a first calling path and a code identifier;
the timing task is operated when the trigger time is reached, a construction task is called according to the first calling path, and a target source code is called according to the code identification;
running the construction task to construct the target source code to obtain an executable file corresponding to the target source code;
and executing the executable file, and outputting the test result of the target source code according to the execution result.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A task execution method, characterized in that the task execution method comprises:
acquiring a preset timing task; the timing task comprises trigger time, a first calling path and a code identifier;
the timing task is operated when the trigger time is reached, a construction task is called according to the first calling path, and a target source code is called according to the code identification;
running the construction task to construct the target source code to obtain an executable file corresponding to the target source code;
and executing the executable file, and outputting the test result of the target source code according to the execution result.
2. The task execution method of claim 1, wherein the timed task further comprises a second invoking path, and before the step of executing the executable file and outputting the test result of the target source code according to the execution result, the method further comprises:
calling a callback task according to the second calling path; the callback task comprises a code path of the executable file;
and running the callback task to acquire the executable file according to the code path.
3. The task execution method according to claim 1, wherein the step of acquiring the preset timing task is preceded by:
acquiring the trigger time, the first calling path and the code identification input by a user;
generating the timed task based on the trigger time, the first invocation path, and the code identification.
4. The task execution method of claim 3, wherein the step of generating the timed task based on the trigger time, the first invocation path, and the code identification comprises:
generating a template according to the trigger time and a preset task to generate a template task;
and generating the timing task according to the template task, the first calling path and the code identification.
5. The task execution method of claim 1, wherein the steps of running the timed task when the trigger time is reached, invoking a build task according to the first invocation path, and invoking a target source code according to the code identification comprise:
the timing task is operated when the trigger time is up, and a construction task is called through the first calling path according to a preset grammar tool;
and calling a target source code according to the code identification.
6. The task execution method of claim 5, wherein the code identifier comprises a code version number, and the step of calling the target source code according to the code identifier comprises:
and pulling the target source code from a target code server according to the code version number.
7. A task execution apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a preset timing task; the timing task comprises trigger time, a first calling path and a code identifier;
the first calling module is used for running the timing task when the trigger time is reached, calling a construction task according to the first calling path and calling a target source code according to the code identifier;
the execution module is used for running the construction task to construct the target source code to obtain an executable file corresponding to the target source code;
and the test module is used for executing the executable file and outputting the test result of the target source code according to the execution result.
8. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201910850858.XA 2019-09-10 2019-09-10 Task execution method and device, computer equipment and readable storage medium Pending CN110597553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910850858.XA CN110597553A (en) 2019-09-10 2019-09-10 Task execution method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910850858.XA CN110597553A (en) 2019-09-10 2019-09-10 Task execution method and device, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN110597553A true CN110597553A (en) 2019-12-20

Family

ID=68858423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910850858.XA Pending CN110597553A (en) 2019-09-10 2019-09-10 Task execution method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110597553A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108073400A (en) * 2017-12-07 2018-05-25 湖北三新文化传媒有限公司 Software automation construction method, server and storage medium
CN109254765A (en) * 2018-08-22 2019-01-22 平安科技(深圳)有限公司 Timing task management method, apparatus, computer equipment and storage medium
CN109426516A (en) * 2017-06-21 2019-03-05 北京信威通信技术股份有限公司 Software version management method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426516A (en) * 2017-06-21 2019-03-05 北京信威通信技术股份有限公司 Software version management method and device
CN108073400A (en) * 2017-12-07 2018-05-25 湖北三新文化传媒有限公司 Software automation construction method, server and storage medium
CN109254765A (en) * 2018-08-22 2019-01-22 平安科技(深圳)有限公司 Timing task management method, apparatus, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
RADIOMAN-LHQ: "Jenkins任务远程触发另一个jenkins任务", pages 1 - 4, Retrieved from the Internet <URL:https://blog.csdn.net/q13554515812/article/details/86629539> *
西京刀客: "jenkins快速开始", pages 1 - 18, Retrieved from the Internet <URL:https://blog.csdn.net/inthat/article/details/92831511> *
魏都青年: "GitLab+jenkins 部署", pages 1 - 13, Retrieved from the Internet <URL:https://blog.csdn.net/qq_16538827/article/details/81873997> *

Similar Documents

Publication Publication Date Title
CN109766124B (en) Service development method, device, computer equipment and storage medium
CN109788032B (en) Method and device for acquiring mirror image file, computer equipment and storage medium
CN109542767B (en) Automatic testing method and device based on block chain, computer equipment and storage medium
CN111752571A (en) Program upgrading method, device, equipment and storage medium
CN110704312A (en) Pressure testing method and device, computer equipment and storage medium
CN108241516B (en) Embedded system program loading method and device, computer equipment and storage medium
CN114595919A (en) Business process arranging method and device, computer equipment and storage medium
CN114610404A (en) Component calling method and device based on application framework and computer equipment
CN110969354A (en) Linear flow configuration method and device, computer equipment and storage medium
CN110597553A (en) Task execution method and device, computer equipment and readable storage medium
CN109634674B (en) Chip BOOT starting method and device, computer equipment and storage medium
CN111190584A (en) EHIS-DB system version release method and device, computer equipment and storage medium
CN115695472A (en) Server fault response processing method and device, computer equipment and storage medium
CN111026988A (en) Page loading method, device and system and computer equipment
CN113159657B (en) Execution resource allocation method, device and storage medium for procedures
CN113704107B (en) Application testing method, device, equipment and computer readable storage medium
CN110909761A (en) Image recognition method and device, computer equipment and storage medium
CN114047953A (en) Pipeline configuration method and device, computer equipment and storage medium
CN111198758A (en) SSH-based Windows software starting method and device and computer equipment
CN112817612A (en) Automatic deployment method and device for multiple operating systems, computer equipment and storage medium
CN109344018B (en) Multi-core CPU test method and device, computer equipment and storage medium
CN113791794A (en) Method and system for automatically deploying abacus cases for supercomputing application
CN111614519A (en) SSH channel-based batch start concurrency test method and device
CN113868127A (en) Online debugging method and device, computer equipment and storage medium
CN116048600A (en) Applet function development method, device, computer equipment and storage medium

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