WO2022012127A1 - 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
WO2022012127A1
WO2022012127A1 PCT/CN2021/092820 CN2021092820W WO2022012127A1 WO 2022012127 A1 WO2022012127 A1 WO 2022012127A1 CN 2021092820 W CN2021092820 W CN 2021092820W WO 2022012127 A1 WO2022012127 A1 WO 2022012127A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
timed
editing request
execution
expression
Prior art date
Application number
PCT/CN2021/092820
Other languages
French (fr)
Chinese (zh)
Inventor
冯秀
杨剑锋
袁勇超
Original Assignee
浙江三维通信科技有限公司
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 浙江三维通信科技有限公司 filed Critical 浙江三维通信科技有限公司
Publication of WO2022012127A1 publication Critical patent/WO2022012127A1/en

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

Definitions

  • the present invention relates to the field of communications, and in particular, to a task execution method and device, a storage medium and an electronic device.
  • Existing scheduled tasks are usually triggered by background developers setting time conditions for task execution. One is to continuously compare with the current actual time through the time loop, and call the corresponding task at the moment indicated by the time condition. The other is that the developer pre-sets the time node that triggers the execution of the task, and the time point arrives to trigger the execution of the task.
  • the two timing tasks in the prior art have the following disadvantages: the time loop comparison method is complicated in logic, requires a lot of resources to be implemented, and is not suitable for the execution of a large number of tasks; the time point and the tasks to be executed are already known before the program is developed. It is known that the developer needs to update the program every time the task and/or time is changed, and it is difficult to change the time and task in real time.
  • Embodiments of the present invention provide a task execution method and device, a storage medium, and an electronic device, so as to at least solve the problem of complex setting of time tasks in the related art.
  • a method for executing a task including: obtaining a first timing editing request through a front-end interface, wherein the first timing editing request carries a first moment and a first task;
  • the first timed editing request generates a first timed task expression, and the first timed task expression is used to instruct the execution of the first task at the first moment; when the first moment arrives, trigger the execution of the first task.
  • the method further includes: obtaining a second timed editing request through the front-end interface, wherein the second timed editing request is used to instruct The first time is changed to the second time; a second timed task expression is generated according to the second timed editing request, and the first timed task expression is deleted, and the second timed task expression is used to indicate that the The first task is executed at the second time; when the second time arrives, the execution of the first task is triggered.
  • the method further includes: obtaining a third timed editing request through the front-end interface, wherein the third timed editing request is used to instruct The first task is changed to a second task; a third timed task expression is generated according to the third timed editing request, and the first timed task expression is deleted, and the third timed task expression is used to indicate that the The second task is executed at the first moment; when the first moment arrives, the execution of the second task is triggered.
  • the method further includes: triggering the execution of the first task when the first moment arrives under the condition that a task execution condition is satisfied, and the first timing editing request also carries the task execution condition.
  • the method further includes: storing the first moment and the first task in a timed task list in association, and storing the timed task list in the timed task list.
  • N tasks, and the 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.
  • the method further includes: after generating the first timed task expression according to the first timed editing request, displaying prompt information on the front-end interface, wherein the prompt information is used to indicate the first timed task expression.
  • the timed task is successfully created, and the first timed task is used to instruct the execution of the first task at the first moment; after the execution of the first task is triggered when the first moment arrives, the front-end interface
  • the execution result is displayed, and the execution result indicates the execution result of the first task at the first moment by the user.
  • a device for executing a task including: a first obtaining module configured to obtain a first timed editing request through a front-end interface, wherein the first timed editing request carries a first timed editing request. time and a first task; a first generation 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 timed task expression is executed at the first time A task; a first execution module, configured to trigger execution of the first task when the first moment arrives.
  • the device further includes: a second obtaining module, configured to obtain a second timing editing request through the front-end interface after obtaining the first timing editing request through the front-end interface, wherein the second timing editing request is The editing request is used to instruct to change the first time to the second time;
  • the second generation module is configured to generate a second timed task expression according to the second timed editing request, and delete the first timed task expression , the second timing task expression is used to instruct the execution of the first task at the second moment;
  • the second execution module is configured to trigger the execution of the first task when the second moment arrives.
  • a storage medium is also provided, wherein a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
  • an electronic device comprising a memory and a processor, wherein the memory stores a computer program, the processor is configured to run the computer program to execute any of the above Steps in Method Examples.
  • the first timing editing request is obtained through the front-end interface
  • the first timing editing request carries the first moment and the first task
  • the first timing task expression is generated according to the first timing editing request, and the first timing task expression It is used to instruct the execution of the first task at the first moment; when the first moment arrives, the execution of the first task is triggered.
  • FIG. 1 is a block diagram of a hardware structure of a mobile terminal of a method for executing a task according to an embodiment of the present invention
  • Figure 2 is a flowchart of the execution of a task according to an embodiment of the present invention.
  • FIG. 3 is a system module diagram according to an optional embodiment of the present invention.
  • FIG. 4 is a schematic flowchart according to an optional embodiment of the present invention.
  • FIG. 5 is a structural block diagram of an apparatus for executing tasks according to an embodiment of the present invention.
  • FIG. 1 is a hardware structural block diagram of a mobile terminal of a method for executing a task according to an embodiment of the present invention.
  • the mobile terminal 10 may include one or more (only one is shown in FIG. 1 ) processors 102 (the processors 102 may include but are not limited to processing devices such as a microprocessor MCU or a programmable logic device FPGA, etc.
  • the above-mentioned mobile terminal may further include a transmission device 106 and an input/output device 108 configured as a communication function.
  • the structure shown in FIG. 1 is only a schematic diagram, which does not limit the structure of the above-mentioned mobile terminal.
  • the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .
  • the memory 104 may be configured to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the methods for executing tasks in the embodiments of the present invention.
  • the processor 102 runs the computer programs stored in the memory 104 to thereby Executing various functional applications and data processing implements the above-mentioned methods.
  • 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.
  • the memory 104 may further include memory located remotely from the processor 102, and these remote memories may be connected to the mobile terminal 10 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • Transmission means 106 are arranged to receive or transmit data via a network.
  • the specific example of the above-mentioned network may include a wireless network provided by the communication provider of the mobile terminal 10 .
  • the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is configured to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • FIG. 2 is a flowchart of executing a task according to an embodiment of the present invention. As shown in FIG. 2 , the process includes the following steps:
  • Step S202 obtaining a first timing editing request through a front-end interface, wherein the first timing editing request carries a first moment and a first task;
  • Step S204 generating a first timed task expression according to the first timed editing request, where the first timed task expression is used to instruct to execute the first task at the first moment;
  • Step S206 triggering the execution of the first task when the first moment arrives.
  • 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 operation controls, editing areas, etc., and the user can set the time to perform a task on the front-end interface.
  • Specific tasks can be determined according to the actual situation, such as controlling the device to be turned on or off, or sending operation instructions from the device.
  • the specific time can be determined according to the actual situation, and can be any time. For example, control a device to start at 8:00 am and turn off at 8:00 pm this week.
  • the background After the user sets the task and the time for executing the corresponding task, it is passed to the background through the interface, and the background generates a timed task expression according to the received time and the corresponding task, and the timed task expression can be a cron Express. Add timing expressions to pre-defined triggers, hook the tasks to be executed, and the system automatically determines that the corresponding tasks will be executed when the time arrives.
  • the first timed editing request is used to carry the first time and the first task; the first timed task expression is generated according to the first timed editing request, and the first timed task The expression is used to indicate that the first task is executed at the first moment; when the first moment arrives, the execution of the first task is triggered.
  • the execution subject of the above steps may be a terminal or the like, but is not limited thereto.
  • the method further includes: obtaining a second timed editing request through the front-end interface, wherein the second timed editing request is used to instruct The first time is changed to the second time; a second timed task expression is generated according to the second timed editing request, and the first timed task expression is deleted, and the second timed task expression is used to indicate that the The first task is executed at the second time; when the second time arrives, the execution of the first task is triggered.
  • the user can change the time for executing the corresponding task through the front-end interface.
  • the initial setting is to control a device to start at 8:00 am and close at 8:00 pm this week.
  • the user can adjust the time on the front-end interface. Make changes, such as changing from 8am to 10am and 8pm to 10pm. It can be modified by triggering the selection control, or by editing the changed time in the edit box.
  • the background will regenerate a new cron expression based on the changed execution time of the task and delete the original cron expression. When the updated time arrives, run the new cron expression to execute the first task when the second time arrives.
  • the method further includes: obtaining a third timed editing request through the front-end interface, wherein the third timed editing request is used to instruct The first task is changed to a second task; a third timed task expression is generated according to the third timed editing request, and the first timed task expression is deleted, and the third timed task expression is used to indicate that the The second task is executed at the first moment; when the first moment arrives, the execution of the second task is triggered.
  • the user can change the task executed at the execution time point through the front-end interface.
  • the initial setting is that the control device 1 starts at 8:00 in the morning and shuts down at 8:00 in the evening.
  • the user can modify and change the executed tasks in the front-end interface, for example, start the control device at 8:00 in the morning this week.
  • the 8:00 pm shutdown can be changed to start the control device 2 at 8:00 am and shut down at 8:00 pm this week. It can be modified by triggering the selection control, or by editing the changed time in the edit box.
  • the background will regenerate a new cron expression based on the changed execution time of the task and delete the original cron expression. When the time arrives, run a new cron expression that executes the second task when the first time arrives.
  • the method further includes: triggering the execution of the first task when the first moment arrives under the condition that a task execution condition is satisfied, and the first timing editing request also carries the task execution condition.
  • conditions for executing the task may be set, and the conditions for executing the task may be determined according to the actual situation. For example, it can be quantity, temperature, humidity, concentration, etc. Users can set the conditions for executing tasks through the front-end interface. For example, when the ambient temperature reaches 50 degrees Celsius, the control device starts at 8:00 am and shuts down at 8:00 pm this week.
  • the method further includes: storing the first moment and the first task in a timed task list in association, and storing the timed task list in the timed task list.
  • N tasks, and the 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.
  • each time and a task corresponding to each time are stored in the timed task list, for example, start the device 1 at 8:00 in the morning and turn off the device 1 at 8:00 in the evening; control the temperature output by the device 2 at 10:00 in the morning It is 22 degrees Celsius, and the output temperature of turning off device 2 at 6 pm is 27 degrees Celsius.
  • the time points and tasks set by the user on the front end are stored in the scheduled task list, and the background can generate corresponding cron expressions according to the time and corresponding tasks in the scheduled task list.
  • N tasks are stored in the scheduled task list. The value of N can be determined according to the actual situation, such as 100, 1000, 10000, etc. N tasks correspond to N cron expressions.
  • one task may correspond to one time point or may correspond to multiple time points. For example, starting the control device at 8:00 in the morning and shutting it down at 8:00 pm may be two tasks. It can also be a task to start the control device at 8:00 in the morning and turn it off at 8:00 pm this week, and the task includes two time points: 8:00 am and 8:00 pm.
  • the method further includes: after generating the first timed task expression according to the first timed editing request, displaying prompt information on the front-end interface, wherein the prompt information is used to indicate the first timed task expression.
  • the timed task is successfully created, and the first timed task is used to instruct the execution of the first task at the first moment; after the execution of the first task is triggered when the first moment arrives, the front-end interface
  • the execution result is displayed, and the execution result indicates the execution result of the first task at the first moment by the user.
  • a prompt message indicating that the first timing task is successfully created may be displayed on the display interface, for example, "The control device will Start, shut down at 8:00 pm", or "The task that the control device starts at 8:00 am this week and shuts down at 8:00 pm has been created successfully".
  • the task of prompting the user to be successfully created can be achieved by displaying prompt information on the display interface.
  • the execution result of the first task is displayed on the display interface. For example, “The control device will start at 8:00 am and close at 8:00 pm this week” after the execution of the scheduled task, the prompt message “The device will start at 8:00 am and close at 8:00 pm” will be displayed on the display interface for the user to pass the display The information displayed on the interface can timely understand the task execution status of the device.
  • FIG. 3 is a system module diagram according to an optional embodiment of the present invention
  • FIG. 4 is a schematic flowchart according to an optional embodiment of the present invention, which may include the following steps:
  • Step S1 in the preparation stage, define various parameters in the background, which may include: defining a startup thread; defining a method for obtaining a list of timed tasks; defining an algorithm for converting time requirements into cron expressions; defining triggers; defining tasks to be executed.
  • Step S2 in the execution stage, the user sets the time and the corresponding task on the front-end interface, stores the time and the corresponding task in the timed task list, and transmits the timed task list to the background.
  • the background starts the thread, obtains the list of timed tasks, obtains the corresponding N cron expressions through the algorithm according to the task time requirements, adds them to the trigger, hooks the tasks to be executed, and the system automatically determines that the requirements are met and executed automatically;
  • 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, new time and/or task can be added, and time and/or task can be deleted.
  • the background obtains a new acquisition timed task list, obtains new N cron expressions through the algorithm according to the task time requirements, adds them to the trigger, hooks the tasks to be executed, and the system automatically determines that the requirements are met and executed automatically.
  • This embodiment also includes server front-end and back-end systems.
  • the front-end interface is used to meet the editing requirements of the client's scheduled tasks; the back-end responds to the user request sent by the front-end, and generates corresponding timing according to the user request.
  • This application can define multiple threads, multiple types of task triggers, and multiple task execution conditions, allowing users to flexibly customize scheduled task events through the front-end interface. All settings can be completed on the front-end page. friendly.
  • the background can generate corresponding cron expressions according to the user's task events on the front-end device. After the task is successfully defined, it can be fed back to the display interface in time, and after the task is successfully executed, it can also be fed back to the display interface in time. The user can know the defined tasks and the implementation of each task in time through the front-end interface.
  • a task execution device is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated.
  • the term "module” may be a combination of software and/or hardware that implements a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
  • the apparatus includes: a first obtaining module 52 configured to obtain a first timing editing request through a front-end interface, wherein the first obtaining module 52 A certain timed editing request carries a first moment and a first task; the first generation module 54 is configured to generate a first timed task expression according to the first timed editing request, and the first timed task expression is used to indicate that the The first task is executed at the first moment; the first execution module 56 is configured to trigger the execution of the first task when the first moment arrives.
  • the device further includes: a second obtaining module, configured to obtain a second timing editing request through the front-end interface after obtaining the first timing editing request through the front-end interface, wherein the second timing editing request is The editing request is used to instruct to change the first time to the second time;
  • the second generation module is configured to generate a second timed task expression according to the second timed editing request, and delete the first timed task expression , the second timing task expression is used to instruct the execution of the first task at the second moment;
  • the second execution module is configured to trigger the execution of the first task when the second moment arrives.
  • the above-mentioned apparatus is further configured to obtain a third timed editing request through the front-end interface after obtaining the first timed editing request through the front-end interface, wherein the third timed editing request is used to instruct the The first task is changed to a second task; a third timed task expression is generated according to the third timed editing request, and the first timed task expression is deleted, and the third timed task expression is used to indicate that in the The second task is executed at the first moment; when the first moment arrives, the execution of the second task is triggered.
  • the above-mentioned device is further configured to trigger the execution of the first task when the first moment arrives when the task execution conditions are met, and the first timing editing request also carries the task execution conditions. .
  • the above-mentioned device is further configured to store the first moment and the first task in a timed task list in association with the timed task list after obtaining the first timed editing request through the front-end interface.
  • N tasks, and the 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.
  • the above-mentioned apparatus is further configured to display prompt information on the front-end interface after the first timing task expression is generated according to the first timing editing request, wherein the prompt information is used to indicate the first timing.
  • the task is created successfully, and the first timed task is used to instruct the execution of the first task at the first moment; after the execution of the first task is triggered when the first moment arrives, it is displayed on the front-end interface An execution result, where the user indicates the execution result of the first task at the first moment.
  • the above modules can be implemented by software or hardware, and the latter can be implemented in the following ways, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination The forms are located in different processors.
  • An embodiment of the present invention further provides a storage medium, where a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
  • the above-mentioned storage medium may be configured to store a computer program for executing the following steps:
  • the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), Various media that can store computer programs, such as removable hard disks, magnetic disks, or optical disks.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • the above-mentioned processor may be configured to execute the following steps through a computer program:
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device and executed by the computing device, and in some cases, in a different order than here
  • the steps shown or described are performed either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module.
  • the present invention is not limited to any particular combination of hardware and software.

