CN115269160B - Timed task execution method, device and system - Google Patents

Timed task execution method, device and system Download PDF

Info

Publication number
CN115269160B
CN115269160B CN202211194767.3A CN202211194767A CN115269160B CN 115269160 B CN115269160 B CN 115269160B CN 202211194767 A CN202211194767 A CN 202211194767A CN 115269160 B CN115269160 B CN 115269160B
Authority
CN
China
Prior art keywords
time
task
node
execution
interval
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211194767.3A
Other languages
Chinese (zh)
Other versions
CN115269160A (en
Inventor
邓红星
王子兵
林弟
明德
张常华
朱正辉
赵定金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Baolun Electronics Co ltd
Original Assignee
Guangzhou Baolun Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Baolun Electronics Co Ltd filed Critical Guangzhou Baolun Electronics Co Ltd
Priority to CN202211194767.3A priority Critical patent/CN115269160B/en
Publication of CN115269160A publication Critical patent/CN115269160A/en
Application granted granted Critical
Publication of CN115269160B publication Critical patent/CN115269160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a device and a system for executing a timing task, wherein the method comprises the following steps: dynamically acquiring a first time of current execution and a second time of last execution; calculating an interval of the first time and the second time; and when the interval is greater than or equal to a preset value, executing a timing task on the node in the preset interval. By adopting the embodiment of the invention, whether time hopping occurs is judged by acquiring and comparing the first time and the second time, and the skipped timing task is executed, so that the time hopping problem is solved; in addition, the time hopping is judged only by comparing the first time with the second time, so that the problem of high operation complexity of the traversal method is avoided; in addition, the timing task on the time node is executed, so that the task scheduling by using a time slice wheel method is avoided, and the resource consumption of the system is reduced.

Description

Timed task execution method, device and system
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device and a system for executing a timing task.
Background
With the development of information technology, the requirements of timing tasks or task scheduling become more and more extensive, and in some real-time data processing fields, the requirements on data processing become more and more high, for example: the timeliness and accuracy of task processing are guaranteed, and once the scheduling is abnormal, problems of related business abnormality, task accumulation and the like can be caused. In order to solve the problem, currently, whether task processing is abnormal is mainly determined by monitoring whether a currently executed task reaches a task timeout threshold or by monitoring whether the currently executed task is completely executed after the task timeout threshold is reached. However, only whether the task execution is overtime or not is considered, and the time jump condition that the current time is inconsistent with the original time after the manual time modification or the automatic time correction of the system is not considered, so that the problem that the timed task is not executed is not considered; for the problem, the prior art mainly adopts a traversal mode or a time slice round mode to solve the problem, which causes the problems of high operation complexity and high system resource consumption.
Disclosure of Invention
The invention provides a timing task execution method, a timing task execution device and a timing task execution system, which are used for solving the technical problems of high operation complexity and high system resource consumption when the time hopping problem is processed in the prior art.
In order to solve the foregoing technical problem, an embodiment of the present invention provides a method for executing a timing task, including:
acquiring execution time from task information uploaded by a user;
inquiring whether the execution time has a corresponding node;
when the execution time has a corresponding node, storing task content corresponding to the task information into the node; when the execution time has no corresponding node, creating a node corresponding to the execution time, and storing task content corresponding to the task information into the corresponding node;
dynamically acquiring a first time of current execution and a second time of last execution; the current execution first time is the current system time, and the last execution second time is the system time displayed at the last moment; the last moment is 1 second before;
querying whether a node exists at the first time;
when a node exists at the first time, extracting task content on the node;
executing a timing task on a node in the first time;
calculating an interval of the first time and the second time;
when the interval is greater than or equal to a preset value, executing a timing task on a node in the preset interval, specifically: when the interval is larger than or equal to a preset value, starting a thread corresponding to the timing task, and executing the timing task on a node in a preset interval through the thread; when the interval is greater than or equal to a preset value, starting a thread corresponding to the timing task, specifically: when the interval is larger than or equal to a preset value, inquiring whether a node exists in the preset interval or not; when a node exists in a preset interval, extracting task content on the node; starting a thread corresponding to the timing task; the preset value is 2 seconds.
According to the invention, whether time skipping occurs is judged by acquiring and comparing the first time and the second time, and the skipped timing task is executed, so that the time skipping problem is solved; in addition, the time hopping is judged only by comparing the first time with the second time, so that the problem of high operation complexity of the traversal method is avoided; in addition, the timing task on the time node is executed, so that the task scheduling by using a time slice wheel method is avoided, and the resource consumption of the system is reduced.
The expired tasks are executed in a new thread establishing mode, and the current task processing cannot be blocked; when the new thread executes the task, the execution time consumed in the thread is not counted in the timing task, so that the resource consumption and the operation complexity of the system are reduced.
The invention can adjust the preset value to 2 seconds, and ensures that the timing task skipped within 1 second in the current time and the last execution time interval can be executed in the subsequent process when the time is judged to be skipped under the condition that the time interval with the last execution time exceeds 2 seconds.
The invention creates the node corresponding to the execution time for each task, and one time node can correspond to a plurality of tasks to be executed, thereby avoiding the need of maintaining the time slice wheel without task occupation when adopting the time slice wheel method and reducing the resource consumption of the system.
The invention stores the task content into the corresponding node according to the execution time of the task, and does not need to establish the node at the time point when the task is not required to be executed, thereby avoiding the problem that the node without the task needs to be maintained when a time slice round method is used, and reducing the consumption of system resources.
Further, before the obtaining of the execution time from the task information uploaded by the user, the method includes:
responding to a task creating request sent by a client, and recording task information uploaded by a user;
and returning the task creation result to the client.
The invention responds to the task creation request and records the task information so as to provide for the subsequent timed task execution or task scheduling process.
On the other hand, an embodiment of the present invention further provides a timing task execution device, including: the system comprises a first execution time acquisition module, a first node query module, a first task storage module, a second task storage module, a first execution time acquisition module, an interval calculation module, a first node query module, a task content extraction module, a second task execution module and a first task execution module;
the second execution time acquisition module is used for acquiring execution time from the task information uploaded by the user before the first execution time acquisition module acquires the currently executed first time and the last executed second time;
the second node query module is used for querying whether the execution time has a corresponding node;
the first task storage module is used for storing task content corresponding to the task information into the node when the execution time has the corresponding node; the second task storage module is used for creating a node corresponding to the execution time when the execution time has no corresponding node, and storing task content corresponding to the task information into the corresponding node;
the first execution time acquisition module is used for dynamically acquiring a first time of current execution and a second time of last execution; the current execution first time is the current system time, and the last execution second time is the system time displayed at the last moment; the last moment is 1 second before;
the first node inquiring module is used for inquiring whether a node exists at a first time after the first execution time acquiring module acquires the first time of current execution and a second time of last execution;
the task content extraction module is used for extracting task content on a node when the node exists at the first time;
the second task execution module is used for executing the timing task on the node in the first time;
the interval calculation module is used for calculating the interval between the first time and the second time;
the first task execution module is configured to execute a timing task on a node within a preset interval when the interval is greater than or equal to a preset value, and specifically includes: when the interval is greater than or equal to a preset value, starting a thread corresponding to the timing task, specifically: when the interval is larger than or equal to a preset value, inquiring whether a node exists in the preset interval or not; when a node exists in a preset interval, extracting task content on the node; starting a thread corresponding to the timing task; executing the timing task on the node in a preset interval through the thread; when the interval is greater than or equal to a preset value, starting a thread corresponding to the timing task, specifically: when the interval is larger than or equal to a preset value, inquiring whether a node exists in the preset interval or not; when a node exists in a preset interval, extracting task content on the node; starting a thread corresponding to the timing task; the preset value is 2 seconds.
On the other hand, an embodiment of the present invention further provides a timing task execution system, including: a server and a client;
the server is configured to execute the timed task execution method according to any one of the embodiments of the present invention;
the client is used for creating tasks and uploading task information; and for viewing task creation results.
The invention judges whether the time jump occurs by acquiring and comparing the first time and the second time, and executes the skipped timing task, thereby solving the time jump problem; in addition, the time hopping is judged only by comparing the first time with the second time, so that the problem of high operation complexity of the traversal method is avoided; in addition, the timing task on the time node is executed, so that the task scheduling by using a time slice wheel method is avoided, and the resource consumption of the system is reduced.
Drawings
FIG. 1 is a flowchart illustrating a method for executing a timed task according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for executing a timed task according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for executing a timed task according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an embodiment of a timed task execution device provided in the present invention;
FIG. 5 is a schematic structural diagram of an embodiment of a timed task execution system provided in the present invention;
FIG. 6 is a flowchart illustrating task scheduling and time-hopping according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating one embodiment of distributing tasks provided by the present invention;
FIG. 8 is a timing diagram for one embodiment of task creation provided by the present invention;
fig. 9 is an overall timing diagram of an embodiment of a method for executing a timed task according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flow chart of an embodiment of a method for executing a timing task according to the present invention mainly includes steps 101 to 103, which are as follows:
step 101: and dynamically acquiring a first time of current execution and a second time of last execution.
In this embodiment, the first time currently executed is a current system time, and the second time last executed is a system time displayed at a previous time, where each time may be 1 second, for example: at the current moment, the system time displays 11 points for 25 minutes and 5 seconds; when the system displays 11 points 25 minutes and 4 seconds before the last moment, namely 1 second, the system time is normal; and when the last time, i.e. 1 second before, the system shows 11 o' clock, 25 minutes and 3 seconds, the system has time hopping. The reason for the time jump may be that the system time is changed by a person or after the system is automatically calibrated.
Step 102: calculating an interval of the first time and the second time.
In this embodiment, the interval between the first time and the second time is calculated, and when the time interval is greater than 1 second, the system may be determined as a time jump, and this way may avoid determining the execution of a task or performing task scheduling in a traversal way, thereby reducing the operation complexity and the system resource consumption.
Step 103: and when the interval is greater than or equal to a preset value, executing a timing task on the node in the preset interval.
In this embodiment, when the system jumps, the interval between the first time and the second time is greater than 1 second, and thus the preset value is greater than 1 second; in addition, the preset value can also be 2 seconds. When the interval is greater than or equal to 2 seconds, it can be determined that the system skips, and the skipped timing task is processed according to the preset rule of the user, for example: the skipped tasks or the unexecuted tasks within a preset interval from the first time are executed. Wherein the preset interval may include, but is not limited to: 5 seconds, 10 seconds; when the system jumps and the time-jumping interval is within a preset interval, executing a skipped or unexecuted timing task in the interval; and when the time-hopping interval exceeds the preset interval, executing the skipped or unexecuted timing tasks in the preset interval.
The invention can adjust the preset value to 2 seconds, ensure that the timing task which is skipped within 1 second in the current time and the last execution time interval can be executed in the subsequent process when the time is judged to be skipped under the condition that the time interval with the last execution time exceeds 2 seconds.
In this embodiment, when the interval is greater than or equal to a preset value, executing a timing task on a node in the preset interval specifically includes: and when the interval is larger than or equal to a preset value, starting a thread corresponding to the timing task, and executing the timing task on the node in the preset interval through the thread.
In this embodiment, when the interval is greater than or equal to a preset value, starting a thread corresponding to the timing task, specifically: when the interval is larger than or equal to a preset value, inquiring whether a node exists in the preset interval or not; when a node exists in a preset interval, extracting task content on the node; and starting a thread corresponding to the timing task.
When a node in a preset interval is inquired that a skipped or unexecuted timing task exists, establishing a corresponding thread for each task, and executing each task in the thread, for example: and when 3 tasks need to be executed within a preset interval, starting 3 threads to respectively execute corresponding timing tasks, so that the task scheduling cannot be influenced, and the task scheduling can be continuously executed in the next second.
The expired tasks are executed in a new thread establishing mode, and the current task processing cannot be blocked; when the new thread executes the task, the execution time consumed in the thread is not counted in the timing task, so that the resource consumption and the operation complexity of the system are reduced.
In this embodiment, the node name of the node may be a specific task execution time, for example, when a certain task is executed in 2022, 9, 20, and 11, 0 min and 0 sec, the name of the task node may be 2022-09-20: 00:00; each node does not only correspond to one task to be executed, and if the tasks all have uniform execution time, the corresponding node comprises the tasks to be executed.
Fig. 2 is a schematic flow chart illustrating a method for executing a timed task according to another embodiment of the present invention. The main difference between fig. 2 and fig. 1 is that fig. 2 further includes steps 201 to 203, which are as follows:
in this embodiment, after step 101, step 201 to step 203 may also be performed.
Step 201: querying whether a node exists at the first time.
Please refer to fig. 6, which is a schematic flowchart illustrating an embodiment of task scheduling and time hopping processing according to the present invention, wherein a first time and a second time are queried, and meanwhile, whether a node exists at the first time is also queried; since the time nodes are set according to the task execution time, when the nodes exist at the first time, one or more tasks to be executed at the moment are indicated.
Step 202: when a node exists at the first time, extracting task content on the node.
In this embodiment, the node records the task content previously uploaded by the user; executing corresponding tasks according to the task content; the node at the first time records the task with the execution time at the first time and the task content.
Step 203: performing a timing task on a node in the first time.
In this embodiment, the executing the timing task on the node in the first time specifically includes: and establishing a thread corresponding to the timing task on the node, and executing the timing task on the node in the thread. Tasks at the current system time or first time may also be run or executed in a manner that creates a new thread.
The invention creates the node corresponding to the execution time for each task, and one time node can correspond to a plurality of tasks to be executed, thereby avoiding the need of maintaining the time slice wheel without task occupation when adopting the time slice wheel method and reducing the resource consumption of the system.
Please refer to fig. 3, which is a flowchart illustrating a timing task executing method according to another embodiment of the present invention. The main difference between fig. 3 and fig. 1 is that fig. 3 includes steps 301-303, which are as follows:
in this embodiment, before step 101, step 301 to step 303 are further included.
Step 301: and acquiring the execution time from the task information uploaded by the user.
In this embodiment, the task information includes, but is not limited to: the execution time of the corresponding timing task and the task content of the corresponding timing task; the execution time may be used to find whether there is a corresponding node in the execution time, so as to record the task content in the corresponding node, or, when there is no corresponding node in the execution time, establish a node corresponding to the execution time, and record the content in the corresponding node.
Step 302: and inquiring whether the execution time has a corresponding node.
Referring to fig. 7, a flowchart of an embodiment of a task distribution provided by the present invention is shown, where after querying whether there is a corresponding node in the execution time, the method includes: and when the execution time has no corresponding node, creating a node corresponding to the execution time, and storing the task content corresponding to the task information into the corresponding node.
The invention stores the task content into the corresponding node according to the execution time of the task, and does not need to establish the node at the time point when the task is not required to be executed, thereby avoiding the problem that the node without the task needs to be maintained when a time slice round method is used, and reducing the consumption of system resources.
Step 303: and when the execution time has a corresponding node, storing the task content corresponding to the task information into the node.
The invention adopts a node mode to record the task to be executed, which is different from the scheduling mode of a time slice wheel, such as: for the tasks executed on the same day, when the execution time of the first task is 12; for a time slice wheel, however, it is necessary to divide the time into several shares and store the tasks on the corresponding shares or time slices, for example: by cutting 24 hours into 86400 segments in a manner of 24 hours × 60 minutes × 60 seconds, 86400 time slots need to be maintained, so that the task creating and task scheduling method adopted by the invention can greatly reduce the complexity of maintenance and the consumption of system resources.
Referring to fig. 8, a timing diagram of an embodiment of task creation provided by the present invention is shown, where before obtaining an execution time from task information uploaded by a user, the method includes: responding to a task creating request sent by a client, and recording task information uploaded by a user; and returning the task creation result to the client.
In this embodiment, a task data persistence mode may be adopted to record task information uploaded by a user, query or create a node according to execution time in the task information, and record task content in the task information on a corresponding node.
The invention responds to the task creation request and records the task information so as to provide for the subsequent timed task execution or task scheduling process.
Referring to fig. 9, an overall timing chart of an embodiment of the method for executing a timed task according to the present invention is shown, wherein steps 101 to 103 in the embodiment of the present invention correspond to a time-skipping processing procedure in the overall timing chart, steps 201 to 203 correspond to a task scheduling procedure in the overall timing chart, and steps 301 to 303 correspond to a task distributing procedure in the overall timing chart; the task scheduling process and the time-hopping processing process can be executed through a timing module on the server.
Referring to fig. 4, a schematic structural diagram of an embodiment of a timing task execution device according to the present invention mainly includes: a first execution time acquisition module 401, an interval calculation module 402, and a first task execution module 403.
In this embodiment, the first execution time obtaining module 401 is configured to dynamically obtain a first time of current execution and a second time of last execution.
In this embodiment, the timed task executing apparatus further includes: the system comprises a first node query module, a task content extraction module and a second task execution module; the first node querying module is configured to query whether a node exists at a first time after the first execution time obtaining module 401 obtains the first time of current execution and a second time of last execution; when a node exists at the first time, the task content extraction module extracts task content on the node; the second task execution module is to execute a timed task on a node in the first time.
In this embodiment, the timed task executing apparatus further includes: the first node query module is used for querying the first node; the second execution time obtaining module is configured to obtain an execution time from the task information uploaded by the user before the first execution time obtaining module 401 obtains the first time of the current execution and the second time of the last execution; the second node query module is used for querying whether the execution time has a corresponding node; the first task storage module is used for storing task content corresponding to the task information into the node when the execution time has the corresponding node; and the second task storage module is used for creating a node corresponding to the execution time when the execution time has no corresponding node, and storing the task content corresponding to the task information into the corresponding node.
The interval calculation module 402 is configured to calculate an interval between the first time and the second time.
The first task execution module 403 is configured to execute a timing task on a node within a preset interval when the interval is greater than or equal to a preset value.
In the present embodiment, the first task execution module 403 includes a first task execution unit; the first task execution unit is used for starting a thread corresponding to the timing task when the interval is larger than or equal to a preset value, and executing the timing task on a node in a preset interval through the thread.
Referring to fig. 5, a schematic structural diagram of an embodiment of a timing task execution system according to the present invention mainly includes: a server 501 and a client 502.
In this embodiment, the server 501 is configured to execute the timed task execution method according to any one of the embodiments of the present invention.
The client 502 is used for creating tasks and uploading task information; and for viewing task creation results.
According to the invention, whether time skipping occurs is judged by acquiring and comparing the first time and the second time, and the skipped timing task is executed, so that the time skipping problem is solved; in addition, the time hopping is judged only by comparing the first time with the second time, so that the problem of high operation complexity of the traversal method is avoided; in addition, the timing task on the time node is executed, so that the task scheduling by using a time slice wheel method is avoided, and the resource consumption of the system is reduced.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and are not intended to limit the scope of the present invention. It should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (4)

1. A method for timed task execution, comprising:
acquiring execution time from task information uploaded by a user;
inquiring whether the execution time has a corresponding node;
when the execution time has a corresponding node, storing task content corresponding to the task information into the node; when the execution time has no corresponding node, creating a node corresponding to the execution time, and storing task content corresponding to the task information into the corresponding node;
dynamically acquiring a first time of current execution and a second time of last execution; the current execution first time is the current system time, and the last execution second time is the system time displayed at the last moment; the last moment is 1 second before;
querying whether a node exists at the first time;
when a node exists at the first time, extracting task content on the node;
executing a timing task on a node in the first time;
calculating an interval of the first time and the second time;
when the interval is greater than or equal to a preset value, executing a timing task on a node in the preset interval, specifically: when the interval is larger than or equal to a preset value, starting a thread corresponding to the timing task, and executing the timing task on a node in a preset interval through the thread; when the interval is greater than or equal to a preset value, starting a thread corresponding to the timing task, specifically: when the interval is larger than or equal to a preset value, inquiring whether a node exists in the preset interval or not; when a node exists in a preset interval, extracting task content on the node; starting a thread corresponding to the timing task; the preset value is 2 seconds.
2. The timed task execution method according to claim 1, before obtaining the execution time from the task information uploaded by the user, comprising:
responding to a task creating request sent by a client, and recording task information uploaded by a user;
and returning the task creation result to the client.
3. A timed task execution apparatus, comprising: the system comprises a first execution time acquisition module, a first node query module, a first task storage module, a second task storage module, a first execution time acquisition module, an interval calculation module, a first node query module, a task content extraction module, a second task execution module and a first task execution module;
the second execution time acquisition module is used for acquiring execution time from the task information uploaded by the user before the first execution time acquisition module acquires the first time of current execution and the second time of last execution;
the second node query module is used for querying whether the execution time has a corresponding node;
the first task storage module is used for storing task content corresponding to the task information into the node when the execution time has the corresponding node; the second task storage module is used for creating a node corresponding to the execution time when the execution time has no corresponding node, and storing task content corresponding to the task information into the corresponding node;
the first execution time acquisition module is used for dynamically acquiring a first time of current execution and a second time of last execution; the current execution first time is the current system time, and the last execution second time is the system time displayed at the last moment; the last moment is 1 second ago;
the first node query module is used for querying whether a node exists at a first time after the first execution time acquisition module acquires the first time of current execution and a second time of last execution;
the task content extraction module is used for extracting task content on a node when the node exists at the first time;
the second task execution module is used for executing the timing task on the node in the first time;
the interval calculation module is used for calculating the interval between the first time and the second time;
the first task execution module is configured to execute a timing task on a node in a preset interval when the interval is greater than or equal to a preset value, and specifically includes: when the interval is larger than or equal to a preset value, starting a thread corresponding to the timing task, and executing the timing task on a node in a preset interval through the thread; when the interval is greater than or equal to a preset value, starting a thread corresponding to the timing task, specifically: when the interval is larger than or equal to a preset value, inquiring whether a node exists in the preset interval or not; when a node exists in a preset interval, extracting task content on the node; starting a thread corresponding to the timing task; the preset value is 2 seconds.
4. A timed task execution system, comprising: a server and a client;
the server is used for executing the timed task execution method according to any one of claims 1 to 2;
the client is used for creating tasks and uploading task information; and for viewing task creation results.
CN202211194767.3A 2022-09-29 2022-09-29 Timed task execution method, device and system Active CN115269160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211194767.3A CN115269160B (en) 2022-09-29 2022-09-29 Timed task execution method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211194767.3A CN115269160B (en) 2022-09-29 2022-09-29 Timed task execution method, device and system

Publications (2)

Publication Number Publication Date
CN115269160A CN115269160A (en) 2022-11-01
CN115269160B true CN115269160B (en) 2023-01-06

Family

ID=83755848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211194767.3A Active CN115269160B (en) 2022-09-29 2022-09-29 Timed task execution method, device and system

Country Status (1)

Country Link
CN (1) CN115269160B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022007594A1 (en) * 2020-07-08 2022-01-13 苏宁易购集团股份有限公司 Method and system for scheduling distributed task

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502767B (en) * 2015-09-08 2019-11-19 大唐移动通信设备有限公司 A kind of process management method and its device
CN105468450B (en) * 2015-12-29 2019-02-05 华为技术有限公司 Method for scheduling task and system
JP2020126377A (en) * 2019-02-01 2020-08-20 富士通株式会社 Information processing device, distributed processing system, and distributed processing program
CN113590287B (en) * 2021-07-28 2024-03-01 百度在线网络技术(北京)有限公司 Task processing method, device, equipment, storage medium and scheduling system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022007594A1 (en) * 2020-07-08 2022-01-13 苏宁易购集团股份有限公司 Method and system for scheduling distributed task

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
多租户高可用并行任务调度框架;刘一田等;《计算机***应用》;20161215(第12期);第280-284页 *

Also Published As

Publication number Publication date
CN115269160A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
CN112507029B (en) Data processing system and data real-time processing method
US9880880B2 (en) Automatic scaling of computing resources using aggregated metrics
US8516499B2 (en) Assistance in performing action responsive to detected event
US10616299B2 (en) Video analytics device
US9755935B2 (en) Method, system and computer storage medium for bandwidth optimization of network application
CN110659121B (en) Task data acquisition method and device, task configuration method and device and server
US9882830B2 (en) Architecture for metrics aggregation without service partitioning
CN110895484A (en) Task scheduling method and device
US20180131761A1 (en) Datastore for aggregated measurements for metrics
CN109190025B (en) Information monitoring method, device, system and computer readable storage medium
CN110895488B (en) Task scheduling method and device
US11954123B2 (en) Data processing method and device for data integration, computing device and medium
CN110895483A (en) Task recovery method and device
CN114223189A (en) Duration statistical method and device, electronic equipment and computer readable medium
CN111680085A (en) Data processing task analysis method and device, electronic equipment and readable storage medium
CN110895486A (en) Distributed task scheduling system
CN111459629A (en) Azkaban-based project operation method and device and terminal equipment
CN111339357A (en) Recommendation method and device based on live user behaviors
CN115269160B (en) Timed task execution method, device and system
CN113194339A (en) Live list generation method and device, electronic equipment and readable storage medium
CN113761052A (en) Database synchronization method and device
CN113434729B (en) Video related information aggregation acquisition method and device and terminal equipment
CN115858499A (en) Database partition processing method and device, computer equipment and storage medium
CN108418848B (en) Flight data pushing and processing method and equipment
CN112764988A (en) Data segmentation acquisition method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: No. 56 Nanli East Road, Shiqi Town, Panyu District, Guangzhou City, Guangdong Province, 510000

Patentee after: Guangdong Baolun Electronics Co.,Ltd.

Address before: No.19 Chuangyuan Road, Zhongcun street, Panyu District, Guangzhou, Guangdong 510000

Patentee before: GUANGZHOU ITC ELECTRONIC TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address