CN115576670A - Timing task scheduling method, device, equipment and medium - Google Patents

Timing task scheduling method, device, equipment and medium Download PDF

Info

Publication number
CN115576670A
CN115576670A CN202211259558.2A CN202211259558A CN115576670A CN 115576670 A CN115576670 A CN 115576670A CN 202211259558 A CN202211259558 A CN 202211259558A CN 115576670 A CN115576670 A CN 115576670A
Authority
CN
China
Prior art keywords
scheduling
time
timing task
preset
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211259558.2A
Other languages
Chinese (zh)
Inventor
庄欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202211259558.2A priority Critical patent/CN115576670A/en
Publication of CN115576670A publication Critical patent/CN115576670A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Abstract

The application discloses a method, a device, equipment and a medium for scheduling a timed task, which relate to the technical field of computers and comprise the following steps: determining the adjustment time of the current timing task by utilizing a preset scheduling feedback mechanism and the scheduling result of the historical timing task; acquiring preset scheduling starting time of the current timing task, and determining target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time; judging whether the current time is the target scheduling starting time; and if the current time is judged to be the target scheduling starting time, scheduling the current timing task and generating a scheduling result of the current timing task. And determining the adjusting time of the current timing task by utilizing a preset scheduling feedback mechanism and the scheduling result of the historical tasks, namely, realizing the reasonable dynamic adjustment of the scheduling time of the tasks by the scheduling system, so as to determine the target scheduling starting time based on the preset scheduling starting time and the adjusting time, and further realizing the reasonable and flexible scheduling of the timing tasks.

Description

