CN111831380A - Task execution method and device, storage medium and electronic device - Google Patents

Task execution method and device, storage medium and electronic device Download PDF

Info

Publication number
CN111831380A
CN111831380A CN202010688674.0A CN202010688674A CN111831380A CN 111831380 A CN111831380 A CN 111831380A CN 202010688674 A CN202010688674 A CN 202010688674A CN 111831380 A CN111831380 A CN 111831380A
Authority
CN
China
Prior art keywords
task
timed
timing
time
editing request
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
CN202010688674.0A
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 Sunwave Communications Technology Co Ltd
Original Assignee
Zhejiang Sunwave Communications 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 Sunwave Communications Technology Co Ltd filed Critical Zhejiang Sunwave Communications Technology Co Ltd
Priority to CN202010688674.0A priority Critical patent/CN111831380A/en
Publication of CN111831380A publication Critical patent/CN111831380A/en
Priority to PCT/CN2021/092820 priority patent/WO2022012127A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Abstract

The invention provides a task execution method and device, a storage medium and an electronic device, wherein the task execution method comprises the following steps: acquiring a first timing editing request through a front-end interface, wherein the first timing editing request is used for carrying a first moment and a first task; generating a first timing task expression according to the first timing editing request, wherein the first timing task expression is used for indicating that the first task is executed at the first time; triggering execution of the first task when the first time arrives. By the method and the device, the problem that the setting mode of the time task is complex is solved, and the effect of improving the setting efficiency of the time task is achieved.

Description