Abstract

A task execution method and device, a storage medium and an electronic device, the method comprising: acquiring a first timed edit request by means of a front end interface (S202), wherein the first timed edit request is used to carry a first moment and a first task; according to the first timed edit request, generating a first timed task expression, the first timed task expression being used to indicate that the first task is executed at the first moment (S204); when the first moment is reached, triggering the execution of the first task (S206). The invention solves the problem in which methods for setting time tasks are complex, thus achieving the effect of increasing the efficiency with which time tasks are set.

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 task execution method and device, a storage medium and an electronic device.
背景技术Background technique
现有的定时任务通常是由后台开发人员设置任务执行的时间条件来触发定时任务。一种是通过时间循环不断与当前实际时间进行比对,到了时间条件所指示的时刻,调用对应的任务。另一种是,开发人员预先设置好触发执行任务的时间节点,时间点到达触发执行任务。Existing scheduled tasks are usually triggered by background developers setting time conditions for task execution. One is to continuously compare with the current actual time through the time loop, and call the corresponding task at the moment indicated by the time condition. The other is that the developer pre-sets the time node that triggers the execution of the task, and the time point arrives to trigger the execution of the task.
对于现有技术中的两种定时任务存在以下缺点:时间循环比对的方式逻辑复杂,实现时需要消耗大量的资源,不适用大量任务的执行;时间点和执行的任务在开发程序前是已知的,每改变一次任务和/或时间需要开发人员更新一次程序,难以实时更改时间和任务。The two timing tasks in the prior art have the following disadvantages: the time loop comparison method is complicated in logic, requires a lot of resources to be implemented, and is not suitable for the execution of a large number of tasks; the time point and the tasks to be executed are already known before the program is developed. It is known that the developer needs to update the program every time the task and/or time is changed, and it is difficult to change the time and task in real time.
针对相关技术中,时间任务的设置方式复杂的技术问题,目前尚未存在有效的解决方案。In the related art, there is no effective solution to the technical problem of complicated setting of time tasks.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种任务的执行方法及装置、存储介质和电子装置,以至少解决相关技术中时间任务的设置方式复杂的问题。Embodiments of the present invention provide a task execution method and device, a storage medium, and an electronic device, so as to at least solve the problem of complex setting of time tasks in the related art.
根据本发明的一个实施例,提供了一种任务的执行方法,包括:通过前端界面获取第一定时编辑请求,其中,所述第一定时编辑请求携带有第一时刻和第一任务;根据所述第一定时编辑请求生成第一定时任务表达式,所述第一定时任务表达式用于指示在所述第一时刻执行所述第一任务;当所述第一时刻到达时触发执行所述第一任务。According to an embodiment of the present invention, a method for executing a task is provided, including: obtaining a first timing editing request through a front-end interface, wherein the first timing editing request carries a first moment and a first task; The first timed editing request generates a first timed task expression, and the first timed task expression is used to instruct the execution of the first task at the first moment; when the first moment arrives, trigger the execution of the first task.
可选地,在所述通过前端界面获取第一定时编辑请求之后,所述方法还包括:通过所述前端界面获取第二定时编辑请求,其中,所述第二定时 编辑请求用于指示将所述第一时刻变更为第二时刻;根据所述第二定时编辑请求生成第二定时任务表达式,并删除所述第一定时任务表达式,所述第二定时任务表达式用于指示在所述第二时刻执行所述第一任务;当所述第二时刻到达时触发执行所述第一任务。Optionally, after obtaining the first timed editing request through the front-end interface, the method further includes: obtaining a second timed editing request through the front-end interface, wherein the second timed editing request is used to instruct The first time is changed to the second time; a second timed task expression is generated according to the second timed editing request, and the first timed task expression is deleted, and the second timed task expression is used to indicate that the The first task is executed at the second time; when the second time arrives, the execution of the first task is triggered.
可选地,在所述通过前端界面获取第一定时编辑请求之后,所述方法还包括:通过所述前端界面获取第三定时编辑请求,其中,所述第三定时编辑请求用于指示将所述第一任务变更为第二任务;根据所述第三定时编辑请求生成第三定时任务表达式,并删除所述第一定时任务表达式,所述第三定时任务表达式用于指示在所述第一时刻执行所述第二任务;当所述第一时刻到达时触发执行所述第二任务。Optionally, after obtaining the first timed editing request through the front-end interface, the method further includes: obtaining a third timed editing request through the front-end interface, wherein the third timed editing request is used to instruct The first task is changed to a second task; a third timed task expression is generated according to the third timed editing request, and the first timed task expression is deleted, and the third timed task expression is used to indicate that the The second task is executed at the first moment; when the first moment arrives, the execution of the second task is triggered.
可选地,所述方法还包括:在满足任务执行条件的情况下,当所述第一时刻到达时触发执行所述第一任务,所述第一定时编辑请求中还携带有所述任务执行条件。Optionally, the method further includes: triggering the execution of the first task when the first moment arrives under the condition that a task execution condition is satisfied, and the first timing editing request also carries the task execution condition.
可选地,在所述通过前端界面获取第一定时编辑请求之后,所述方法还包括:将所述第一时刻和所述第一任务关联存储在定时任务列表,所述定时任务列表中存储了N个任务,以及与每个任务对应的时刻,所述N个任务对应N个定时任务表达式,N为大于或等于1的整数。Optionally, after obtaining the first timed editing request through the front-end interface, the method further includes: storing the first moment and the first task in a timed task list in association, and storing the timed task list in the timed task list. N tasks, and the 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 includes: after generating the first timed task expression according to the first timed editing request, displaying prompt information on the front-end interface, wherein the prompt information is used to indicate the first timed task expression. The timed task is successfully created, and the first timed task is used to instruct the execution of the first task at the first moment; after the execution of the first task is triggered when the first moment arrives, the front-end interface The execution result is displayed, and the execution result indicates the execution result of the first task at the first moment by the user.
根据本发明的另一个实施例,提供了一种任务的执行装置,包括:第一获取模块,设置为通过前端界面获取第一定时编辑请求,其中,所述第一定时编辑请求携带有第一时刻和第一任务;第一生成模块,设置为根据所述第一定时编辑请求生成第一定时任务表达式,所述第一定时任务表达 式用于指示在所述第一时刻执行所述第一任务;第一执行模块,设置为当所述第一时刻到达时触发执行所述第一任务。According to another embodiment of the present invention, a device for executing a task is provided, including: a first obtaining module configured to obtain a first timed editing request through a front-end interface, wherein the first timed editing request carries a first timed editing request. time and a first task; a first generation 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 timed task expression is executed at the first time A task; a first execution module, configured to trigger execution of the first task when the first moment arrives.
可选地,所述装置还包括:第二获取模块,设置为在所述通过前端界面获取第一定时编辑请求之后,通过所述前端界面获取第二定时编辑请求,其中,所述第二定时编辑请求用于指示将所述第一时刻变更为第二时刻;第二生成模块,设置为根据所述第二定时编辑请求生成第二定时任务表达式,并删除所述第一定时任务表达式,所述第二定时任务表达式用于指示在所述第二时刻执行所述第一任务;第二执行模块,设置为当所述第二时刻到达时触发执行所述第一任务。Optionally, the device further includes: a second obtaining module, configured to obtain a second timing editing request through the front-end interface after obtaining the first timing editing request through the front-end interface, wherein the second timing editing request is The editing request is used to instruct to change the first time to the second time; the second generation module is configured to generate a second timed task expression according to the second timed editing request, and delete the first timed task expression , the second timing task expression is used to instruct the execution of the first task at the second moment; the second execution module is configured to trigger the execution of the first task when the second moment arrives.
根据本发明的又一个实施例,还提供了一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, a storage medium is also provided, wherein a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
根据本发明的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, there is also provided an electronic device comprising a memory and a processor, wherein the memory stores a computer program, the processor is configured to run the computer program to execute any of the above Steps in Method Examples.
通过本发明,由于通过前端界面获取第一定时编辑请求,第一定时编辑请求携带有第一时刻和第一任务;根据第一定时编辑请求生成第一定时任务表达式,第一定时任务表达式用于指示在第一时刻执行第一任务;当第一时刻到达时触发执行第一任务。达到可以根据通过前端页面获取到的时刻和任务自动生成相应定时任务表达式的目的。因此,可以解决时间任务的设置方式复杂问题,达到提高时间任务设置效率的效果。Through the present invention, because the first timing editing request is obtained through the front-end interface, the first timing editing request carries the first moment and the first task; the first timing task expression is generated according to the first timing editing request, and the first timing task expression It is used to instruct the execution of the first task at the first moment; when the first moment arrives, the execution of the first task is triggered. To achieve the purpose of automatically generating corresponding timing task expressions according to the time and tasks obtained through the front-end page. Therefore, it is possible to solve the complex problem of the setting method of the time task, and achieve the effect of improving the setting efficiency of the time task.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:
图1是本发明实施例的一种任务的执行方法的移动终端的硬件结构框图;1 is a block diagram of a hardware structure of a mobile terminal of a method for executing a task according to an embodiment of the present invention;
图2是根据本发明实施例的任务的执行的流程图;Figure 2 is a flowchart of the execution of a task according to an embodiment of the present invention;
图3是根据本发明一个可选实施例的系统模块图;3 is a system module diagram according to an optional embodiment of the present invention;
图4是根据本发明一个可选实施例的流程示意图;FIG. 4 is a schematic flowchart according to an optional embodiment of the present invention;
图5是根据本发明实施例的任务的执行装置的结构框图。FIG. 5 is a structural block diagram of an apparatus for executing tasks according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in conjunction with embodiments. It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种任务的执行方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和设置为存储数据的存储器104,可选地,上述移动终端还可以包括设置为通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, FIG. 1 is a hardware structural block diagram of a mobile terminal of a method for executing a task according to an embodiment of the present invention. As shown in FIG. 1 , the mobile terminal 10 may include one or more (only one is shown in FIG. 1 ) processors 102 (the processors 102 may include but are not limited to processing devices such as a microprocessor MCU or a programmable logic device FPGA, etc. ) and a memory 104 configured to store data, optionally, the above-mentioned mobile terminal may further include a transmission device 106 and an input/output device 108 configured as a communication function. Those of ordinary skill in the art can understand that the structure shown in FIG. 1 is only a schematic diagram, which does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .
存储器104可设置为存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的任务的执行方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于 处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 may be configured to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the methods for executing tasks in the embodiments of the present invention. The processor 102 runs the computer programs stored in the memory 104 to thereby Executing various functional applications and data processing implements the above-mentioned methods. 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, and these remote memories may be connected to the mobile terminal 10 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
传输装置106设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其设置为通过无线方式与互联网进行通讯。Transmission means 106 are arranged to receive or transmit data via a network. The specific example of the above-mentioned network may include a wireless network provided by the communication provider of the mobile terminal 10 . In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), 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 (Radio Frequency, RF for short) module, which is configured to communicate with the Internet in a wireless manner.
在本实施例中提供了一种运行于上述移动终端的任务的执行方法,图2是根据本发明实施例的任务的执行的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a method for executing a task running on the above-mentioned mobile terminal is provided. FIG. 2 is a flowchart of executing a task according to an embodiment of the present invention. As shown in FIG. 2 , the process includes the following steps:
步骤S202,通过前端界面获取第一定时编辑请求,其中,所述第一定时编辑请求携带有第一时刻和第一任务;Step S202, obtaining a first timing editing request through a front-end interface, wherein the first timing editing request carries a first moment and a first task;
步骤S204,根据所述第一定时编辑请求生成第一定时任务表达式,所述第一定时任务表达式用于指示在所述第一时刻执行所述第一任务;Step S204, generating a first timed task expression according to the first timed editing request, where the first timed task expression is used to instruct to execute the first task at the first moment;
步骤S206,当所述第一时刻到达时触发执行所述第一任务。Step S206, triggering the execution of the first task when the first moment arrives.
作为一个可选的实施方式,前端界面可以是目标应用的界面,目标应用可以是浏览器,也可以是客户端。前端界面设置有操作控件,编辑区域等,用户可以再前端界面设置执行某个任务的时间。具体的任务可以根据实际情况而定,例如控制开启或关闭设备,或者像设备发送操作指令等。具体的时刻可以根据实际情况而定,可以是任意时刻。例如,控制某设备在本周的早八点启动,晚八点关闭。As an optional implementation manner, 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 operation controls, editing areas, etc., and the user can set the time to perform a task on the front-end interface. Specific tasks can be determined according to the actual situation, such as controlling the device to be turned on or off, or sending operation instructions from the device. The specific time can be determined according to the actual situation, and can be any time. For example, control a device to start at 8:00 am and turn off at 8:00 pm this week.
作为一个可选的实施方式,当用户设置完任务和执行相应任务的时刻之后,通过接口传递给后台,后台根据接收到的时刻和相应的任务生成定时任务表达式,定时任务表达式可以是cron表达。将定时表达式加入到预先定义的触发器中,将要执行的任务进行挂钩,系统自动判定时间到达时 执行相应的任务。As an optional implementation, after the user sets the task and the time for executing the corresponding task, it is passed to the background through the interface, and the background generates a timed task expression according to the received time and the corresponding task, and the timed task expression can be a cron Express. Add timing expressions to pre-defined triggers, hook the tasks to be executed, and the system automatically determines that the corresponding tasks will be executed when the time arrives.
通过上述步骤,由于通过前端界面获取第一定时编辑请求,第一定时编辑请求用于携带有第一时刻和第一任务;根据第一定时编辑请求生成第一定时任务表达式,第一定时任务表达式用于指示在第一时刻执行第一任务;当第一时刻到达时触发执行第一任务。达到可以根据通过前端页面获取到的时刻和任务自动生成相应定时任务表达式的目的。因此,可以解决时间任务的设置方式复杂问题,达到提高时间任务设置效率的效果。Through the above steps, since the first timed editing request is obtained through the front-end interface, the first timed editing request is used to carry the first time and the first task; the first timed task expression is generated according to the first timed editing request, and the first timed task The expression is used to indicate that the first task is executed at the first moment; when the first moment arrives, the execution of the first task is triggered. To achieve the purpose of automatically generating corresponding timing task expressions according to the time and tasks obtained through the front-end page. Therefore, it is possible to solve the complex problem of the setting method of the time task, and achieve the effect of improving the setting efficiency of the time task.
可选地,上述步骤的执行主体可以为终端等,但不限于此。Optionally, the execution subject of the above steps may be a terminal or the like, but is not limited thereto.
可选地,在所述通过前端界面获取第一定时编辑请求之后,所述方法还包括:通过所述前端界面获取第二定时编辑请求,其中,所述第二定时编辑请求用于指示将所述第一时刻变更为第二时刻;根据所述第二定时编辑请求生成第二定时任务表达式,并删除所述第一定时任务表达式,所述第二定时任务表达式用于指示在所述第二时刻执行所述第一任务;当所述第二时刻到达时触发执行所述第一任务。Optionally, after obtaining the first timed editing request through the front-end interface, the method further includes: obtaining a second timed editing request through the front-end interface, wherein the second timed editing request is used to instruct The first time is changed to the second time; a second timed task expression is generated according to the second timed editing request, and the first timed task expression is deleted, and the second timed task expression is used to indicate that the The first task is executed at the second time; when the second time arrives, the execution of the first task is triggered.
作为一个可选的实施方式,用户可以通过前端界面更改执行相应任务的时间,例如,初始设置为控制某设备在本周的早八点启动,晚八点关闭,用户可以在前端界面中对时间进行更改,例如将早八点更改为早十点,晚八点更改为晚十点。可以通过触发选择控件的方式进行修改,也可以通过在编辑框内编辑更改后的时间进行修改。后台会根据更改后的执行任务的时间重新生成新的cron表达式,并删除原始的cron表达式。当更新后的时间到达时,运行新的cron表达式,在第二时刻到达时执行第一任务。As an optional implementation manner, the user can change the time for executing the corresponding task through the front-end interface. For example, the initial setting is to control a device to start at 8:00 am and close at 8:00 pm this week. The user can adjust the time on the front-end interface. Make changes, such as changing from 8am to 10am and 8pm to 10pm. It can be modified by triggering the selection control, or by editing the changed time in the edit box. The background will regenerate a new cron expression based on the changed execution time of the task and delete the original cron expression. When the updated time arrives, run the new cron expression to execute the first task when the second time arrives.
可选地,在所述通过前端界面获取第一定时编辑请求之后,所述方法还包括:通过所述前端界面获取第三定时编辑请求,其中,所述第三定时编辑请求用于指示将所述第一任务变更为第二任务;根据所述第三定时编辑请求生成第三定时任务表达式,并删除所述第一定时任务表达式,所述第三定时任务表达式用于指示在所述第一时刻执行所述第二任务;当所述第一时刻到达时触发执行所述第二任务。Optionally, after obtaining the first timed editing request through the front-end interface, the method further includes: obtaining a third timed editing request through the front-end interface, wherein the third timed editing request is used to instruct The first task is changed to a second task; a third timed task expression is generated according to the third timed editing request, and the first timed task expression is deleted, and the third timed task expression is used to indicate that the The second task is executed at the first moment; when the first moment arrives, the execution of the second task is triggered.
作为一个可选的实施方式,用户可以通过前端界面更改执行时间点所执行的任务。例如,初始设置为控制设备1在本周的早八点启动,晚八点关闭,用户可以在前端界面中对执行的任务进行修改进行更改,例如将控制设备在本周的早八点启动,晚八点关闭可以更改为将控制设备2在本周的早八点启动,晚八点关闭。可以通过触发选择控件的方式进行修改,也可以通过在编辑框内编辑更改后的时间进行修改。后台会根据更改后的执行任务的时间重新生成新的cron表达式,并删除原始的cron表达式。当时间到达时,运行新的cron表达式,在第一时刻到达时执行第二任务。As an optional implementation manner, the user can change the task executed at the execution time point through the front-end interface. For example, the initial setting is that the control device 1 starts at 8:00 in the morning and shuts down at 8:00 in the evening. The user can modify and change the executed tasks in the front-end interface, for example, start the control device at 8:00 in the morning this week. The 8:00 pm shutdown can be changed to start the control device 2 at 8:00 am and shut down at 8:00 pm this week. It can be modified by triggering the selection control, or by editing the changed time in the edit box. The background will regenerate a new cron expression based on the changed execution time of the task and delete the original cron expression. When the time arrives, run a new cron expression that executes the second task when the first time arrives.
可选地,所述方法还包括:在满足任务执行条件的情况下,当所述第一时刻到达时触发执行所述第一任务,所述第一定时编辑请求中还携带有所述任务执行条件。Optionally, the method further includes: triggering the execution of the first task when the first moment arrives under the condition that a task execution condition is satisfied, and the first timing editing request also carries the task execution condition.
作为一个可选的实施方式,可以设置执行任务的条件,执行任务的条件可以根据实际情况而定。例如,可以是数量、温度、湿度、浓度等。用户可以通过前端界面设置执行任务的条件。例如,当环境温度达到50摄氏度时控制设备在本周的早八点启动,晚八点关闭。As an optional implementation manner, conditions for executing the task may be set, and the conditions for executing the task may be determined according to the actual situation. For example, it can be quantity, temperature, humidity, concentration, etc. Users can set the conditions for executing tasks through the front-end interface. For example, when the ambient temperature reaches 50 degrees Celsius, the control device starts at 8:00 am and shuts down at 8:00 pm this week.
可选地,在所述通过前端界面获取第一定时编辑请求之后,所述方法还包括:将所述第一时刻和所述第一任务关联存储在定时任务列表,所述定时任务列表中存储了N个任务,以及与每个任务对应的时刻,所述N个任务对应N个定时任务表达式,N为大于或等于1的整数。Optionally, after obtaining the first timed editing request through the front-end interface, the method further includes: storing the first moment and the first task in a timed task list in association, and storing the timed task list in the timed task list. N tasks, and the 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.
作为一个可选的实施方式,定时任务列表中存储了各个时间以及与各个时间相对应的任务,例如,早八点启动设备1,晚八点关闭设备1;早十点控制设备2输出的温度为22摄氏度,晚六点关闭设备2的输出温度为27摄氏度。用户在前端设置的时间点和任务均存储于该定时任务列表中,后台可以根据该定时任务列表中的时间和相应的任务生成相应的cron表达式。定时任务列表中存储了N个任务,N的数值可以根据实际情况而定,例如100、1000、10000等,N个任务对应于N个cron表达式。在本实施例中一个任务可以对应于一个时间点也可以对应于多个时间点。例如, 控制设备在本周的早八点启动,晚八点关闭可以是两个任务,早八点启动对应于任务1,晚八点关闭对应于任务2。控制设备在本周的早八点启动,晚八点关闭也可以是一个任务,该任务中包括两个时间点早八点和晚八点。As an optional implementation manner, each time and a task corresponding to each time are stored in the timed task list, for example, start the device 1 at 8:00 in the morning and turn off the device 1 at 8:00 in the evening; control the temperature output by the device 2 at 10:00 in the morning It is 22 degrees Celsius, and the output temperature of turning off device 2 at 6 pm is 27 degrees Celsius. The time points and tasks set by the user on the front end are stored in the scheduled task list, and the background can generate corresponding cron expressions according to the time and corresponding tasks in the scheduled task list. N tasks are stored in the scheduled task list. The value of N can be determined according to the actual situation, such as 100, 1000, 10000, etc. N tasks correspond to N cron expressions. In this embodiment, one task may correspond to one time point or may correspond to multiple time points. For example, starting the control device at 8:00 in the morning and shutting it down at 8:00 pm may be two tasks. It can also be a task to start the control device at 8:00 in the morning and turn it off at 8:00 pm this week, and the task includes two time points: 8:00 am and 8:00 pm.
可选地,所述方法还包括:在所述根据所述第一定时编辑请求生成第一定时任务表达式之后,在所述前端界面显示提示信息,其中,所述提示信息用于指示第一定时任务创建成功,所述第一定时任务用于指示在所述第一时刻执行所述第一任务;在所述当所述第一时刻到达时触发执行第一任务之后,在所述前端界面显示执行结果,所述执行结果用户指示在所述第一时刻对所述第一任务的执行结果。Optionally, the method further includes: after generating the first timed task expression according to the first timed editing request, displaying prompt information on the front-end interface, wherein the prompt information is used to indicate the first timed task expression. The timed task is successfully created, and the first timed task is used to instruct the execution of the first task at the first moment; after the execution of the first task is triggered when the first moment arrives, the front-end interface The execution result is displayed, and the execution result indicates the execution result of the first task at the first moment by the user.
作为一个可选的实施方式,在生成定时表达式成功创建第一定时任务后,可以在显示界面中显示第一定时任务成功创建的提示信息,例如,“控制设备将在本周的早八点启动,晚八点关闭”,或“控制设备在本周的早八点启动,晚八点关闭的任务已创建成功”。本实施例通过在显示界面显示提示信息可以达到提示用户已成功创建的任务。As an optional implementation manner, after the timing expression is generated and the first timing task is successfully created, a prompt message indicating that the first timing task is successfully created may be displayed on the display interface, for example, "The control device will Start, shut down at 8:00 pm", or "The task that the control device starts at 8:00 am this week and shuts down at 8:00 pm has been created successfully". In this embodiment, the task of prompting the user to be successfully created can be achieved by displaying prompt information on the display interface.
作为一个可选的实施方式,在通过运行cron表达式触发执行的第一任务成功执行后,在显示界面中显示第一任务的执行结果。例如“控制设备将在本周的早八点启动,晚八点关闭”定时任务执行结束后,在显示界面显示“设备早八点启动,晚八点关闭”提示信息,以供用户在通过显示界面显示的信息及时了解设备的任务执行状态。As an optional implementation manner, after the first task triggered to be executed by running the cron expression is successfully executed, the execution result of the first task is displayed on the display interface. For example, “The control device will start at 8:00 am and close at 8:00 pm this week” after the execution of the scheduled task, the prompt message “The device will start at 8:00 am and close at 8:00 pm” will be displayed on the display interface for the user to pass the display The information displayed on the interface can timely understand the task execution status of the device.
下面通过一个具体实施例说明本申请,图3是根据本发明一个可选实施例的系统模块图,图4是根据本发明一个可选实施例的流程示意图,可以包括如下步骤:The present application is described below through a specific embodiment. FIG. 3 is a system module diagram according to an optional embodiment of the present invention, and FIG. 4 is a schematic flowchart according to an optional embodiment of the present invention, which may include the following steps:
步骤S1,准备阶段,在后台定义各个参数,可以包括:定义启动线程;定义获取定时任务列表的方法;定义时间要求转换为cron表达式的算法;定义触发器;定义要执行的任务。Step S1, in the preparation stage, define various parameters in the background, which may include: defining a startup thread; defining a method for obtaining a list of timed tasks; defining an algorithm for converting time requirements into cron expressions; defining triggers; defining tasks to be executed.
步骤S2,执行阶段,用户在前端界面设置时间和对应的任务,将时间和相应的任务存储到定时任务列表,将定时任务列表传输到后台。后台 启动线程,获取定时任务列表,根据任务时间要求通过算法获得对应的N个cron表达式,加入到触发器中,将要执行的任务进行挂钩,系统自动判定达到要求后自动执行;Step S2, in the execution stage, the user sets the time and the corresponding task on the front-end interface, stores the time and the corresponding task in the timed task list, and transmits the timed task list to the background. The background starts the thread, obtains the list of timed tasks, obtains the corresponding N cron expressions through the algorithm according to the task time requirements, adds them to the trigger, hooks the tasks to be executed, and the system automatically determines that the requirements are met and executed automatically;
步骤S3,变更阶段,用户可以通过前端界面对时间和/或任务进行修改,例如可以变更时间或任务,可以添加新的时间和/或任务,可以删除时间和/或任务。将变更后的时间、任务存储到定时任务列表。后台获取新的获取定时任务列表,根据任务时间要求通过算法获得新的N个cron表达式,加入到触发器中,将要执行的任务进行挂钩,系统自动判定达到要求后自动执行。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, new time and/or task can be added, and time and/or task can be deleted. Store the changed time and task in the scheduled task list. The background obtains a new acquisition timed task list, obtains new N cron expressions through the algorithm according to the task time requirements, adds them to the trigger, hooks the tasks to be executed, and the system automatically determines that the requirements are met and executed automatically.
在本实施例中还包括服务器前后端系统,通过B/S或C/S架构,前端界面用于满足客户定时任务的编辑需求;后端响应前端发送过来用户请求,根据用户请求生成对应的定时任务,更新触发条件和任务指令,自动触发执行。本申请可以定义多个线程、多类任务触发、多种任务执行条件,可以供用户可以通过前端界面灵活多变的订制定时任务事件,所有的设置在前端页面即可完成,适用界面对用户友好。后台可以根据用户在前端设备的任务事件生成相应的cron表达式。任务定义成功后可以及时反馈到显示界面,任务成功执行后也可以及时反馈到显示界面。用户可以通过前端界面及时了解所定义的各个任务,以及各个任务的执行情况。This embodiment also includes server front-end and back-end systems. Through the B/S or C/S architecture, the front-end interface is used to meet the editing requirements of the client's scheduled tasks; the back-end responds to the user request sent by the front-end, and generates corresponding timing according to the user request. Tasks, update trigger conditions and task instructions, and automatically trigger execution. This application can define multiple threads, multiple types of task triggers, and multiple task execution conditions, allowing users to flexibly customize scheduled task events through the front-end interface. All settings can be completed on the front-end page. friendly. The background can generate corresponding cron expressions according to the user's task events on the front-end device. After the task is successfully defined, it can be fed back to the display interface in time, and after the task is successfully executed, it can also be fed back to the display interface in time. The user can know the defined tasks and the implementation of each task in time through the front-end interface.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
在本实施例中还提供了一种任务的执行装置,该装置用于实现上述实 施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a task execution device is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
图5是根据本发明实施例的任务的执行装置的结构框图,如图5所示,该装置包括:第一获取模块52,设置为通过前端界面获取第一定时编辑请求,其中,所述第一定时编辑请求携带有第一时刻和第一任务;第一生成模块54,设置为根据所述第一定时编辑请求生成第一定时任务表达式,所述第一定时任务表达式用于指示在所述第一时刻执行所述第一任务;第一执行模块56,设置为当所述第一时刻到达时触发执行所述第一任务。5 is a structural block diagram of an apparatus for executing tasks according to an embodiment of the present invention. As shown in FIG. 5 , the apparatus includes: a first obtaining module 52 configured to obtain a first timing editing request through a front-end interface, wherein the first obtaining module 52 A certain timed editing request carries a first moment and a first task; the first generation module 54 is configured to generate a first timed task expression according to the first timed editing request, and the first timed task expression is used to indicate that the The first task is executed at the first moment; the first execution module 56 is configured to trigger the execution of the first task when the first moment arrives.
可选地,所述装置还包括:第二获取模块,设置为在所述通过前端界面获取第一定时编辑请求之后,通过所述前端界面获取第二定时编辑请求,其中,所述第二定时编辑请求用于指示将所述第一时刻变更为第二时刻;第二生成模块,设置为根据所述第二定时编辑请求生成第二定时任务表达式,并删除所述第一定时任务表达式,所述第二定时任务表达式用于指示在所述第二时刻执行所述第一任务;第二执行模块,设置为当所述第二时刻到达时触发执行所述第一任务。Optionally, the device further includes: a second obtaining module, configured to obtain a second timing editing request through the front-end interface after obtaining the first timing editing request through the front-end interface, wherein the second timing editing request is The editing request is used to instruct to change the first time to the second time; the second generation module is configured to generate a second timed task expression according to the second timed editing request, and delete the first timed task expression , the second timing task expression is used to instruct the execution of the first task at the second moment; the second execution module is configured to trigger the execution of the first task when the second moment arrives.
可选地,上述装置还设置为在所述通过前端界面获取第一定时编辑请求之后,通过所述前端界面获取第三定时编辑请求,其中,所述第三定时编辑请求用于指示将所述第一任务变更为第二任务;根据所述第三定时编辑请求生成第三定时任务表达式,并删除所述第一定时任务表达式,所述第三定时任务表达式用于指示在所述第一时刻执行所述第二任务;当所述第一时刻到达时触发执行所述第二任务。Optionally, the above-mentioned apparatus is further configured to obtain a third timed editing request through the front-end interface after obtaining the first timed editing request through the front-end interface, wherein the third timed editing request is used to instruct the The first task is changed to a second task; a third timed task expression is generated according to the third timed editing request, and the first timed task expression is deleted, and the third timed task expression is used to indicate that in the The second task is executed at the first moment; when the first moment arrives, the execution of the second task is triggered.
可选地,上述装置还设置为在满足任务执行条件的情况下,当所述第一时刻到达时触发执行所述第一任务,所述第一定时编辑请求中还携带有所述任务执行条件。Optionally, the above-mentioned device is further configured to trigger the execution of the first task when the first moment arrives when the task execution conditions are met, and the first timing editing request also carries the task execution conditions. .
可选地,上述装置还设置为在所述通过前端界面获取第一定时编辑请 求之后,将所述第一时刻和所述第一任务关联存储在定时任务列表,所述定时任务列表中存储了N个任务,以及与每个任务对应的时刻,所述N个任务对应N个定时任务表达式,N为大于或等于1的整数。Optionally, the above-mentioned device is further configured to store the first moment and the first task in a timed task list in association with the timed task list after obtaining the first timed editing request through the front-end interface. N tasks, and the 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 above-mentioned apparatus is further configured to display prompt information on the front-end interface after the first timing task expression is generated according to the first timing editing request, wherein the prompt information is used to indicate the first timing. The task is created successfully, and the first timed task is used to instruct the execution of the first task at the first moment; after the execution of the first task is triggered when the first moment arrives, it is displayed on the front-end interface An execution result, where the user indicates the execution result of the first task at the first moment.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above modules can be implemented by software or hardware, and the latter can be implemented in the following ways, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination The forms are located in different processors.
本发明的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。An embodiment of the present invention further provides a storage medium, where a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for executing the following steps:
S1,通过前端界面获取第一定时编辑请求,其中,所述第一定时编辑请求携带有第一时刻和第一任务;S1, obtaining a first timed editing request through a front-end interface, wherein the first timed editing request carries a first moment and a first task;
S2,根据所述第一定时编辑请求生成第一定时任务表达式,所述第一定时任务表达式用于指示在所述第一时刻执行所述第一任务;S2, generating a first timed task expression according to the first timed editing request, where the first timed task expression is used to instruct to execute the first task at the first moment;
S3,当所述第一时刻到达时触发执行所述第一任务。S3, triggering the execution of the first task when the first moment arrives.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), Various media that can store computer programs, such as removable hard disks, magnetic disks, or optical disks.
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存 储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
S1,通过前端界面获取第一定时编辑请求,其中,所述第一定时编辑请求携带有第一时刻和第一任务;S1, obtaining a first timed editing request through a front-end interface, wherein the first timed editing request carries a first moment and a first task;
S2,根据所述第一定时编辑请求生成第一定时任务表达式,所述第一定时任务表达式用于指示在所述第一时刻执行所述第一任务;S2, generating a first timed task expression according to the first timed editing request, where the first timed task expression is used to instruct to execute the first task at the first moment;
S3,当所述第一时刻到达时触发执行所述第一任务。S3, triggering the execution of the first task when the first moment arrives.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not described herein again in this embodiment.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device and executed by the computing device, and in some cases, in a different order than here The steps shown or described are performed either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module. As such, the present invention is not limited to any particular combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included within the protection scope of the present invention.