Timing task scheduling method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for scheduling a timed task.
Background
In the traditional implementation process of timing task scheduling, the scheduling time of each task is generally predetermined, and then a program schedules the tasks according to the preset time, so that the normal operation of the system is ensured. However, as scientific technology is continuously developed and a scheduling technology is more generally applied in daily life, a scheduling strategy according to a fixed scheduling time cannot meet new application requirements in reality to a great extent. The application requirements put forward new requirements on scheduling, and not only are the characteristics of real-time performance and high reliability of the system required to be met, but also the requirements on timely responding to emergencies and dynamically adjusting the scheduling period are required.
In summary, it is seen that how to implement a scheduling system to reasonably and dynamically adjust scheduling time of a task to cope with an emergency situation, and further implement a reasonable and flexible scheduling of a timing task is a problem to be solved in the art.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, an apparatus, a device and a medium for scheduling a timing task, which can implement a scheduling system to reasonably and dynamically adjust scheduling time of a task, thereby implementing a reasonable and flexible scheduling of a timing task. The specific scheme is as follows:
in a first aspect, the present application discloses a method for scheduling a timed task, including:
determining the adjustment time of the current timing task by utilizing a preset scheduling feedback mechanism and the scheduling result of the historical timing task;
acquiring a preset scheduling starting time of the current timing task, and determining a target scheduling starting time of the current timing task based on the adjustment time and the preset scheduling starting time;
judging whether the current time is the target scheduling starting time or not;
and if the current time is judged to be the target scheduling starting time, scheduling the current timing task and generating a scheduling result of the current timing task.
Optionally, the determining the adjustment time of the current timing task by using the preset scheduling feedback mechanism and the scheduling result of the historical timing task includes:
and acquiring a scheduling result of the historical timing task from a preset database, and determining the adjustment time of the current timing task by using the scheduling result of the historical timing task through a preset scheduling feedback mechanism.
Optionally, after generating the scheduling result of the current timing task, the method further includes:
storing the scheduling result of the current timing task into the preset database, and updating the scheduling result of the historical timing task to obtain the updated scheduling result of the historical timing task;
and acquiring the scheduling result of the updated historical timing task from the preset database, and determining the adjustment time of the next timing task by using the scheduling result of the updated historical timing task through the preset scheduling feedback mechanism.
Optionally, the determining, by using a preset scheduling feedback mechanism, the adjustment time of the current timing task according to the scheduling result of the historical timing task includes:
judging whether the scheduling result of the historical timing task meets a first preset condition or not through a preset scheduling feedback mechanism;
and if so, determining the adjustment time type of the current timing task as a preset time extension type, and determining the first adjustment time of the current timing task based on the preset time extension type.
Optionally, after the step of judging whether the scheduling result of the historical timing task meets the first preset condition through a preset scheduling feedback mechanism, the method further includes:
if not, judging whether the scheduling result of the historical timing task meets a second preset condition or not through the preset scheduling feedback mechanism;
and if so, determining the adjustment time type of the current timing task as a preset time shortening type, and determining the second adjustment time of the current timing task based on the preset time shortening type.
Optionally, the determining the target scheduling start time of the current timing task based on the adjustment time and the preset scheduling time includes:
if the execution type of the current timing task is a preset period type, determining the preset scheduling starting time of the current timing task by using the scheduling time perimeter of the current timing task and the target scheduling starting time of the last timing task;
and determining the target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time.
Optionally, the generating a scheduling result of the current timing task includes:
and generating a scheduling result comprising the target scheduling starting time, the scheduling ending time, the running time and the task running result of the current timing task.
In a second aspect, the present application discloses a timing task scheduling apparatus, including:
the adjusting time determining module is used for determining the adjusting time of the current timing task by utilizing a preset scheduling feedback mechanism and the scheduling result of the historical timing task;
the target time determining module is used for acquiring the preset scheduling starting time of the current timing task and determining the target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time;
the judging module is used for judging whether the current time is the target scheduling starting time;
and the scheduling result generation module is used for scheduling the current timing task and generating a scheduling result of the current timing task if the current scheduling starting time is judged to be the target scheduling starting time.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the timing task scheduling method disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program realizes the steps of the timing task scheduling method disclosed in the foregoing when being executed by a processor.
Therefore, the adjusting time of the current timing task is determined by utilizing a preset scheduling feedback mechanism and the scheduling result of the historical timing task; acquiring preset scheduling starting time of the current timing task, and determining target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time; judging whether the current time is the target scheduling starting time or not; and if the current time is judged to be the target scheduling starting time, scheduling the current timing task and generating a scheduling result of the current timing task. Therefore, the method and the device can determine the adjusting time of the current timing task by utilizing the preset scheduling feedback mechanism and the scheduling result of the historical task, namely can realize reasonable dynamic adjustment of the scheduling time of the task by the scheduling system, then determine the target scheduling starting time by utilizing the preset scheduling starting time and the adjusting time, schedule the current timing task based on the target scheduling starting time, and further realize reasonable and flexible scheduling of the timing task.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a method for scheduling timed tasks according to the present disclosure;
FIG. 2 is a flowchart of a specific method for scheduling a timed task disclosed herein;
FIG. 3 is a diagram illustrating a specific timing task scheduling disclosed herein;
FIG. 4 is a schematic structural diagram of a timing task scheduler disclosed in the present application;
fig. 5 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present invention, and not all 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.
In the traditional implementation process of timing task scheduling, the scheduling time of each task is generally predetermined, and then a program schedules the tasks according to the preset time, so as to ensure the normal operation of the system. However, as scientific technology is continuously developed and a scheduling technology is more generally applied in daily life, a scheduling strategy according to a fixed scheduling time cannot meet new application requirements in reality to a great extent. The application requirements provide new requirements for scheduling, and not only are the characteristics of real-time performance and high reliability of the system required to be met, but also the requirements for timely responding to an emergency and dynamically adjusting the scheduling period are required.
Therefore, the timing task scheduling scheme is correspondingly provided, the reasonable dynamic adjustment of the scheduling time of the tasks by the scheduling system can be realized, and the reasonable and flexible scheduling of the timing tasks is further realized.
Referring to fig. 1, an embodiment of the present application discloses a timing task scheduling method, including:
step S11: and determining the adjusting time of the current timing task by utilizing a preset scheduling feedback mechanism and the scheduling result of the historical timing task.
In this embodiment, the scheduling result of the historical timing task is obtained from the preset database, and then the preset scheduling feedback mechanism determines the adjustment time of the current timing task based on the scheduling result of the historical timing task.
Step S12: and acquiring the preset scheduling starting time of the current timing task, and determining the target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time.
In this embodiment, the determining the target scheduling start time of the current timing task based on the adjustment time and the preset scheduling time specifically includes: if the execution type of the current timing task is a preset cycle type, determining the preset scheduling starting time of the current timing task by using the scheduling time perimeter of the current timing task and the target scheduling starting time of the last timing task; and determining the target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time. For example, if the execution type of the current timed task is a preset cycle type, the scheduling time perimeter of the current timed task is 5 minutes, and the target scheduling start time of the last timed task is 9.
Step S13: and judging whether the current time is the target scheduling starting time.
In this embodiment, it can be understood that, for example, if the target scheduling start time of the current timing task is 9.
Step S14: and if the current time is judged to be the target scheduling starting time, scheduling the current timing task and generating a scheduling result of the current timing task.
In this embodiment, the generating a scheduling result of the current timing task specifically includes: and generating a scheduling result comprising the target scheduling starting time, the scheduling ending time, the running time and the task running result of the current timing task.
In this embodiment, after generating the scheduling result of the current timing task, the method further includes: storing the scheduling result of the current timing task into the preset database, and updating the scheduling result of the historical timing task to obtain the updated scheduling result of the historical timing task; and acquiring the scheduling result of the updated historical timing task from the preset database, and determining the adjustment time of the next timing task by using the scheduling result of the updated historical timing task through the preset scheduling feedback mechanism.
Therefore, the method and the device determine the adjustment time of the current timing task by utilizing a preset scheduling feedback mechanism and the scheduling result of the historical timing task; acquiring preset scheduling starting time of the current timing task, and determining target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time; judging whether the current time is the target scheduling starting time; and if the current time is judged to be the target scheduling starting time, scheduling the current timing task and generating a scheduling result of the current timing task. Therefore, the method and the device can determine the adjusting time of the current timing task by utilizing the preset scheduling feedback mechanism and the scheduling result of the historical task, namely can realize reasonable dynamic adjustment of the scheduling time of the task by the scheduling system, then determine the target scheduling starting time by utilizing the preset scheduling starting time and the adjusting time, schedule the current timing task based on the target scheduling starting time, and further realize reasonable and flexible scheduling of the timing task.
Referring to fig. 2, an embodiment of the present application discloses a specific timing task scheduling method, including:
step S21: and acquiring a scheduling result of the historical timing task from a preset database, and determining the adjustment time of the current timing task by using the scheduling result of the historical timing task through a preset scheduling feedback mechanism.
In this embodiment, the determining, by using a preset scheduling feedback mechanism, the scheduling result of the historical timing task to determine the adjustment time of the current timing task includes: judging whether the scheduling result of the historical timing task meets a first preset condition or not through a preset scheduling feedback mechanism; and if so, determining the adjustment time type of the current timing task as a preset time extension type, and determining the first adjustment time of the current timing task based on the preset time extension type. For example, if the scheduling result of the historical timing task indicates that the current task is more and the load pressure is higher, the preset scheduling feedback mechanism determines that the scheduling result of the historical timing task meets a first preset condition, the adjustment time type of the current timing task is a preset time extension type, that is, the scheduling time of the current timing task needs to be extended, and the preset scheduling feedback mechanism determines that the first adjustment time is extended by, for example, 5 minutes. It can be understood that, under the condition that the system fails to execute the continuous scheduling for multiple times, if the system still operates according to the previous mode, the system resource will be idle, if the system operates in a shorter scheduling period and the scheduling operation result will be persisted in the database, a large number of database records will be generated in a shorter time, a serious person will cause the database to crash due to the sudden increase of the data volume, and further cause the system service crash, and therefore, for the condition that the scheduling period is short, the scheduling process has the data persistence operation, the database crash due to the frequent operation of the database can be avoided, and further cause the service crash. The resource consumption can be effectively reduced, and the effective scheduling rate can be improved.
In this embodiment, after the determining, by using a preset scheduling feedback mechanism, whether the scheduling result of the historical timing task meets a first preset condition, the method further includes: if not, judging whether the scheduling result of the historical timing task meets a second preset condition or not through the preset scheduling feedback mechanism; and if so, determining the adjustment time type of the current timing task as a preset time shortening type, and determining second adjustment time of the current timing task based on the preset time shortening type. It can be understood that, if the scheduling result of the historical timing task does not satisfy the first preset condition, it may be determined whether the scheduling result of the historical timing task satisfies the second preset condition through a preset scheduling feedback mechanism, that is, it is determined whether the current task is smaller than a preset threshold, if so, it indicates that the current load pressure is small, that is, it may be determined that the scheduling result of the historical timing task satisfies the second preset condition, and more tasks may be executed, then the type of the adjustment time of the current timing task is determined as a preset time reduction type, that is, the execution time of the current timing task may be reduced, and then the preset scheduling feedback mechanism is used to determine the second adjustment time, for example, to reduce 5 minutes.
Step S22: and acquiring the preset scheduling starting time of the current timing task, and determining the target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time.
In this embodiment, as shown in a specific timing task scheduling diagram shown in fig. 3, a user sets a preset scheduling start time of each timing task, for example, the preset scheduling start time of the current timing task is 10, if the adjustment time is shortened by 5 minutes, the target scheduling start time of the current timing task is 10.
Step S23: and judging whether the current time is the target scheduling starting time.
Step S24: and if the current time is judged to be the target scheduling starting time, scheduling the current timing task and generating a scheduling result of the current timing task.
Therefore, the target scheduling starting time of the current timing task can be reasonably adjusted, so that the resources of the system can be reasonably planned, the execution efficiency of the timing task is effectively improved, and the normal operation of the system is ensured.
Referring to fig. 4, an embodiment of the present application discloses a timing task scheduling device, including:
an adjustment time determining module 11, configured to determine an adjustment time of a current timing task by using a preset scheduling feedback mechanism and a scheduling result of a historical timing task;
a target time determining module 12, configured to obtain a preset scheduling start time of the current timing task, and determine the target scheduling start time of the current timing task based on the adjustment time and the preset scheduling start time;
a judging module 13, configured to judge whether the current time is the target scheduling start time;
and a scheduling result generating module 14, configured to schedule the current timing task and generate a scheduling result of the current timing task if it is determined that the current timing task is the target scheduling start time.
Therefore, the method and the device determine the adjustment time of the current timing task by utilizing a preset scheduling feedback mechanism and the scheduling result of the historical timing task; acquiring preset scheduling starting time of the current timing task, and determining target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time; judging whether the current time is the target scheduling starting time or not; and if the current time is judged to be the target scheduling starting time, scheduling the current timing task and generating a scheduling result of the current timing task. Therefore, the method and the device can determine the adjusting time of the current timing task by utilizing the preset scheduling feedback mechanism and the scheduling result of the historical task, namely can realize reasonable dynamic adjustment of the scheduling time of the task by the scheduling system, then determine the target scheduling starting time by utilizing the preset scheduling starting time and the adjusting time, schedule the current timing task based on the target scheduling starting time, and further realize reasonable and flexible scheduling of the timing task.
In some embodiments, the adjustment time determining module 11 includes:
and the adjusting time determining unit of the current task is used for acquiring the scheduling result of the historical timing task from a preset database and determining the adjusting time of the current timing task by utilizing the scheduling result of the historical timing task through a preset scheduling feedback mechanism.
In some specific embodiments, the timed task scheduling apparatus includes:
the adjustment time determining unit of the next task is used for storing the scheduling result of the current timing task into the preset database and updating the scheduling result of the historical timing task to obtain the scheduling result of the updated historical timing task; and acquiring the scheduling result of the updated historical timing task from the preset database, and determining the adjustment time of the next timing task by using the scheduling result of the updated historical timing task through the preset scheduling feedback mechanism.
In some embodiments, the adjustment time determining module 11 includes:
the first adjusting time determining unit is used for judging whether the scheduling result of the historical timing task meets a first preset condition or not through a preset scheduling feedback mechanism; and if so, determining the adjustment time type of the current timing task as a preset time extension type, and determining the first adjustment time of the current timing task based on the preset time extension type.
In some specific embodiments, the timed task scheduling apparatus includes:
a second adjustment time determining unit, configured to, if the historical timing task is not satisfied, determine, through a preset scheduling feedback mechanism, whether a scheduling result of the historical timing task satisfies a second preset condition; and if so, determining the adjustment time type of the current timing task as a preset time shortening type, and determining the second adjustment time of the current timing task based on the preset time shortening type.
In some embodiments, the target time determination module 12 includes:
a target scheduling start time determining unit, configured to determine a preset scheduling start time of the current timing task by using a scheduling time circumference of the current timing task and a target scheduling start time of a last timing task if an execution type of the current timing task is a preset cycle type; and determining the target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time.
In some specific embodiments, the scheduling result generating module 14 includes:
and the scheduling result generating unit of the current task is used for generating a scheduling result comprising the target scheduling starting time, the scheduling ending time, the running time and the task running result of the current timing task.
Further, the embodiment of the application also provides electronic equipment. Fig. 5 is a block diagram of electronic device 20 shown in accordance with an exemplary embodiment, and the contents of the diagram should not be construed as limiting the scope of use of the present application in any way.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The method specifically comprises the following steps: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is configured to store a computer program, which is loaded and executed by the processor 21 to implement the following steps:
determining the adjustment time of the current timing task by utilizing a preset scheduling feedback mechanism and the scheduling result of the historical timing task;
acquiring a preset scheduling starting time of the current timing task, and determining a target scheduling starting time of the current timing task based on the adjustment time and the preset scheduling starting time;
judging whether the current time is the target scheduling starting time;
and if the current time is judged to be the target scheduling starting time, scheduling the current timing task and generating a scheduling result of the current timing task.
In some embodiments, the processor may specifically implement the following steps by executing the computer program stored in the memory:
and acquiring a scheduling result of the historical timing task from a preset database, and determining the adjustment time of the current timing task by using the scheduling result of the historical timing task through a preset scheduling feedback mechanism.
In some embodiments, the processor, by executing the computer program stored in the memory, may specifically implement the following steps:
storing the scheduling result of the current timing task into the preset database, and updating the scheduling result of the historical timing task to obtain the updated scheduling result of the historical timing task;
and acquiring the scheduling result of the updated historical timing task from the preset database, and determining the adjustment time of the next timing task by using the scheduling result of the updated historical timing task through the preset scheduling feedback mechanism.
In some embodiments, the processor, by executing the computer program stored in the memory, may specifically implement the following steps:
judging whether the scheduling result of the historical timing task meets a first preset condition or not through a preset scheduling feedback mechanism;
and if so, determining the adjustment time type of the current timing task as a preset time extension type, and determining the first adjustment time of the current timing task based on the preset time extension type.
In some embodiments, the processor, by executing the computer program stored in the memory, may specifically implement the following steps:
if not, judging whether the scheduling result of the historical timing task meets a second preset condition or not through a preset scheduling feedback mechanism;
and if so, determining the adjustment time type of the current timing task as a preset time shortening type, and determining second adjustment time of the current timing task based on the preset time shortening type.
In some embodiments, the processor, by executing the computer program stored in the memory, may specifically implement the following steps:
if the execution type of the current timing task is a preset period type, determining the preset scheduling starting time of the current timing task by using the scheduling time perimeter of the current timing task and the target scheduling starting time of the last timing task;
and determining the target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time.
In some embodiments, the processor, by executing the computer program stored in the memory, may further include the steps of:
and generating a scheduling result comprising the target scheduling starting time, the scheduling ending time, the running time and the task running result of the current timing task.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to acquire external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
In addition, the storage 22 is used as a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., the resources stored thereon include an operating system 221, a computer program 222, data 223, etc., and the storage may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling hardware devices and computer programs 222 on the electronic device, so as to implement operations and processing of the mass data 223 in the memory 22 by the processor 21, and may be Windows, unix, linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the timed task scheduling method performed by the electronic device disclosed in any of the foregoing embodiments. The data 223 may include data received by the electronic device and transmitted from an external device, or may include data collected by the input/output interface 25 itself.
Further, an embodiment of the present application further discloses a computer-readable storage medium, where a computer program is stored in the storage medium, and when the computer program is loaded and executed by a processor, the method steps executed in the scheduling process of the timed task disclosed in any of the foregoing embodiments are implemented.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The timing task scheduling method, apparatus, device and medium provided by the present invention are introduced in detail, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for scheduling a timed task, comprising:
determining the adjustment time of the current timing task by utilizing a preset scheduling feedback mechanism and the scheduling result of the historical timing task;
acquiring preset scheduling starting time of the current timing task, and determining target scheduling starting time of the current timing task based on the adjustment time and the preset scheduling starting time;
judging whether the current time is the target scheduling starting time;
and if the current time is judged to be the target scheduling starting time, scheduling the current timing task and generating a scheduling result of the current timing task.
2. The method for scheduling timed tasks according to claim 1, wherein the determining the adjustment time of the current timed task by using a preset scheduling feedback mechanism and the scheduling result of the historical timed task comprises:
and acquiring a scheduling result of the historical timing task from a preset database, and determining the adjustment time of the current timing task by using the scheduling result of the historical timing task through a preset scheduling feedback mechanism.
3. The method for scheduling the timed task according to claim 2, wherein after the generating of the scheduling result of the current timed task, the method further comprises:
storing the scheduling result of the current timing task into the preset database, and updating the scheduling result of the historical timing task to obtain the updated scheduling result of the historical timing task;
and acquiring the scheduling result of the updated historical timing task from the preset database, and determining the adjustment time of the next timing task by using the scheduling result of the updated historical timing task through the preset scheduling feedback mechanism.
4. The method according to claim 2, wherein the determining the adjustment time of the current timing task by using the scheduling result of the historical timing task through a preset scheduling feedback mechanism comprises:
judging whether the scheduling result of the historical timing task meets a first preset condition or not through a preset scheduling feedback mechanism;
and if so, determining the adjustment time type of the current timing task as a preset time extension type, and determining the first adjustment time of the current timing task based on the preset time extension type.
5. The method for scheduling timed tasks according to claim 4, wherein after determining whether the scheduling result of the historical timed task meets the first preset condition through a preset scheduling feedback mechanism, the method further comprises:
if not, judging whether the scheduling result of the historical timing task meets a second preset condition or not through the preset scheduling feedback mechanism;
and if so, determining the adjustment time type of the current timing task as a preset time shortening type, and determining the second adjustment time of the current timing task based on the preset time shortening type.
6. The method for scheduling a timed task according to any one of claims 1 to 5, wherein said determining the target scheduling start time of the current timed task based on the adjusted time and the preset scheduling time comprises:
if the execution type of the current timing task is a preset period type, determining the preset scheduling starting time of the current timing task by using the scheduling time perimeter of the current timing task and the target scheduling starting time of the last timing task;
and determining the target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time.
7. The method for scheduling a timed task according to claim 1, wherein the step of generating the scheduling result of the current timed task comprises:
and generating a scheduling result comprising the target scheduling starting time, the scheduling ending time, the running time and the task running result of the current timing task.
8. A timed task scheduler, comprising:
the adjusting time determining module is used for determining the adjusting time of the current timing task by utilizing a preset scheduling feedback mechanism and a scheduling result of the historical timing task;
the target time determining module is used for acquiring the preset scheduling starting time of the current timing task and determining the target scheduling starting time of the current timing task based on the adjusting time and the preset scheduling starting time;
the judging module is used for judging whether the current time is the target scheduling starting time;
and the scheduling result generation module is used for scheduling the current timing task and generating a scheduling result of the current timing task if the current scheduling starting time is judged to be the target scheduling starting time.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing said computer program to carry out the steps of the method of timed task scheduling according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program realizes the steps of the method for scheduling timed tasks according to any one of claims 1 to 7 when executed by a processor.
CN202211259558.2A 2022-10-14 2022-10-14 Timing task scheduling method, device, equipment and medium Pending CN115576670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211259558.2A CN115576670A (en) 2022-10-14 2022-10-14 Timing task scheduling method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211259558.2A CN115576670A (en) 2022-10-14 2022-10-14 Timing task scheduling method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115576670A true CN115576670A (en) 2023-01-06