Task execution method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for executing a task, a storage medium, and an electronic apparatus.
Background
The existing timing task is usually triggered by setting a time condition for task execution by a background developer. One is to continuously compare the time cycle with the current actual time, and call the corresponding task when the time condition indicates. And the other is that the developer presets a time node for triggering the execution of the task, and the time point reaches the triggering execution task.
The following disadvantages exist for the two timing tasks in the prior art: the time cycle comparison mode has complex logic, consumes a large amount of resources during realization, and is not suitable for executing a large amount of tasks; the point in time and the tasks performed are known prior to developing the program, requiring the developer to update the program once per task and/or time change, making it difficult to change the time and tasks in real time.
Aiming at the technical problem that the setting mode of the time task is complex in the related technology, an effective solution does not exist at present.
Disclosure of Invention
The embodiment of the invention provides a task execution method and device, a storage medium and an electronic device, and aims to at least solve the problem that the setting mode of a time task in the related art is complex.
According to an embodiment of the present invention, there is provided a method of executing a task, including: acquiring a first timing editing request through a front-end interface, wherein the first timing editing request is used for carrying a first moment and a first task; generating a first timing task expression according to the first timing editing request, wherein the first timing task expression is used for indicating that the first task is executed at the first time; triggering execution of the first task when the first time arrives.
Optionally, after the first timing editing request is obtained through the front-end interface, the method further includes: acquiring a second timing editing request through the front-end interface, wherein the second timing editing request is used for indicating that the first time is changed into a second time; generating a second timing task expression according to the second timing editing request, and deleting the first timing task expression, wherein the second timing task expression is used for indicating that the first task is executed at the second moment; and triggering to execute the first task when the second time is reached.
Optionally, after the first timing editing request is obtained through the front-end interface, the method further includes: acquiring a third timed editing request through the front-end interface, wherein the third timed editing request is used for indicating that the first task is changed into a second task; generating a third timed task expression according to the third timed editing request, and deleting the first timed task expression, wherein the third timed task expression is used for indicating that the second task is executed at the first time; and triggering to execute the second task when the first time arrives.
Optionally, the method further comprises: and under the condition of meeting task execution conditions, triggering to execute the first task when the first time is reached, wherein the first timing editing request also carries the task execution conditions.
Optionally, after the first timing editing request is obtained through the front-end interface, the method further includes: and storing the first time and the first task in a timed task list in a related manner, wherein the timed task list stores N tasks and time corresponding to each task, the N tasks correspond to N timed task expressions, and N is an integer greater than or equal to 1.
Optionally, the method further comprises: after a first timing task expression is generated according to the first timing editing request, displaying prompt information on the front-end interface, wherein the prompt information is used for indicating that a first timing task is successfully created and indicating that the first timing task is executed at the first time; after the first task is triggered to be executed when the first moment is reached, an execution result is displayed on the front-end interface, and the execution result user indicates an execution result of the first task at the first moment.
According to another embodiment of the present invention, there is provided a task execution device including: the system comprises a first acquisition module, a first processing module and a second acquisition module, wherein the first acquisition module is used for acquiring a first timing editing request through a front-end interface, and the first timing editing request is used for carrying a first moment and a first task; a first generating module, configured to generate a first timed task expression according to the first timed editing request, where the first timed task expression is used to indicate that the first task is executed at the first time; and the first execution module is used for triggering the execution of the first task when the first time arrives.
Optionally, the apparatus further comprises: a second obtaining module, configured to obtain, through a front-end interface, a second timed editing request after the first timed editing request is obtained through the front-end interface, where the second timed editing request is used to instruct to change the first time into a second time; a second generating module, configured to generate a second timed task expression according to the second timed editing request, and delete the first timed task expression, where the second timed task expression is used to instruct to execute the first task at the second time; and the second execution module is used for triggering the execution of the first task when the second moment is reached.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the first timing editing request is obtained through the front-end interface and is used for carrying the first moment and the first task; generating a first timing task expression according to the first timing editing request, wherein the first timing task expression is used for indicating that a first task is executed at a first time; the execution of the first task is triggered when the first time arrives. The purpose of automatically generating the corresponding timing task expression according to the time and the task acquired through the front-end page is achieved. Therefore, the problem that the setting mode of the time task is complex can be solved, and the effect of improving the setting efficiency of the time task is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a method of performing a task according to an embodiment of the present invention;
FIG. 2 is a flow diagram of the execution of tasks according to an embodiment of the invention;
FIG. 3 is a block diagram of a system in accordance with an alternative embodiment of the present invention;
FIG. 4 is a schematic flow chart diagram according to an alternative embodiment of the present invention;
fig. 5 is a block diagram of a structure of a task execution device according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the present invention running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a task execution method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the task execution method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for executing a task running on the mobile terminal is provided, and fig. 2 is a flowchart of executing a task according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, a first timing editing request is obtained through a front-end interface, wherein the first timing editing request is used for carrying a first time and a first task;
step S204, generating a first timing task expression according to the first timing editing request, wherein the first timing task expression is used for indicating that the first task is executed at the first time;
and step S206, triggering the first task to be executed when the first time is reached.
As an optional implementation, the front-end interface may be an interface of a target application, and the target application may be a browser or a client. The front-end interface is provided with an operation control, an editing area and the like, and a user can set the time for executing a certain task. The specific task may be determined according to actual conditions, such as controlling to turn on or off the device, or sending an operation instruction by the device. The specific time can be determined according to actual conditions, and can be any time. For example, a device is controlled to start eight points early and shut down eight points late in the week.
As an optional implementation manner, after the user sets the time of the task and the time of executing the corresponding task, the time is transmitted to the background through the interface, and the background generates a timing task expression according to the received time and the corresponding task, where the timing task expression may be a cron expression. And adding the timing expression into a predefined trigger, hooking the task to be executed, and automatically judging that the corresponding task is executed when the time is up by the system.
Through the steps, the first timing editing request is obtained through the front-end interface and is used for carrying the first moment and the first task; generating a first timing task expression according to the first timing editing request, wherein the first timing task expression is used for indicating that a first task is executed at a first time; the execution of the first task is triggered when the first time arrives. The purpose of automatically generating the corresponding timing task expression according to the time and the task acquired through the front-end page is achieved. Therefore, the problem that the setting mode of the time task is complex can be solved, and the effect of improving the setting efficiency of the time task is achieved.
Alternatively, the execution subject of the above steps may be a terminal or the like, but is not limited thereto.
Optionally, after the first timing editing request is obtained through the front-end interface, the method further includes: acquiring a second timing editing request through the front-end interface, wherein the second timing editing request is used for indicating that the first time is changed into a second time; generating a second timing task expression according to the second timing editing request, and deleting the first timing task expression, wherein the second timing task expression is used for indicating that the first task is executed at the second moment; and triggering to execute the first task when the second time is reached.
As an alternative embodiment, the user may change the time for executing the corresponding task through the front-end interface, for example, the initial setting is to control a certain device to start at eight early hours and to close at eight late hours of the week, and the user may change the time in the front-end interface, for example, to change the eight early hours to ten early hours and the eight late hours to ten late hours. The modification can be carried out by triggering the selection control, and the modification can also be carried out by editing the changed time in the edit box. The background regenerates a new cron expression according to the changed time for executing the task, and deletes the original cron expression. When the updated time arrives, a new cron expression is run, and the first task is executed when the second time arrives.
Optionally, after the first timing editing request is obtained through the front-end interface, the method further includes: acquiring a third timed editing request through the front-end interface, wherein the third timed editing request is used for indicating that the first task is changed into a second task; generating a third timed task expression according to the third timed editing request, and deleting the first timed task expression, wherein the third timed task expression is used for indicating that the second task is executed at the first time; and triggering to execute the second task when the first time arrives.
As an optional implementation, the user can change the task executed by the execution time point through the front-end interface. For example, initially setting the control device 1 to start eight early hours and to shut down eight late hours of the week, the user may modify the task to be executed in the front-end interface, for example, the control device may be started eight early hours and shut down eight late hours of the week, respectively. The modification can be carried out by triggering the selection control, and the modification can also be carried out by editing the changed time in the edit box. The background regenerates a new cron expression according to the changed time for executing the task, and deletes the original cron expression. When the time arrives, a new cron expression is run, and a second task is executed when the first time arrives.
Optionally, the method further comprises: and under the condition of meeting task execution conditions, triggering to execute the first task when the first time is reached, wherein the first timing editing request also carries the task execution conditions.
As an alternative embodiment, a condition for executing the task may be set, and the condition for executing the task may be determined according to the actual situation. For example, it may be amount, temperature, humidity, concentration, etc. The user can set the conditions for executing the task through the front-end interface. For example, when the ambient temperature reaches 50 degrees celsius, the control device is turned on eight early and turned off eight late in the week.
Optionally, after the first timing editing request is obtained through the front-end interface, the method further includes: and storing the first time and the first task in a timed task list in a related manner, wherein the timed task list stores N tasks and time corresponding to each task, the N tasks correspond to N timed task expressions, and N is an integer greater than or equal to 1.
As an alternative embodiment, each time and the task corresponding to each time are stored in the timed task list, for example, the device 1 is started eight times earlier, and the device 1 is closed eight times later; the output temperature of the ten-o-clock control device 2 is 22 degrees celsius and the output temperature of the six-o-clock shut-off device 2 is 27 degrees celsius. The time point and the task set by the user at the front end are both stored in the timed task list, and the background can generate a corresponding cron expression according to the time and the corresponding task in the timed task list. The timed task list stores N tasks, the value of N may be determined according to actual situations, for example, 100, 1000, 10000, etc., and the N tasks correspond to N cron expressions. In this embodiment, one task may correspond to one time point or a plurality of time points. For example, the control device may start eight early and close eight late in the week for two tasks, with eight early starts corresponding to task 1 and eight late closes corresponding to task 2. The control device is started at eight early points of the week, and the control device is closed at eight late points of the week, wherein the task comprises two time points, namely eight early points and eight late points.
Optionally, the method further comprises: after a first timing task expression is generated according to the first timing editing request, displaying prompt information on the front-end interface, wherein the prompt information is used for indicating that a first timing task is successfully created and indicating that the first timing task is executed at the first time; after the first task is triggered to be executed when the first moment is reached, an execution result is displayed on the front-end interface, and the execution result user indicates an execution result of the first task at the first moment.
As an alternative embodiment, after the first timed task is successfully created by generating the timing expression, a prompt message indicating that the first timed task is successfully created may be displayed in the display interface, for example, "the control device will be started at eight early hours and closed at eight late hours of the week", or "the control device has started at eight early hours and closed at eight late hours of the week" the task was successfully created ". The embodiment can achieve the task of prompting the user to create successfully by displaying the prompt information on the display interface.
As an optional implementation manner, after the first task triggered to be executed by running the cron expression is successfully executed, an execution result of the first task is displayed in the display interface. For example, after the timing task execution is finished, the control device displays prompt information of 'the device is started at eight early points and closed at eight late points' on the display interface, so that the user can know the task execution state of the device in time through the information displayed on the display interface.
The present application is described below with a specific embodiment, fig. 3 is a system block diagram according to an alternative embodiment of the present invention, fig. 4 is a flow diagram according to an alternative embodiment of the present invention, which may include the following steps:
step S1, a preparation phase, defining various parameters in the background, which may include: defining a starting thread; defining a method for acquiring a timing task list; defining an algorithm for converting the time requirement into a cron expression; defining a trigger; the tasks to be performed are defined.
Step S2, in the execution phase, the user sets time and corresponding task on the front-end interface, stores the time and corresponding task in the timed task list, and transmits the timed task list to the background. Starting a thread by a background, acquiring a timing task list, acquiring N corresponding cron expressions through an algorithm according to a task time requirement, adding the cron expressions into a trigger, hooking a task to be executed, and automatically executing the task after the system automatically judges that the task meets the requirement;
in step S3, in the change phase, the user can modify the time and/or task through the front-end interface, for example, the time or task can be changed, a new time and/or task can be added, and the time and/or task can be deleted. And storing the changed time and task into a timing task list. And a background acquires a new acquisition timing task list, acquires new N cron expressions through an algorithm according to the task time requirement, adds the new cron expressions into a trigger, hooks the task to be executed, and automatically executes the task after the system automatically judges that the task meets the requirement.
The system also comprises a front-end system and a back-end system of the server, wherein a front-end interface is used for meeting the editing requirement of a client timing task through a B/S or C/S framework; the back end responds to the user request sent by the front end, generates a corresponding timing task according to the user request, updates the trigger condition and the task instruction, and automatically triggers and executes. According to the method and the device, a plurality of threads, a plurality of types of task triggers and a plurality of task executing conditions can be defined, a user can flexibly and changeably customize a timing task event through a front-end interface, all settings can be completed on a front-end page, and the applicable interface is user-friendly. The background can generate a corresponding cron expression according to the task event of the user at the front-end device. And after the task definition is successful, the task definition can be fed back to the display interface in time, and after the task is successfully executed, the task definition can also be fed back to the display interface in time. The user can timely know each defined task and the execution condition of each task through the front-end interface.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a task execution device is further provided, and the task execution device is used for implementing the above embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a structure of an apparatus for performing a task according to an embodiment of the present invention, as shown in fig. 5, the apparatus including: a first obtaining module 52, configured to obtain a first timing editing request through a front-end interface, where the first timing editing request is used to carry a first time and a first task; a first generating module 54, configured to generate a first timed task expression according to the first timed editing request, where the first timed task expression is used to indicate that the first task is executed at the first time; a first execution module 56, configured to trigger execution of the first task when the first time arrives.
Optionally, the apparatus further comprises: a second obtaining module, configured to obtain, through a front-end interface, a second timed editing request after the first timed editing request is obtained through the front-end interface, where the second timed editing request is used to instruct to change the first time into a second time; a second generating module, configured to generate a second timed task expression according to the second timed editing request, and delete the first timed task expression, where the second timed task expression is used to instruct to execute the first task at the second time; and the second execution module is used for triggering the execution of the first task when the second moment is reached.
Optionally, the apparatus is further configured to, after the first timed editing request is obtained through a front-end interface, obtain a third timed editing request through the front-end interface, where the third timed editing request is used to instruct to change the first task to a second task; generating a third timed task expression according to the third timed editing request, and deleting the first timed task expression, wherein the third timed task expression is used for indicating that the second task is executed at the first time; and triggering to execute the second task when the first time arrives.
Optionally, the device is further configured to trigger execution of the first task when the first time arrives under a condition that a task execution condition is met, where the first timing editing request further carries the task execution condition.
Optionally, the device is further configured to, after the first timing editing request is obtained through the front-end interface, associate and store the first time and the first task in a timing task list, where N tasks and a time corresponding to each task are stored in the timing task list, where the N tasks correspond to N timing task expressions, and N is an integer greater than or equal to 1.
Optionally, the apparatus is further configured to display, on the front-end interface, a prompt message after the first timed task expression is generated according to the first timed editing request, where the prompt message is used to indicate that a first timed task is successfully created, and the first timed task is used to indicate that the first task is executed at the first time; after the first task is triggered to be executed when the first moment is reached, an execution result is displayed on the front-end interface, and the execution result user indicates an execution result of the first task at the first moment.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a first timing editing request through a front-end interface, wherein the first timing editing request is used for carrying a first time and a first task;
s2, generating a first timing task expression according to the first timing editing request, wherein the first timing task expression is used for indicating that the first task is executed at the first time;
s3, triggering the first task to be executed when the first time arrives.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a first timing editing request through a front-end interface, wherein the first timing editing request is used for carrying a first time and a first task;
s2, generating a first timing task expression according to the first timing editing request, wherein the first timing task expression is used for indicating that the first task is executed at the first time;
s3, triggering the first task to be executed when the first time arrives.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for executing a task, comprising:
acquiring a first timing editing request through a front-end interface, wherein the first timing editing request is used for carrying a first moment and a first task;
generating a first timing task expression according to the first timing editing request, wherein the first timing task expression is used for indicating that the first task is executed at the first time;
triggering execution of the first task when the first time arrives.
2. The method of claim 1, wherein after the obtaining the first timed edit request through the front-end interface, the method further comprises:
acquiring a second timing editing request through the front-end interface, wherein the second timing editing request is used for indicating that the first time is changed into a second time;
generating a second timing task expression according to the second timing editing request, and deleting the first timing task expression, wherein the second timing task expression is used for indicating that the first task is executed at the second moment;
and triggering to execute the first task when the second time is reached.
3. The method of claim 1, wherein after the obtaining the first timed edit request through the front-end interface, the method further comprises:
acquiring a third timed editing request through the front-end interface, wherein the third timed editing request is used for indicating that the first task is changed into a second task;
generating a third timed task expression according to the third timed editing request, and deleting the first timed task expression, wherein the third timed task expression is used for indicating that the second task is executed at the first time;
and triggering to execute the second task when the first time arrives.
4. The method of claim 1, further comprising:
and under the condition of meeting task execution conditions, triggering to execute the first task when the first time is reached, wherein the first timing editing request also carries the task execution conditions.
5. The method of claim 1, wherein after the obtaining the first timed edit request through the front-end interface, the method further comprises:
and storing the first time and the first task in a timed task list in a related manner, wherein the timed task list stores N tasks and time corresponding to each task, the N tasks correspond to N timed task expressions, and N is an integer greater than or equal to 1.
6. The method according to any one of claims 1 to 5, further comprising:
after a first timing task expression is generated according to the first timing editing request, displaying prompt information on the front-end interface, wherein the prompt information is used for indicating that a first timing task is successfully created and indicating that the first timing task is executed at the first time;
after the first task is triggered to be executed when the first moment is reached, an execution result is displayed on the front-end interface, and the execution result user indicates an execution result of the first task at the first moment.
7. An apparatus for executing a task, comprising:
the system comprises a first acquisition module, a first processing module and a second acquisition module, wherein the first acquisition module is used for acquiring a first timing editing request through a front-end interface, and the first timing editing request is used for carrying a first moment and a first task;
a first generating module, configured to generate a first timed task expression according to the first timed editing request, where the first timed task expression is used to indicate that the first task is executed at the first time;
and the first execution module is used for triggering the execution of the first task when the first time arrives.
8. The apparatus of claim 7, further comprising:
a second obtaining module, configured to obtain, through a front-end interface, a second timed editing request after the first timed editing request is obtained through the front-end interface, where the second timed editing request is used to instruct to change the first time into a second time;
a second generating module, configured to generate a second timed task expression according to the second timed editing request, and delete the first timed task expression, where the second timed task expression is used to instruct to execute the first task at the second time;
and the second execution module is used for triggering the execution of the first task when the second moment is reached.
9. A storage medium, in which a computer program is stored, wherein the program is executable by a terminal device or a computer to perform the method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
CN202010688674.0A 2020-07-16 2020-07-16 Task execution method and device, storage medium and electronic device Pending CN111831380A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010688674.0A CN111831380A (en) 2020-07-16 2020-07-16 Task execution method and device, storage medium and electronic device
PCT/CN2021/092820 WO2022012127A1 (en) 2020-07-16 2021-05-10 Task execution method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010688674.0A CN111831380A (en) 2020-07-16 2020-07-16 Task execution method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN111831380A true CN111831380A (en) 2020-10-27