Claims (10)

  1. 一种任务的执行方法,包括:A task execution method, including:
    通过前端界面获取第一定时编辑请求,其中,所述第一定时编辑请求携带有第一时刻和第一任务;Obtain a first timed editing request through a front-end interface, wherein the first timed editing request carries a first moment and a first task;
    根据所述第一定时编辑请求生成第一定时任务表达式,所述第一定时任务表达式用于指示在所述第一时刻执行所述第一任务;generating a first timed task expression according to the first timed editing request, where the first timed task expression is used to instruct to execute the first task at the first moment;
    当所述第一时刻到达时触发执行所述第一任务。The execution of the first task is triggered when the first moment arrives.
  2. 根据权利要求1所述的方法,其中,在所述通过前端界面获取第一定时编辑请求之后,所述方法还包括:The method according to claim 1, wherein after obtaining the first timed editing request through the front-end interface, the method further comprises:
    通过所述前端界面获取第二定时编辑请求,其中,所述第二定时编辑请求用于指示将所述第一时刻变更为第二时刻;Obtain a second timed editing request through the front-end interface, wherein the second timed editing request is used to instruct to change the first time to the second time;
    根据所述第二定时编辑请求生成第二定时任务表达式,并删除所述第一定时任务表达式,所述第二定时任务表达式用于指示在所述第二时刻执行所述第一任务;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 the execution of the first task at the second moment ;
    当所述第二时刻到达时触发执行所述第一任务。When the second moment arrives, the execution of the first task is triggered.
  3. 根据权利要求1所述的方法,其中,在所述通过前端界面获取第一定时编辑请求之后,所述方法还包括:The method according to claim 1, wherein after obtaining the first timed editing request through the front-end interface, the method further comprises:
    通过所述前端界面获取第三定时编辑请求,其中,所述第三定时编辑请求用于指示将所述第一任务变更为第二任务;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;
    根据所述第三定时编辑请求生成第三定时任务表达式,并删除所述第一定时任务表达式,所述第三定时任务表达式用于指示在所述第一时刻执行所述第二任务;Generate a third timed task expression according to the third timed editing request, and delete the first timed task expression, where the third timed task expression is used to instruct the execution of the second task at the first moment ;
    当所述第一时刻到达时触发执行所述第二任务。When the first moment arrives, the execution of the second task is triggered.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    在满足任务执行条件的情况下,当所述第一时刻到达时触发执行所述第一任务,所述第一定时编辑请求中还携带有所述任务执行条件。In the case that the task execution condition is satisfied, the execution of the first task is triggered when the first time arrives, and the first timing editing request further carries the task execution condition.
  5. 根据权利要求1所述的方法,其中,在所述通过前端界面获取第一定时编辑请求之后,所述方法还包括:The method according to claim 1, wherein after obtaining the first timed editing request through the front-end interface, the method further comprises:
    将所述第一时刻和所述第一任务关联存储在定时任务列表,所述定时任务列表中存储了N个任务,以及与每个任务对应的时刻,所述N个任务对应N个定时任务表达式,N为大于或等于1的整数。The first time and the first task are associated and stored in a timed task list, where N tasks are stored in the timed task list, and the time corresponding to each task, and the N tasks correspond to N timed tasks expression, where N is an integer greater than or equal to 1.
  6. 根据权利要求1至5任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    在所述根据所述第一定时编辑请求生成第一定时任务表达式之后,在所述前端界面显示提示信息,其中,所述提示信息用于指示第一定时任务创建成功,所述第一定时任务用于指示在所述第一时刻执行所述第一任务;After the first timed task expression is generated according to the first timed editing request, prompt information is displayed on the front-end interface, where the prompt information is used to indicate that the first timed task is successfully created, and the first timed task is successfully created. The task is used to instruct to execute the first task at the first moment;
    在所述当所述第一时刻到达时触发执行第一任务之后,在所述前端界面显示执行结果,所述执行结果用户指示在所述第一时刻对所述第一任务的执行结果。After the execution of the first task is triggered when the first moment arrives, an execution result is displayed on the front-end interface, and the execution result user indicates the execution result of the first task at the first moment.
  7. 一种任务的执行装置,包括:A task execution device, comprising:
    第一获取模块,设置为通过前端界面获取第一定时编辑请求,其中,所述第一定时编辑请求携带有第一时刻和第一任务;a first obtaining module, configured to obtain a first timed editing request through a front-end interface, wherein the first timed editing request carries a first moment and a first task;
    第一生成模块,设置为根据所述第一定时编辑请求生成第一定时任务表达式,所述第一定时任务表达式用于指示在所述第一时刻执行所述第一任务;a first generation 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 instruct to execute the first task at the first moment;
    第一执行模块,设置为当所述第一时刻到达时触发执行所述第一任务。A first execution module, configured to trigger execution of the first task when the first moment arrives.
  8. 根据权利要求7所述的装置,其中,所述装置还包括:The apparatus of claim 7, wherein the apparatus further comprises:
    第二获取模块,设置为在所述通过前端界面获取第一定时编辑请求之后,通过所述前端界面获取第二定时编辑请求,其中,所述第二定时编辑请求用于指示将所述第一时刻变更为第二时刻;The second obtaining module is configured to obtain a second timed editing request through the front-end interface after obtaining the first timed editing request through the front-end interface, wherein the second timed editing request is used to instruct the first timed editing request to be The time is changed to the second time;
    第二生成模块,设置为根据所述第二定时编辑请求生成第二定时任务表达式,并删除所述第一定时任务表达式,所述第二定时任务表达式用于指示在所述第二时刻执行所述第一任务;The second generation module is configured to generate a second timed task expression according to the second timed editing request, and delete the first timed task expression, the second timed task expression is used to indicate that the second timed task expression is used in the second timed task expression executing the first task at all times;
    第二执行模块,设置为当所述第二时刻到达时触发执行所述第一任务。The second execution module is configured to trigger execution of the first task when the second moment arrives.
  9. 一种存储介质,所述存储介质中存储有计算机程序,其中,所述程序可被终端设备或计算机运行时执行所述权利要求1至6任一项中所述的方法。A storage medium storing a computer program in the storage medium, wherein the program can be executed by a terminal device or a computer to execute the method described in any one of claims 1 to 6.
  10. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至6任一项中所述的方法。An electronic device comprising a memory and a processor with a computer program stored in the memory, the processor being arranged to run the computer program to perform the method of any one of claims 1 to 6.
