A task triggering method, device, equipment and computer readable storage medium
The task triggering method optimizes task scheduling by configuring multiple scheduled tasks based on concurrent execution limits, ensuring timely execution and efficient resource use.
Patent Information
- Application Number
- CN202011285399.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-17
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2040-11-17
AI Technical Summary
Existing methods for scheduling tasks require additional threads, timers, or timers, which are inefficient and limited in their scalability and resource utilization, and they do not address the need for a more efficient and resource-saving method.
A task triggering method that configures multiple scheduled tasks based on the maximum number of concurrently executed tasks, allowing tasks to be associated with different times, and determines a target scheduled task for execution, ensuring timely execution while minimizing resource usage.
The method ensures timely execution of tasks without additional threads or timers, improves the reuse rate of scheduled tasks, and optimizes resource utilization by associating tasks with specific execution times.
Smart Images

Figure CN112433832B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automation control technology, and relates to but is not limited to a task triggering method, device, equipment and computer-readable storage medium. Background Art
[0002] In daily needs, we often need to create some special tasks in advance to perform specified operations at a certain point in the future. In order to enable these special tasks to be fully automated, designers set the special task trigger time, and the system monitors the system time in real time. When the trigger time is reached, the special task can be automatically triggered to start the corresponding operation without human control.
[0003] In the related art, the system determines whether the special task trigger time has been reached, mainly in the following ways: using a thread to scan the special task trigger time, using a scheduled task to scan the special task trigger time, and using a timer to time the special task trigger time. The special task triggering method in the related art either requires an additional thread to be maintained, consuming machine resources, there is a time difference between the special task trigger time and the actual execution time, or a special task occupies a timer, the number of special tasks to be executed is limited by the number of timers, and there is a defect that the timer cannot be reused. Summary of the invention
[0004] In view of this, embodiments of the present application provide a task triggering method, apparatus, device, and computer-readable storage medium.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present application provides a task triggering method, the method comprising:
[0007] Configure multiple scheduled tasks based on the maximum number of concurrently executed tasks obtained, wherein the scheduled tasks can be associated with different tasks at different times;
[0008] In response to a first instruction for creating a task, creating a first task, wherein the first instruction carries an execution time of the first task;
[0009] Based on the first task, determining a target scheduled task from the multiple scheduled tasks, wherein the target scheduled task is not associated with a task at the execution time;
[0010] The first task is associated with the target scheduled task, so that the first task is executed when the target scheduled task is triggered and the triggering time is the execution time.
[0011] In some embodiments, in response to the first instruction to create a task, creating the first task includes:
[0012] receiving a first instruction for creating a task;
[0013] Parse the first instruction to obtain a first execution time and a first duration;
[0014] A first task is created based on the first execution time and the first duration, where the first execution time is the execution time of the first task and the first duration is the execution duration of the first task.
[0015] In some embodiments, determining a target scheduled task from the plurality of scheduled tasks based on the first task includes:
[0016] Determine a time segment value of the first task according to the first execution time and the first duration;
[0017] Determine at least one candidate scheduled task based on the time segment value and the identification information of the multiple scheduled tasks;
[0018] Obtaining occupancy information of each time segment corresponding to the at least one candidate scheduled task;
[0019] A target scheduled task is determined from the at least one candidate scheduled task based on the occupancy information.
[0020] In some embodiments, the occupancy information includes an idle state and an occupied state;
[0021] The determining a target scheduled task from the candidate scheduled tasks based on the occupancy information includes:
[0022] Finding an idle candidate scheduled task from the at least one candidate scheduled task, wherein the occupancy information of the idle candidate scheduled task in the time segment corresponding to the first execution time is an idle state;
[0023] The idle candidate scheduled task is determined as the target scheduled task.
[0024] In some embodiments, the method further comprises:
[0025] If no idle candidate scheduled task is found from the at least one candidate scheduled task, determining that there is no target scheduled task;
[0026] updating the first execution time according to a set rule to modify the execution time of the first task; and / or,
[0027] Sending a prompt message, wherein the prompt message is used to prompt updating of the execution time of the first task, and / or the prompt message is used to prompt updating of the maximum number of concurrently executed tasks.
[0028] In some embodiments, the method further comprises:
[0029] When the system time reaches the trigger time of the target scheduled task, the target scheduled task is triggered, and the trigger time of the target scheduled task is updated.
[0030] In some embodiments, updating the trigger time of the target scheduled task includes:
[0031] Obtain all unexecuted tasks associated with the target scheduled task;
[0032] Obtain the execution time of all the unexecuted tasks;
[0033] The earliest execution time among the execution times of all the unexecuted tasks is determined as the triggering time of the target scheduled task.
[0034] In some embodiments, configuring multiple scheduled tasks based on the acquired maximum number of concurrently executed tasks includes:
[0035] Get the maximum number of concurrently executed tasks;
[0036] Determine the number of configuration tasks based on the maximum number of concurrently executed tasks and a preset configuration rule;
[0037] Based on the number of configured tasks, multiple scheduled tasks are configured.
[0038] The present application provides a task triggering device, the device comprising:
[0039] A configuration module, used to configure multiple scheduled tasks based on the obtained maximum number of concurrently executed tasks, wherein the scheduled tasks can be associated with different tasks at different times;
[0040] Creating a model, used to create a first task in response to a first instruction for creating a task, wherein the first instruction carries an execution time of the first task;
[0041] A determination module, configured to determine a target scheduled task from among the plurality of scheduled tasks based on the first task, wherein the target scheduled task is not associated with a task at the execution time;
[0042] An associating module is used to associate the first task with the target scheduled task, so that the first task is executed when the target scheduled task is triggered and the triggering time is the execution time.
[0043] The present application provides a task triggering device, including:
[0044] Processor; and
[0045] a memory for storing a computer program executable on the processor;
[0046] Wherein, when the computer program is executed by the processor, the steps of the above-mentioned task triggering method are implemented.
[0047] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the steps of the above-mentioned task triggering method.
[0048] The embodiment of the present application provides a task triggering method, apparatus, device and computer-readable storage medium, wherein the method includes: configuring multiple scheduled tasks based on the maximum number of concurrently executed tasks obtained, wherein the scheduled tasks can be associated with different tasks at different times; creating a first task in response to a first instruction to create a task, wherein the first instruction carries the execution time of the first task; determining a target scheduled task among the multiple scheduled tasks based on the first task, wherein the target scheduled task is not associated with a task at the execution time; associating the first task with the target scheduled task, so as to execute the first task when the target scheduled task is triggered and the trigger time is the execution time. In this way, it can ensure that the first task is executed on time at the configured execution time point, and at the same time, a small number of scheduled tasks can be used to support the configuration of a large number of tasks to be executed, which can improve the reuse rate of scheduled tasks, and only when the execution time of the first task is reached, the scheduled task will be triggered to execute the first task, thereby saving system resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views.The drawings generally illustrate, by way of example and not limitation, various embodiments discussed herein.
[0050] Figure 1 A schematic diagram of an implementation flow of a task triggering method provided in an embodiment of the present application;
[0051] Figure 2 A schematic diagram of another implementation flow of the task triggering method provided in an embodiment of the present application;
[0052] Figure 3 A schematic diagram of another implementation flow of the task triggering method provided in the embodiment of the present application;
[0053] Figure 4 A schematic diagram of the implementation flow of allocating a scheduled task to a special task in the task triggering method provided in an embodiment of the present application;
[0054] Figure 5A schematic diagram of the process of triggering and executing a scheduled task in the task triggering method provided in an embodiment of the present application;
[0055] Figure 6 A schematic diagram of the structure of a task triggering device provided in an embodiment of the present application;
[0056] Figure 7 A schematic diagram of the composition structure of a task triggering device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0058] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0059] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0061] In order to better understand the embodiments of the present application, the task triggering method in the related art and its existing shortcomings are first described.
[0062] In related technologies, the system determines whether the special task trigger time has been reached, mainly in the following ways:
[0063] 1) Use threads to scan the trigger time of special tasks: During the running of the application, a thread is permanently executed to continuously poll the trigger time of special tasks, and the corresponding operation is performed when the trigger time is reached. In this way, the application needs to maintain an additional thread, which consumes machine resources; and the special task can only be triggered when the trigger time configured for the special task is earlier than the current polling time, resulting in a time difference between the trigger time of the special task and the actual execution time.
[0064] 2) Use a scheduled task to scan the trigger time of a special task: Configure a scheduled task to poll the trigger time of the special task at a specific frequency, and execute the corresponding operation when the trigger time is reached. In this way, the special task can only be executed when the trigger time is earlier than the scheduled task, and there is still a time difference between the special task trigger time and the actual execution time.
[0065] 3) Use timer: When creating a special task, assign a timer to the special task, set the trigger time of the timer to the special task trigger time, and execute the operation corresponding to the special task when the timer reaches the trigger time. In this way, when the special task trigger time arrives, it will be executed immediately, without time difference and resource waste, but one special task occupies one timer, and the number of special tasks to be executed is limited by the number of timers, resulting in the inability to reuse the timer.
[0066] Based on the above problems, an embodiment of the present application provides a task triggering method, which is applied to a task triggering device. The method provided by the embodiment of the present application can be implemented by a computer program, and when the computer program is executed, each step in the task triggering method provided by the embodiment of the present application is completed. In some embodiments, the computer program can be executed by a processor in a task triggering device. Figure 1 A schematic diagram of an implementation flow of the task triggering method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the task triggering method includes the following steps:
[0067] Step S101, configuring multiple scheduled tasks based on the acquired maximum number of concurrently executed tasks.
[0068] Here, the scheduled task can be associated with different tasks at different times.
[0069] When users need to create some special tasks in advance to perform specified operations at a certain time point in the future, in order to enable such special tasks to be fully automatically executed, in the embodiment of the present application, multiple scheduled tasks are configured for such special tasks, and the scheduled task trigger time is set to the execution time of the special task. When the trigger time of the scheduled task is reached, the scheduled task is triggered, and at this time, the specified operation corresponding to the special task begins to be executed, which can ensure that the special task is executed on time when the execution time arrives, there is no time difference, and there is no need to maintain additional threads, saving system resources.
[0070] In the embodiment of the present application, in order to realize the reuse of the scheduled task, the scheduled task is associated with different special tasks at different times. For example, at 12 o'clock, it is associated with a special task with an execution time of 12 o'clock, at 14 o'clock, it is associated with another special task with an execution time of 14 o'clock, and at 15 o'clock, it is associated with another special task with an execution time of 15 o'clock, so that multiple special tasks with different execution times are associated with the same scheduled task at different times, so that the scheduled task is effectively reused, which can improve the reuse rate of the scheduled task.
[0071] When there are too many scheduled tasks configured, it will cause waste and increase the system monitoring overhead. However, when there are too few scheduled tasks configured, there is a situation where multiple special tasks cannot be executed concurrently. Based on this, in the embodiment of the present application, based on the historical data of the application, the maximum number of concurrently executed tasks is estimated in advance, that is, the maximum number of tasks that may be executed simultaneously in the same time period is obtained, and the maximum number of concurrently executed tasks is obtained. Then, based on the obtained maximum number of concurrently executed tasks, the number of configured scheduled tasks is determined.
[0072] Step S102: creating a first task in response to a first instruction for creating a task.
[0073] Here, the first instruction carries the execution time of the first task.
[0074] When the user needs to create a new special task (ie, a first task) for performing a specified operation at a certain time point in the future, the first task is created based on the information carried in the received first instruction for creating the task.
[0075] For example, the current time is August 28, 2020, and the user wants to issue coupons to designated special users at 12:00 on September 1, 2020. The execution time of the first task created is 12:00:00 on September 1, 2020 (that is, "a certain time point in the future"), and the designated operation to be performed is issuing coupons (that is, "designated operation"). When the system time reaches the execution time of the first task, the first task is automatically triggered to perform the designated operation.
[0076] Step S103: Based on the first task, determine a target scheduled task from the multiple scheduled tasks.
[0077] Here, the target scheduled task is not associated with a task at the execution time. Since when a scheduled task is triggered at the trigger time, if the trigger time is associated with multiple tasks at the same time, it cannot be ensured that the multiple tasks are executed at the same time, and the actual execution time of some tasks must be later than the set execution time, resulting in the inability to execute these tasks on time. In order to solve this problem, in the embodiment of the present application, a scheduled task is only associated with one special task in the same time segment, that is, the target scheduled task determined among multiple scheduled tasks, and is not associated with other tasks at the execution time of the first task.
[0078] Step S104: Associating the first task with the target scheduled task.
[0079] An association relationship is established between the first task and the target scheduled task, so that when the target scheduled task is triggered and the triggering time is the execution time, the first task is executed.
[0080] Still using the above example, multiple scheduled tasks are initialized and configured in step S101. After the first task is created in step S102, it is necessary to determine a target scheduled task among the multiple scheduled tasks. The target scheduled task is not associated with other tasks at 12:00:00 on September 1, 2020. After the target scheduled task is determined, the target scheduled task is associated with the first task, specifically at the execution time of the first task (i.e., 12:00:00 on September 1, 2020). When the system time reaches the execution time of the first task, the target scheduled task is triggered and the first task begins to execute.
[0081] The task triggering method provided in the embodiment of the present application configures multiple scheduled tasks based on the maximum number of concurrently executed tasks obtained, and the scheduled tasks can be associated with different tasks at different times; in response to a first instruction to create a task, a first task is created, and the first instruction carries the execution time of the first task; based on the first task, a target scheduled task is determined among the multiple scheduled tasks, and the target scheduled task is not associated with a task at the execution time; the first task is associated with the target scheduled task, so that the first task is executed when the target scheduled task is triggered and the trigger time is the execution time. In this way, it can not only ensure that the first task is executed on time at the configured execution time point, but also use a small number of scheduled tasks to support the configuration of a large number of tasks to be executed, which can improve the reuse rate of scheduled tasks, and only when the execution time of the first task is reached, will the scheduled task be triggered to execute the first task, so as to save system resources.
[0082] In some embodiments, Figure 1 In the illustrated embodiment, step S101 “configuring multiple scheduled tasks based on the acquired maximum number of concurrently executed tasks” can be implemented by the following steps:
[0083] Step S1011, obtaining the maximum number of concurrently executed tasks.
[0084] In an embodiment of the present application, a user can send an estimated result to a task triggering device based on historical data or an estimated number of tasks that may be executed concurrently in the same time segment, and the task triggering device obtains the maximum number of concurrently executed tasks.
[0085] Step S1012: determining the number of configuration tasks based on the maximum number of concurrently executed tasks and preset configuration rules.
[0086] The preset configuration rules can be determined by the user or set by the task triggering device. When too many scheduled tasks are configured, some scheduled tasks that exceed the maximum number of concurrently executed tasks will never have any tasks associated with them, resulting in waste; and when too few scheduled tasks are configured, when the actual number of concurrently executed tasks exceeds the number of scheduled tasks, the tasks that exceed the number of scheduled tasks cannot be executed on time.
[0087] In the embodiment of the present application, the configuration rule can be set so that the number of scheduled tasks is twice the maximum number of concurrent special tasks expected to be executed in the same time segment, which can prevent conflicts caused by the task triggering time in the two time segments being too short. For example, if the maximum number of concurrently executed tasks obtained is 3, 6 scheduled tasks are configured.
[0088] Step S1013: configuring a plurality of scheduled tasks based on the configured number of tasks.
[0089] The task triggering method provided in the embodiment of the present application configures multiple scheduled tasks based on the obtained maximum number of concurrently executed tasks and preset configuration rules. While ensuring that the tasks can be executed concurrently to the maximum extent, it ensures that fewer system resources are wasted and can prevent conflicts from occurring due to the task triggering times in adjacent time segments being too short apart.
[0090] In some embodiments, Figure 1 In the illustrated embodiment, step S102 “creating a first task in response to a first instruction to create a task” can be implemented by the following steps:
[0091] Step S1021: receiving a first instruction for creating a task.
[0092] When the user needs to execute the first task at a certain time point in the future, an instruction for creating the first task is sent to the task triggering device. The instruction carries information about the first task to be created. The information about the first task to be created includes at least information such as the execution time and execution duration of the first task.
[0093] Step S1022: parse the first instruction to obtain a first execution time and a first duration.
[0094] After receiving the first instruction, the task triggering device parses it to obtain a first execution time and a first duration, where the first execution time and the first duration correspond to the execution time and the execution duration of the first task respectively.
[0095] Step S1023: Create a first task based on the first execution time and the first duration.
[0096] The first execution time is the execution time of the first task, and the first duration is the execution duration of the first task. The task triggering device creates the first task based on the acquired first execution time and first duration.
[0097] In some embodiments, Figure 1 In the illustrated embodiment, step S103 “determining a target scheduled task from the plurality of scheduled tasks based on the first task” can be implemented by the following steps:
[0098] Step S1031: Determine a time segment value of the first task according to the first execution time and the first duration.
[0099] Divide the execution time of the first task by the millisecond value of the timestamp corresponding to the execution time of the first task to obtain the execution time segment value of the first task. For example, the first task is a coupon issuance task, which issues coupons to a specified group of users, with an execution time of 2 minutes (120,000 milliseconds). The coupon issuance operation is set to be executed at 0:0:00 on March 8, 2020 (timestamp 1583625600000). The execution time segment value of this coupon issuance task is equal to the quotient obtained by dividing 1583625600000 by 120000, which is 13196880.
[0100] Step S1032: Determine at least one candidate scheduled task based on the time segment value and identification information of the multiple scheduled tasks.
[0101] When configuring multiple scheduled tasks, the multiple scheduled tasks are numbered at the same time, and the numbers of the scheduled tasks are determined as identification information of the scheduled tasks.
[0102] The multiple scheduled tasks configured in step S101 are numbered. In actual implementation, they can be numbered consecutively according to the sequence number to obtain multiple numbered scheduled tasks to distinguish the multiple scheduled tasks. For example, six scheduled tasks are numbered, and the numbered scheduled tasks obtained are scheduled task No. 1, scheduled task No. 2, ..., scheduled task No. 6.
[0103] In actual implementation, whether to use a scheduled task as a candidate can be determined based on the parity of the time segment value. When the time segment value is an odd number, the scheduled tasks with odd numbers are selected as candidate scheduled tasks; when the time segment value is an even number, the scheduled tasks with even numbers are selected as candidate scheduled tasks.
[0104] If the time segment value 13196880 is an even number, even-numbered scheduled tasks are selected from multiple scheduled tasks as candidate scheduled tasks. For example, if the 6 scheduled tasks are numbered 1 to 6, the selected candidate scheduled tasks are the 3 candidate scheduled tasks numbered 2, 4, and 6.
[0105] Step S1033: Obtain occupancy information of each time segment corresponding to the at least one candidate scheduled task.
[0106] The occupancy information includes idle state and occupied state. If the current scheduled task is associated with other tasks at 0:0:00 on March 8, 2020, the occupancy information of the time segment corresponding to the time is occupied; if the current scheduled task is not associated with other tasks at 0:0:00 on March 8, 2020, the occupancy information of the time segment corresponding to the time is idle.
[0107] Step S1034: determining a target scheduled task from the at least one candidate scheduled task based on the occupancy information.
[0108] A scheduled task can only be associated with one first task to be executed in the same time segment. Based on this, among at least one candidate scheduled task, a candidate scheduled task whose occupancy information is idle in the time segment corresponding to the execution time of the first task is selected as the target scheduled task, so that when the scheduled task is triggered at the execution time, the first task is executed, ensuring that the first task can be executed on time at the configured execution time point.
[0109] In some embodiments, the above step S1034 can be implemented through the following steps.
[0110] Step S0341: Find an idle candidate scheduled task from the at least one candidate scheduled task.
[0111] Among them, the occupancy information of the idle candidate scheduled task in the time segment corresponding to the first execution time is an idle state.
[0112] Step S0342: Determine the idle candidate scheduled task as the target scheduled task.
[0113] For example, if candidate scheduled task No. 4 is not associated with other tasks at 0:0:0:0 on March 8, 2020, candidate scheduled task No. 4 is determined as the target scheduled task.
[0114] In some embodiments, if no idle candidate scheduled task is found from the at least one candidate scheduled task, it is determined that there is no target scheduled task, and the steps can be performed: updating the first execution time according to the set rules to modify the execution time of the first task.
[0115] If among all the candidate scheduled tasks, there is no target scheduled task whose occupancy information of the time segment corresponding to the execution time of the first task is idle, it indicates that all current candidate scheduled tasks have been associated with tasks in the time segment corresponding to the execution time of the first task, and the maximum number of concurrent tasks has been reached. At this time, the task triggering device can automatically update the first execution time according to the set rules to modify the execution time of the first task, for example, updating March 8, 2020 0:0:00 to March 8, 2020 01:0:00.
[0116] In other embodiments, the user may be prompted that there is no target scheduled task, and the user may reset the execution time of the first task. At this time, the step of sending a prompt message may be performed, wherein the prompt message is used to prompt the user to update the execution time of the first task.
[0117] In some other embodiments, the user may be prompted that there is no target scheduled task, and the user may modify the maximum number of concurrently executed tasks. For example, the estimated maximum number of concurrently executed tasks is 3, and the user's estimated value is lower than the actual concurrent value. At this time, the maximum number of concurrently executed tasks may be modified to 5, and the number of scheduled tasks configured at 0:0:00 on March 8, 2020 is increased from the original 6 to 10. The first task can be associated with the fourth candidate scheduled task (i.e., candidate scheduled task No. 8), that is, candidate scheduled task No. 8 is determined to be the target scheduled task. At this time, the prompt information is used to prompt the modification of the maximum number of concurrently executed tasks.
[0118] In some other embodiments, the prompt information is used to prompt modification of the execution time of the first task and to prompt modification of the maximum number of concurrently executed tasks, and the user can choose to modify one of them independently.
[0119] In other embodiments, the task triggering device updates the first execution time according to the set rules, and then sends a prompt message that the first execution time has been modified. For example, the task triggering device modifies the task of issuing coupons set by the user at 0:0:00 on March 8, 2020 to be executed at 0:0:00 on March 8, 2020.
[0120] exist Figure 1 Based on the embodiment shown, the embodiment of the present application further provides a task triggering method. Figure 2Another implementation flow diagram of the task triggering method provided in the embodiment of the present application is as follows: Figure 2 As shown, the method comprises the following steps:
[0121] Step S201, configuring multiple scheduled tasks based on the acquired maximum number of concurrently executed tasks.
[0122] Here, the scheduled task can be associated with different tasks at different times.
[0123] Step S202: creating a first task in response to a first instruction for creating a task.
[0124] Here, the first instruction carries the execution time of the first task.
[0125] Step S203: determining a target scheduled task from among the multiple scheduled tasks based on the first task.
[0126] Here, the target scheduled task is not associated with a task at the execution time.
[0127] Step S204: Associating the first task with the target scheduled task.
[0128] An association relationship is established between the first task and the target scheduled task, so that when the target scheduled task is triggered and the triggering time is the execution time, the first task is executed.
[0129] For the implementation and effects of the above steps S201 to S204, see Figure 1 Description of steps S101 to S104 in the illustrated embodiment.
[0130] Step S205: When the system time reaches the trigger time of the target scheduled task, the target scheduled task is triggered.
[0131] After associating the first task with the target scheduled task, when the system time reaches the trigger time of the target timing, the target scheduled task is triggered, and the special task associated with the time segment corresponding to the system time of the target scheduled task is executed. If the trigger time is the execution time of the first task, the first task is executed.
[0132] For example, the target scheduled task is associated with the second task at 00:00:00 on March 7, 2020, and is associated with the first task at 00:00:00 on March 7, 2020. When the system time reaches 00:00:00 on March 7, 2020, the target scheduled task is triggered, and the second task is executed at this time; when the system time reaches 00:00:00 on March 7, 2020, the target scheduled task is triggered again, and the first task is executed at this time.
[0133] Step S206, updating the triggering time of the target scheduled task.
[0134] After the target scheduled task is triggered, the trigger time of the target scheduled task is updated according to the unexecuted tasks associated with the target scheduled task. For example, the target scheduled task is associated with the third task at 0:0:00 on March 9, 2020. When the system time reaches 0:0:00 on March 7, 2020, the target scheduled task is triggered again, and the trigger time of the target scheduled task is updated to the execution time of the next task to be executed (such as the third task) at 0:0:00 on March 9, 2020.
[0135] In some embodiments, Figure 2 Step S206 in the illustrated embodiment, “updating the triggering time of the target scheduled task”, can be implemented by the following steps:
[0136] Step S2061, obtaining all unexecuted tasks associated with the target scheduled task.
[0137] Step S2062, obtaining the execution time of all the unexecuted tasks.
[0138] Step S2063: Determine the earliest execution time among the execution times of all the unexecuted tasks as the triggering time of the target scheduled task.
[0139] In the embodiment of the present application, after the target scheduled task is currently triggered, the trigger time of the target scheduled task needs to be updated to the execution time of the next task to be executed. First, all unexecuted tasks associated with the target scheduled task are obtained, and the execution time of these unexecuted tasks is obtained, and the execution time of the earliest task to be executed is updated to the trigger time of the target scheduled task.
[0140] For example, after the target scheduled task executes the first task, all unexecuted tasks include: the third task (execution time is 0:0:00 on March 9, 2020), the fourth task (0:0:00 on March 10, 2020), and the fifth task (0:05:00 on March 9, 2020). Since the execution time of the third task is the earliest, the execution time of the third task 0:0:00 on March 9, 2020 is updated to the trigger time of the target scheduled task, and the target scheduled task will be triggered again at 0:0:00 on March 9, 2020.
[0141] Figure 3 A schematic diagram of another implementation flow of the task triggering method provided in the embodiment of the present application is as follows: Figure 3 As shown, the task triggering method provided in the embodiment of the present application includes the following steps:
[0142] Step S301, obtaining the maximum number of concurrently executed tasks.
[0143] The maximum number of concurrently executed tasks can be obtained based on the user's input instruction. In some embodiments, it can also be set by the task triggering device in combination with historical data.
[0144] Step S302: Determine the number of configuration tasks based on the maximum number of concurrently executed tasks and preset configuration rules.
[0145] Step S303: configuring a plurality of scheduled tasks based on the configured number of tasks.
[0146] Here, the scheduled task can be associated with different tasks at different times.
[0147] Step S304: receiving a first instruction for creating a task.
[0148] Here, the first instruction carries the execution time of the first task.
[0149] Step S305: parse the first instruction to obtain a first execution time and a first duration.
[0150] Step S306: Create a first task based on the first execution time and the first duration.
[0151] The first execution time is the execution time of the first task, and the first duration is the execution duration of the first task.
[0152] Step S307: determining a time segment value of the first task according to the first execution time and the first duration.
[0153] Step S308: Determine at least one candidate scheduled task based on the time segment value and the identification information of the multiple scheduled tasks.
[0154] Step S309: Obtain occupancy information of each time segment corresponding to the at least one candidate scheduled task.
[0155] The occupancy information includes an idle state and an occupied state.
[0156] Step S310: Find an idle candidate scheduled task from the at least one candidate scheduled task.
[0157] Among them, the occupancy information of the idle candidate scheduled task in the time segment corresponding to the first execution time is an idle state.
[0158] Step S311: determine the idle candidate scheduled task as the target scheduled task.
[0159] The idle scheduled task is a candidate scheduled task whose occupancy information of the time segment corresponding to the first execution time is an idle state, and the target scheduled task is not associated with a task at the first execution time.
[0160] Step S312: If no idle candidate scheduled task is found from the at least one candidate scheduled task, it is determined that no target scheduled task exists.
[0161] Step S313: Update the first execution time according to a set rule to modify the execution time of the first task.
[0162] Step S314, sending a prompt message.
[0163] The prompt information is used to prompt updating of the execution time of the first task, and / or the prompt information is used to prompt updating of the maximum number of concurrently executed tasks.
[0164] Step S315: When the system time reaches the trigger time of the target scheduled task, the target scheduled task is triggered.
[0165] Step S316, obtaining all unexecuted tasks associated with the target scheduled task.
[0166] Step S317, obtaining the execution time of all the unexecuted tasks.
[0167] Step S318: determine the earliest execution time among the execution times of all the unexecuted tasks as the triggering time of the target scheduled task.
[0168] The task triggering method provided in the embodiment of the present application can not only ensure that the first task is executed on time at the configured execution time point, but also use a smaller number of scheduled tasks to support the configuration of a large number of tasks to be executed, which can improve the reuse rate of scheduled tasks, and only when the execution time of the first task arrives, will the scheduled task be triggered to execute the first task, thereby saving system resources.
[0169] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.
[0170] In daily needs, we often need to create some special tasks in advance to perform specified operations at a certain time in the future (corresponding to the first task in the above embodiment). In order to make such special tasks fully automatic, after the relevant personnel set up the special tasks, they only need to wait for the trigger time, and the special tasks will be automatically executed without human control. The system needs to monitor the trigger time of the special tasks in real time.
[0171] The implementation methods of related technologies mainly have the following problems:
[0172] 1) Use threads to scan the trigger time of special tasks: During the program running, a thread is permanently executed to continuously poll the trigger time of special tasks. When the trigger time is reached, the corresponding operation is performed. This method has two main problems: Problem 1, the application needs to maintain an additional thread, which consumes machine resources; Problem 2, the special task can only be triggered if the trigger time configured for the special task is earlier than the current time during polling, and there is a time difference between the execution time configured for the special task and the actual execution time.
[0173] 2) Use scheduled tasks to scan the execution time of special activities: Configure a scheduled task to poll the execution time of the special task at a specific frequency, and perform the corresponding operation when the execution time is reached. Since this method can only execute the special task execution time earlier than the trigger time of the scheduled task, there will also be a time difference between the execution time configured for the special task and the actual execution time.
[0174] 3) Special tasks are associated with scheduled tasks: When creating a special task, a scheduled task is assigned to the special task. The scheduled task trigger time is set to the execution time of the special task. When the scheduled task trigger time is reached, the corresponding operation of the special task is executed. In this method, when the special task execution time arrives, it is executed immediately, without time difference and resource waste, but each special task to be executed occupies a scheduled task, and the number of special tasks to be executed is limited by the number of scheduled tasks, and scheduled tasks cannot be reused more effectively.
[0175] Based on the above problem, the embodiment of the present application divides time into time segments according to the maximum execution time of special tasks, and special tasks in different time segments share the same scheduled task.
[0176] Before creating a special task, first initialize the scheduled task. The user initializes and configures a certain number of scheduled tasks and assigns consecutive serial numbers based on historical data or the estimated number of special tasks to be executed concurrently in the same time segment. In the embodiment of the present application, in order to prevent the execution time of special tasks in the two time segments from being too different, the number of scheduled tasks is twice the expected maximum number of special tasks to be executed concurrently in the same time segment. When the number of special tasks is 3, Table 1 shows the initialized scheduled tasks.
[0177] Table 1 Initialized scheduled tasks
[0178] Sequence Number 1 1 2 3 4 5 …… 10001 10002 10003 10004 …… Sequence number 2 1 2 3 4 5 …… 10001 10002 10003 10004 …… Sequence number 3 1 2 3 4 5 …… 10001 10002 10003 10004 …… Sequence Number 4 1 2 3 4 5 …… 10001 10002 10003 10004 …… Sequence number 5 1 2 3 4 5 …… 10001 10002 10003 10004 …… Sequence No. 6 1 2 3 4 5 …… 10001 10002 10003 10004 ……
[0179] Figure 4 A schematic diagram of the implementation flow of allocating a scheduled task to a special task in the task triggering method provided in the embodiment of the present application, such as Figure 4 As shown, the method comprises the following steps:
[0180] Step S401, creating a special task.
[0181] Step S402, calculating the special task execution time segment value according to the special task execution time.
[0182] Divide the millisecond value of the timestamp corresponding to the special task execution time by the maximum running time of the special task to obtain the special task execution time slice value. For example, the special task is to issue coupons to a specified group of users, and the maximum execution time is 2 minutes (120000 milliseconds). The coupon issuance operation is performed at 0:0:00 on March 8, 2020 (timestamp 1583625600000). The special task execution time slice value is equal to the quotient of 1583625600000 divided by 120000, which is 13196880.
[0183] Step S403, determining whether the time segment value is an odd number.
[0184] If the time segment value is an odd number, proceed to step S404; if the time segment value is an even number, proceed to step S405.
[0185] Step S404, query all scheduled tasks in odd-numbered sequences.
[0186] Step S405, query all scheduled tasks of even-numbered sequences.
[0187] Step S406, determining whether there is a target scheduled task.
[0188] If the target scheduled task with an idle time segment is found, the process proceeds to step S407. If the target scheduled task with an idle time segment is not found, that is, all the time segments corresponding to the scheduled tasks are occupied, the process proceeds to step S410.
[0189] Step S407, associating the special task with the corresponding time segment of the target scheduled task.
[0190] Step S408, determining whether the special task is the earliest executed special task among all tasks associated with the target scheduled task.
[0191] If the special task is the earliest executed special task among all the tasks associated with the target scheduled task, it indicates that the trigger time of the target scheduled task is the execution time of the special task, and the process goes to step S409; if the special task is not the earliest executed special task among all the tasks associated with the target scheduled task, it indicates that the execution time of the special task has not yet arrived. At this time, the trigger time of the scheduled task remains unchanged, and the process goes to step S411 to complete the creation of the current special task.
[0192] Step S409, modifying the triggering time of the scheduled task to the execution time of the special task.
[0193] Step S410, sending a prompt message for modifying the execution time of a special task or adding a scheduled task.
[0194] If there are no idle scheduled tasks in all corresponding time segments, remind the operation to modify the activity trigger time or add scheduled tasks, and then end the creation of the current special task.
[0195] Step S411, the creation of the current special task is completed.
[0196] Figure 5 A schematic diagram of the process of triggering the execution of a scheduled task in the task triggering method provided in an embodiment of the present application, such as Figure 5 As shown, the scheduled task triggering process includes the following steps:
[0197] Step S501, the scheduled task is triggered.
[0198] Step S502: triggering execution of a special task associated with the current time segment.
[0199] Step S503, determining whether there is any unexecuted special task.
[0200] When there are unexecuted special tasks, modify the trigger time of the scheduled task and enter step S504; when there are no unexecuted special tasks, it indicates that all tasks associated with the current scheduled task have been executed, and then enter step S506.
[0201] Step S504, obtaining the special task with the earliest execution time among all the unexecuted special tasks associated with the current scheduled task.
[0202] Step S505, modifying the triggering time of the scheduled task to be the execution time of the special task with the earliest execution time.
[0203] Step S506, the scheduled task ends the current time segment trigger.
[0204] The task triggering method provided in the embodiment of the present application can not only ensure that the special task is executed on time at the configured execution time point, but also use a small number of scheduled tasks to support the configuration of a large number of special tasks to be executed, thereby improving the reuse rate of scheduled tasks. Moreover, when the trigger time of the special task arrives, the scheduled task will be triggered to execute, thus saving system resources.
[0205] Based on the foregoing embodiments, an embodiment of the present application provides a task triggering device, and the modules included in the device, as well as the units included in each module, can be implemented by a processor in a computer device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Microprocessor Unit), a digital signal processor (DSP, Digital Signal Processing) or a field programmable gate array (FPGA, Field Programmable Gate Array), etc.
[0206] The present application embodiment further provides a task triggering device, Figure 6 A schematic diagram of the structure of the task triggering device provided in the embodiment of the present application is shown in FIG. Figure 6 As shown, the task triggering device 600 includes:
[0207] Configuration module 601, configured to configure multiple scheduled tasks based on the acquired maximum number of concurrently executed tasks, wherein the scheduled tasks can be associated with different tasks at different times;
[0208] A creation module 602, configured to create a first task in response to a first instruction for creating a task, wherein the first instruction carries an execution time of the first task;
[0209] A determination module 603 is used to determine a target scheduled task from the multiple scheduled tasks based on the first task, where the target scheduled task is not associated with a task at the execution time;
[0210] The association module 604 is used to associate the first task with the target scheduled task, so that the first task is executed when the target scheduled task is triggered and the trigger time is the execution time.
[0211] In some embodiments, the creation module 602 further includes:
[0212] A receiving submodule, used for receiving a first instruction for creating a task;
[0213] A parsing submodule, used for parsing the first instruction to obtain a first execution time and a first duration;
[0214] A creation submodule is used to create a first task based on the first execution time and the first duration, where the first execution time is the execution time of the first task and the first duration is the execution duration of the first task.
[0215] In some embodiments, the determining module 603 further includes:
[0216] A first determining submodule, configured to determine a time segment value of the first task according to the first execution time and the first duration;
[0217] A second determination submodule, configured to determine at least one candidate scheduled task based on the time segment value and identification information of the plurality of scheduled tasks;
[0218] An acquisition submodule, used to acquire occupancy information of each time segment corresponding to the at least one candidate scheduled task;
[0219] The third determination submodule is configured to determine a target scheduled task from the at least one candidate scheduled task based on the occupancy information.
[0220] In some embodiments, the third determining submodule further comprises:
[0221] A searching unit, configured to search for an idle candidate scheduled task from the at least one candidate scheduled task, wherein the occupancy information of the idle candidate scheduled task in the time segment corresponding to the first execution time is an idle state;
[0222] The first determining unit is configured to determine the idle candidate scheduled task as the target scheduled task.
[0223] In some embodiments, the third determining submodule further comprises:
[0224] A second determining unit, configured to determine that a target scheduled task does not exist if no idle candidate scheduled task is found from the at least one candidate scheduled task;
[0225] an updating unit, configured to update the first execution time according to a set rule to modify the execution time of the first task; and / or,
[0226] The sending unit is used to send prompt information, where the prompt information is used to prompt to update the execution time of the first task, and / or the prompt information is used to prompt to update the maximum number of concurrently executed tasks.
[0227] In some embodiments, the task triggering device 800 may further include:
[0228] A trigger module, used to trigger the target scheduled task when the system time reaches the trigger time of the target scheduled task;
[0229] An updating module is used to update the triggering time of the target scheduled task.
[0230] In some embodiments, the update module is further used to:
[0231] Obtain all unexecuted tasks associated with the target scheduled task;
[0232] Obtain the execution time of all the unexecuted tasks;
[0233] The earliest execution time among the execution times of all the unexecuted tasks is determined as the triggering time of the target scheduled task.
[0234] In some embodiments, the configuration module 601 further includes:
[0235] Get submodule, used to obtain the maximum number of concurrently executed tasks;
[0236] A third determination submodule, used to determine the number of configuration tasks based on the maximum number of concurrently executed tasks and a preset configuration rule;
[0237] The configuration submodule is used to configure multiple scheduled tasks based on the number of configured tasks.
[0238] It should be noted here that the description of the above task triggering device embodiment is similar to the above method description and has the same beneficial effects as the method embodiment. For technical details not disclosed in the task triggering device embodiment of this application, those skilled in the art should refer to the description of the method embodiment of this application for understanding.
[0239] It should be noted that in the embodiment of the present application, if the above-mentioned task triggering method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM, ReadOnly Memory), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0240] Accordingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the task triggering method provided in the above embodiment are implemented.
[0241] The present application embodiment provides a task triggering device, Figure 7 A schematic diagram of the structure of a task triggering device provided in an embodiment of the present application, according to Figure 7The exemplary structure of the task triggering device 700 shown can foresee other exemplary structures of the task triggering device 700, so the structure described here should not be regarded as limiting. For example, some components described below can be omitted, or components not described below can be added to meet the special needs of certain applications.
[0242] Figure 7 The task triggering device 700 shown includes: a processor 701, at least one communication bus 702, a user interface 703, at least one external communication interface 704 and a memory 705. The communication bus 702 is configured to realize the connection and communication between these components. The user interface 703 may include a display screen, and the external communication interface 704 may include a standard wired interface and a wireless interface. The processor 701 is configured to execute the program of the task triggering method stored in the memory to implement the steps in the task triggering method provided in the above embodiment.
[0243] The description of the above task triggering device and storage medium embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the task triggering device and storage medium embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0244] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0245] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0246] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0247] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0248] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0249] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0250] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for an AC to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0251] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A task triggering method, characterized in that: The method comprises: Configure multiple scheduled tasks based on the maximum number of concurrently executed tasks obtained, wherein the scheduled tasks can be associated with different tasks at different times; In response to a first instruction for creating a task, creating a first task, wherein the first instruction carries an execution time of the first task; Based on the first task, determining a target scheduled task from the multiple scheduled tasks, wherein the target scheduled task is not associated with a task at the execution time; Associating the first task with the target scheduled task, so that when the target scheduled task is triggered and the triggering time is the execution time, the first task is executed; When the system time reaches the trigger time of the target scheduled task, trigger the target scheduled task; Obtain all unexecuted tasks associated with the target scheduled task; Obtain the execution time of all the unexecuted tasks; The earliest execution time among the execution times of all the unexecuted tasks is determined as the triggering time of the target scheduled task.
2. The method according to claim 1, characterized in that The step of creating a first task in response to a first instruction to create a task includes: receiving a first instruction for creating a task; Parse the first instruction to obtain a first execution time and a first duration; A first task is created based on the first execution time and the first duration, where the first execution time is the execution time of the first task and the first duration is the execution duration of the first task.
3. The method according to claim 2, characterized in that The determining a target scheduled task from the multiple scheduled tasks based on the first task includes: Determine a time segment value of the first task according to the first execution time and the first duration; Determine at least one candidate scheduled task based on the time segment value and the identification information of the multiple scheduled tasks; Obtaining occupancy information of each time segment corresponding to the at least one candidate scheduled task; A target scheduled task is determined from the at least one candidate scheduled task based on the occupancy information.
4. The method according to claim 3, characterized in that: The occupancy information includes an idle state and an occupied state; The determining a target scheduled task from the candidate scheduled tasks based on the occupancy information includes: Finding an idle candidate scheduled task from the at least one candidate scheduled task, wherein the occupancy information of the idle candidate scheduled task in the time segment corresponding to the first execution time is an idle state; The idle candidate scheduled task is determined as the target scheduled task.
5. The method according to claim 4, characterized in that The method further comprises: If no idle candidate scheduled task is found from the at least one candidate scheduled task, determining that there is no target scheduled task; updating the first execution time according to a set rule to modify the execution time of the first task; and / or, Sending a prompt message, wherein the prompt message is used to prompt updating of the execution time of the first task, and / or the prompt message is used to prompt updating of the maximum number of concurrently executed tasks.
6. The method according to any one of claims 1 to 5, characterized in that: The configuring of multiple scheduled tasks based on the acquired maximum number of concurrently executed tasks includes: Get the maximum number of concurrently executed tasks; Determine the number of configuration tasks based on the maximum number of concurrently executed tasks and a preset configuration rule; Based on the number of configured tasks, multiple scheduled tasks are configured.
7. A task triggering device, characterized in that: The device comprises: A configuration module, used to configure multiple scheduled tasks based on the obtained maximum number of concurrently executed tasks, wherein the scheduled tasks can be associated with different tasks at different times; Creating a model, used to create a first task in response to a first instruction for creating a task, wherein the first instruction carries an execution time of the first task; A determination module, configured to determine a target scheduled task from among the plurality of scheduled tasks based on the first task, wherein the target scheduled task is not associated with a task at the execution time; an associating module, configured to associate the first task with the target scheduled task, so as to execute the first task when the target scheduled task is triggered and the triggering time is the execution time; A trigger module, used to trigger the target scheduled task when the system time reaches the trigger time of the target scheduled task; An update module is used to obtain all unexecuted tasks associated with the target scheduled task; obtain the execution time of all the unexecuted tasks; and determine the earliest execution time among the execution times of all the unexecuted tasks as the trigger time of the target scheduled task.
8. A task triggering device, characterized in that: include: processor; as well as a memory for storing a computer program executable on the processor; Wherein, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are configured to execute the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Timed task distribution method, device, system and equipment
CN109766167A
Timing task processing method, device and system
CN110806939A
Timing task execution method and device, computer equipment and storage medium
CN111309372A
Download task asynchronous processing method, device and system and storage medium
CN111800459A
Virtual telephone state switching method, device, computer device, and storage medium
WO2020143307A1