Family

ID=72923553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010688674.0A Pending CN111831380A (en) 2020-07-16 2020-07-16 Task execution method and device, storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN111831380A (en)
WO (1) WO2022012127A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022012127A1 (en) * 2020-07-16 2022-01-20 浙江三维通信科技有限公司 Task execution method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016150389A1 (en) * 2015-03-25 2016-09-29 中兴通讯股份有限公司 Interface processing method, device and system
CN106445669A (en) * 2016-09-28 2017-02-22 维沃移动通信有限公司 Task processing method of application program and mobile terminal
WO2017152654A1 (en) * 2016-03-11 2017-09-14 珠海格力电器股份有限公司 Data processing method and apparatus for calculator application
CN109408322A (en) * 2018-09-05 2019-03-01 无锡华云数据技术服务有限公司 A kind of automatic business process implementation method of cloud platform

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168861A1 (en) * 2006-01-17 2007-07-19 Bell Denise A Method for indicating completion status of user initiated and system created tasks
CN108762911A (en) * 2018-06-13 2018-11-06 平安科技(深圳)有限公司 Timing task management method, apparatus, computer equipment and storage medium
CN109739547A (en) * 2018-12-28 2019-05-10 北京小米移动软件有限公司 Method for scheduling task, device and storage medium
CN111831380A (en) * 2020-07-16 2020-10-27 浙江三维通信科技有限公司 Task execution method and device, storage medium and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016150389A1 (en) * 2015-03-25 2016-09-29 中兴通讯股份有限公司 Interface processing method, device and system
WO2017152654A1 (en) * 2016-03-11 2017-09-14 珠海格力电器股份有限公司 Data processing method and apparatus for calculator application
CN106445669A (en) * 2016-09-28 2017-02-22 维沃移动通信有限公司 Task processing method of application program and mobile terminal
CN109408322A (en) * 2018-09-05 2019-03-01 无锡华云数据技术服务有限公司 A kind of automatic business process implementation method of cloud platform

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022012127A1 (en) * 2020-07-16 2022-01-20 浙江三维通信科技有限公司 Task execution method and device, storage medium and electronic device