PCT/CN2021/092820 2020-07-16 2021-05-10 Task execution method and device, storage medium and electronic device WO2022012127A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010688674.0 2020-07-16
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
WO2022012127A1 true WO2022012127A1 (en) 2022-01-20

Family

ID=72923553

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (1)

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

Citations (5)

* 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
CN109408322A (en) * 2018-09-05 2019-03-01 无锡华云数据技术服务有限公司 A kind of automatic business process implementation method of cloud platform
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162343A (en) * 2015-03-25 2016-11-23 中兴通讯股份有限公司 Interface processing method, Apparatus and system
CN105786767A (en) * 2016-03-11 2016-07-20 珠海格力电器股份有限公司 Data processing method and device for calculator application
CN106445669A (en) * 2016-09-28 2017-02-22 维沃移动通信有限公司 Task processing method of application program and mobile terminal

Patent Citations (5)

* 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
CN109408322A (en) * 2018-09-05 2019-03-01 无锡华云数据技术服务有限公司 A kind of automatic business process implementation method of cloud platform
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

Also Published As

Publication number Publication date
CN111831380A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
WO2020140683A1 (en) Task scheduling method and apparatus, computer device, and storage medium
US10951542B2 (en) Method for managing operational schedules of cloud-based systems
CN106557363A (en) A kind of system and method for big data task scheduling
CN109582466A (en) A kind of timed task executes method, distributed server cluster and electronic equipment
CN107241380B (en) Method and apparatus for time-based adjusted load balancing
WO2020233058A1 (en) Code download method and apparatus, and electronic device and computer storage medium
CN111581115B (en) File processing method and device, storage medium, processor and electronic device
US10609534B2 (en) Feed service engine
CN110347494B (en) Context information management method, device, system and computer readable storage medium
WO2015043407A1 (en) Method, system, and apparatus for online service inspection
TW201814609A (en) Information pushing
WO2022012127A1 (en) Task execution method and device, storage medium and electronic device
CN110764894A (en) Timed task management method, device, equipment and storage medium
CN108897557A (en) The update method and device of micro services framework
CN111026530A (en) Task scheduling method and device, computer equipment and storage medium
WO2021226781A1 (en) Firewall rule updating method and apparatus, server, and storage medium
CN111581113B (en) File updating method and device, storage medium, processor and electronic device
CN114546588A (en) Task deployment method and device, storage medium and electronic device
CN113938391A (en) Network distribution method and system for gateway equipment and electronic equipment
CN113867852B (en) Information display method, device and equipment for service demands and storage medium
CN109086115B (en) Android animation execution method, device, terminal and readable medium
CN112379934B (en) Deployment method and device of cloud computing platform and storage medium
CN114281563A (en) Application program reconstruction method and device
CN112367205A (en) Processing method and scheduling system for HTTP scheduling request
WO2016206437A1 (en) Rom package generation method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21843370

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21843370

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21843370

Country of ref document: EP

Kind code of ref document: A1