Family

ID=84584217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211259558.2A Pending CN115576670A (en) 2022-10-14 2022-10-14 Timing task scheduling method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115576670A (en)

Similar Documents

Publication Publication Date Title
WO2021008543A1 (en) Resource scheduling method and electronic device
CN102789305B (en) Postponing suspend
US20160210174A1 (en) Hybrid Scheduler and Power Manager
CN110795238B (en) Load calculation method and device, storage medium and electronic equipment
JP2002099432A (en) System of computing processing, control method thereof, system for task control, method therefor and record medium
JP2002099433A (en) System of computing processing, control method system for task control, method therefor and record medium
CN110633152A (en) Method and device for realizing horizontal scaling of service cluster
US10037225B2 (en) Method and system for scheduling computing
CN109840141A (en) Thread control method, device, electronic equipment and storage medium based on cloud monitoring
CN114840323A (en) Task processing method, device, system, electronic equipment and storage medium
CN112508768A (en) Single-operator multi-model pipeline reasoning method, system, electronic equipment and medium
CN114490048A (en) Task execution method and device, electronic equipment and computer storage medium
CN110673958B (en) Frequency modulation method, frequency modulation device, storage medium and electronic equipment
US9037888B2 (en) Multi-core processor system, electrical power control method, and computer product for migrating process from one core to another
CN115576670A (en) Timing task scheduling method, device, equipment and medium
CN114253683B (en) Task processing method and device, electronic equipment and storage medium
CN115269145A (en) High-energy-efficiency heterogeneous multi-core scheduling method and device for offshore unmanned equipment
CN115480890A (en) Energy-saving scheduling method and device for dynamic priority non-precise tasks of probability hybrid critical system
CN110647401B (en) Frequency modulation method, frequency modulation device, storage medium and electronic equipment
CN114035926A (en) Application thread scheduling method and device, storage medium and electronic equipment
CN113918002A (en) Frequency modulation method, frequency modulation device, storage medium and electronic equipment
CN114237896A (en) Distributed node resource dynamic scheduling method and device
CN115454640B (en) Task processing system and self-adaptive task scheduling method
CN114003367B (en) Risk monitoring method, device, equipment and storage medium
WO2012081079A1 (en) Information processing device, method of controlling power, and power control program

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