Also Published As

Publication number Publication date
WO2022012127A1 (en) 2022-01-20

Similar Documents

Publication Publication Date Title
CN108062367B (en) Data list uploading method and terminal thereof
CN108828966B (en) Method and device for displaying equipment information in smart home system
CN107450899B (en) Method and device for generating terminal control script
CN109726941B (en) Automatic marketing system and automatic marketing method of intelligent terminal
CN112073471A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN110334126A (en) Timed task processing method, device and computer equipment based on Spring MVC
CN111142905A (en) OTA (over-the-air) upgrading method, OTA server and OTA upgrading system
CN112632420A (en) Interface skipping method and device, storage medium and electronic device
CN113407157A (en) Object model determination method and device, storage medium and electronic device
CN111831380A (en) Task execution method and device, storage medium and electronic device
CN114546588A (en) Task deployment method and device, storage medium and electronic device
CN112698772A (en) Document template processing method and device and document creating method and device
CN113076186A (en) Task processing method and device, electronic equipment and storage medium
CN111045747A (en) H5 mobile application rapid loading method, system, terminal and storage medium
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
CN112698948A (en) Method and device for acquiring product resources, storage medium and electronic device
CN110188490B (en) Method and device for improving data simulation efficiency, storage medium and electronic device
CN113434176A (en) Data updating processing method and device, storage medium and electronic device
CN113986423A (en) Bullet frame display method and system, storage medium and terminal equipment
CN113360408A (en) Automatic testing method and device based on dragging type machine learning platform
CN113467814A (en) Batch upgrading method, system and device for RBD virtual machines and readable storage medium
CN113032205A (en) Picture uploading method and device, storage medium and electronic equipment
CN112128948A (en) Control method and device for air equipment, storage medium and electronic device
CN115982285B (en) Data processing method, apparatus and computer readable storage medium
CN114327539A (en) Incidence relation establishing method and device, storage medium and electronic device

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