CN111679898A - Scheduling method and device of timing task, computer equipment and readable storage medium - Google Patents

Scheduling method and device of timing task, computer equipment and readable storage medium Download PDF

Info

Publication number
CN111679898A
CN111679898A CN202010512104.6A CN202010512104A CN111679898A CN 111679898 A CN111679898 A CN 111679898A CN 202010512104 A CN202010512104 A CN 202010512104A CN 111679898 A CN111679898 A CN 111679898A
Authority
CN
China
Prior art keywords
task
scheduled
information
scheduling
time
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
CN202010512104.6A
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010512104.6A priority Critical patent/CN111679898A/en
Publication of CN111679898A publication Critical patent/CN111679898A/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
    • G06F9/4887Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues involving deadlines, e.g. rate based, periodic

Abstract

The embodiment of the invention provides a scheduling method and device of a timing task, computer equipment and a readable storage medium, wherein the method comprises the following steps: acquiring timing task transaction information, wherein the timing task transaction information comprises calling information of different tasks and different calling information of the same task; judging a task to be scheduled which reaches the execution time according to the current time of the system machine and the execution time included by the calling information in the timing task transaction information; and scheduling the judged task to be scheduled according to the calling information in the timing task transaction information. The method calls the task for multiple times based on different calling information with different execution times in the timing task transaction information, so that the task is prevented from being configured for multiple times based on different execution times to generate multiple timing tasks, and the method is favorable for preventing the number of the timing tasks from being too large; the tasks are called based on the timing task transaction information, so that traversing and querying of a large number of timing tasks can be avoided, and system resources occupied by timing task management can be reduced.

Description

Scheduling method and device of timing task, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of task scheduling technologies, and in particular, to a method and an apparatus for scheduling a timed task, a computer device, and a readable storage medium.
Background
In project development, the scene application of the timing task scheduling is very wide. The timing tasks are divided into periodic tasks and time-specific tasks. Timer tools of Spring, open source toolkits Quartz and the like in the market provide technical support for timing task execution.
The timing of the execution of different tasks is not consistent for different tasks, and the execution time must be configured for each individual task. In addition, in practical applications, there is a need that a plurality of execution times must be configured for the same execution task. However, the Spring Timer and the Qartz may configure the execution task, the first execution task, the periodic execution time interval, and the like, but cannot satisfy the setting of different call parameters configured by the same task. If a plurality of job tasks exist, the job tasks need to be configured into different tasks for a plurality of times according to different calling parameters, namely, the same task is configured for a plurality of times based on different calling parameters to obtain a plurality of different timing tasks, so that the number of the timing tasks is too large, and the web application has upper limit on the number of the timing tasks; when the number of the timing tasks is too large, it is difficult to finely manage, and the management of a large number of timing tasks also consumes a large amount of system resources.
Disclosure of Invention
The embodiment of the invention provides a scheduling method of a timing task, which aims to solve the technical problems that the same task cannot be configured with different calling parameters and the number of the timing tasks is large, so that system resources are consumed in the prior art. The method comprises the following steps:
acquiring timing task transaction information, wherein the timing task transaction information comprises calling information of different tasks and different calling information of the same task;
acquiring the current time of a system machine;
judging a task to be scheduled which reaches the execution time according to the current time and the execution time included by the calling information in the timing task transaction information;
and scheduling the judged task to be scheduled according to the calling information in the timing task transaction information.
The embodiment of the invention also provides a scheduling device of the timing task, which is used for solving the technical problems that the same task cannot be configured with different calling parameters and the number of the timing tasks is large, so that system resources are consumed in the prior art. The device includes:
the transaction information acquisition module is used for acquiring timing task transaction information which comprises calling information of different tasks and different calling information of the same task;
the time acquisition module is used for acquiring the current time of the system machine;
the task screening module is used for judging the task to be scheduled which reaches the execution time according to the current time and the execution time included by the calling information in the timed task transaction information;
and the task scheduling module is used for scheduling the judged task to be scheduled according to the calling information in the timing task transaction information.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the scheduling method of any timing task when executing the computer program so as to solve the technical problems that the same task cannot be configured with different calling parameters and the number of the timing tasks is large, so that the system resources are consumed in the prior art.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the scheduling method of any timing task, so as to solve the technical problems that the same task cannot be configured with different calling parameters and the number of timing tasks is large, which causes consumption of system resources in the prior art.
In the embodiment of the invention, timing task transaction information is provided, the timing task transaction information comprises calling information of different tasks and different calling information of the same task, namely the timing task transaction information comprises all different calling information of each task, a task to be scheduled reaching the execution time can be judged based on the current time of a system machine and the execution time included by the calling information in the timing task transaction information, and finally the judged task to be scheduled can be scheduled according to the calling information in the timing task transaction information. Because the timing task transaction information can comprise calling information of different tasks and different calling information of the same task, even under the condition that the same task needs to be configured with a plurality of different execution times, the task can be written into the timing task transaction information based on the different calling information of different execution times, so that the number of the task is not changed or increased, the task can be called for many times based on the different calling information of different execution times in the timing task transaction information, the task is prevented from being configured for many times based on different execution times to generate a plurality of timing tasks, the number of the timing tasks is reduced or the number of the timing tasks is controlled to increase, and the number of the timing tasks is prevented from being too large; meanwhile, tasks are called based on the timing task transaction information, so that traversing and querying of a large number of timing tasks can be avoided, fine management of the timing tasks is facilitated, and system resources occupied by timing task management are reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
fig. 1 is a flowchart of a scheduling method of a timing task according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a scheduling method for implementing the above timing task according to an embodiment of the present invention;
FIG. 3 is a block diagram of a computer device according to an embodiment of the present invention;
fig. 4 is a block diagram of a scheduling apparatus for timing tasks according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the following embodiments and accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
In an embodiment of the present invention, a method for scheduling a timing task is provided, and as shown in fig. 1, the method includes:
step 102: acquiring timing task transaction information, wherein the timing task transaction information comprises calling information of different tasks and different calling information of the same task;
step 104: acquiring the current time of a system machine;
step 106: judging a task to be scheduled which reaches the execution time according to the current time and the execution time included by the calling information in the timing task transaction information;
step 108: and scheduling the judged task to be scheduled according to the calling information in the timing task transaction information.
As can be seen from the flow shown in fig. 1, in the embodiment of the present invention, timing task transaction information is provided, where the timing task transaction information includes call information of different tasks and different call information of the same task, that is, the timing task transaction information includes all different call information of each task, a task to be scheduled, which reaches an execution time, can be determined based on a current time of a system machine and an execution time included in the call information in the timing task transaction information, and finally the determined task to be scheduled is scheduled according to the call information in the timing task transaction information. Because the timing task transaction information can comprise calling information of different tasks and different calling information of the same task, even under the condition that the same task needs to be configured with a plurality of different execution times, the task can be written into the timing task transaction information based on the different calling information of different execution times, so that the number of the task is not changed or increased, the task can be called for many times based on the different calling information of different execution times in the timing task transaction information, the task is prevented from being configured for many times based on different execution times to generate a plurality of timing tasks, the number of the timing tasks is reduced or the number of the timing tasks is controlled to increase, and the number of the timing tasks is prevented from being too large; meanwhile, tasks are called based on the timing task transaction information, so that traversing and querying of a large number of timing tasks can be avoided, fine management of the timing tasks is facilitated, and system resources occupied by timing task management are reduced.
In specific implementation, in the process of establishing the timed task transaction information, the call information corresponding to each task based on each call transaction can be determined according to the application transaction condition of each task, different call information corresponding to each task is written into the timed task transaction information, the call based on each call transaction is not required to be configured into a timed task, and then each task can be controlled and called based on the timed task transaction information, so that the problems of multi-task scheduling, time-based fixed-point execution of the same task and the like are solved, and a large number of timed tasks are managed and scheduled by configuring parameter information.
In specific implementation, the call information of each task in the timed task transaction information may include any information item required for call, for example, the information item may include a transaction name, a method used by the call transaction, a transaction type (a temporary task, a regular task), a next execution time of the transaction, a parameter of the call transaction, a transaction execution time interval, a transaction weight priority, a transaction write time, and the like, so as to form a unified standard specification.
In specific implementation, the presentation form of the timing task transaction information is not limited in this application, and may be, for example, a file form or a table form. Specifically, in the above timed task transaction information, each task may individually correspond to one piece of call information based on each call transaction. For example, task a corresponds to a call, task B corresponds to a call, task C corresponds to a call C1 based on call transaction 1, and task C corresponds to a call C2 based on call transaction 2.
In specific implementation, the timing task transaction information can be constructed on the basis of Quartz application. The timing task transaction information can meet the requirement of single task scheduling, not only can the reading of the loaded task transaction information be met and a corresponding method be called, but also the situation that due to the fact that a timing task list is too many, the previous single task scheduling is not executed, the next single task scheduling time point arrives, and conflict execution occurs is prevented, therefore, a global transaction lock is adopted in the timing task transaction information, and redis is used as a global lock identifier.
In specific implementation, a service interface can be exposed to the outside, and functions of constraint checking, writing, updating, deleting and the like of a common timing task are provided, so that control over transaction information of the timing task is met.
In a specific implementation, in a process of scheduling a task, in order to improve scheduling efficiency, in this embodiment, scheduling the determined task to be scheduled according to the call information in the transaction information of the timed task includes:
and when the task to be scheduled is a plurality of tasks, the tasks to be scheduled are sequenced according to the priority in the calling information corresponding to the task to be scheduled and the writing sequence of the calling information corresponding to the task to be scheduled, and the tasks to be scheduled are scheduled according to the sequencing. When a plurality of tasks to be scheduled are screened out at the same time, the tasks to be scheduled are sequenced based on the priority in the calling information and the sequence of the calling information written into the transaction information of the timing task corresponding to the tasks to be scheduled (the sequence can be determined based on the time of the calling information written into the transaction information of the timing task), and then the tasks to be scheduled are scheduled according to the sequence.
In specific implementation, in order to further improve scheduling efficiency, in this embodiment, call information of a temporary scheduling type that has been scheduled in timing task transaction information is deleted in real time, for example, each task corresponds to one call information based on each call transaction in the timing task transaction information, the call information includes a transaction type, the transaction type includes a conventional task and a temporary task, and when the transaction type in the call information corresponding to the current call transaction of the task to be scheduled is a temporary task, after the task to be scheduled is scheduled, the call information corresponding to the current call transaction of the task to be scheduled is deleted in the timing task transaction information.
In specific implementation, the timing task transaction information includes call information of two types of transaction types, and the transaction types include a conventional task and a temporary task. And the conventional task is a conventional routine task, and the bottoming design is carried out during the design application and is used as a conventional parameter. And the temporary task writes the work (including temporary one-time and periodic) needing the temporary assistance of the timed task into the transaction information of the timed task according to the requirement after the application program designs and finishes certain task work, wherein the written content comprises a transaction name, a method for calling the transaction, a transaction type (temporary and conventional), the next execution time of the transaction (current machine time), parameters required by calling a corresponding method and a current timestamp.
In specific implementation, the method aims to flexibly configure calling information, flexibly control task scheduling and dynamically adjust the idleness of the system so as to achieve the maximization of system resource utilization. In this embodiment, the method further includes:
receiving a scheduling parameter configuration request, wherein the request comprises scheduling parameters to be configured. For example, scheduling parameters such as an execution time interval in the call information can be flexibly configured;
and updating the transaction information of the timing task according to the scheduling parameter to be configured.
In specific implementation, when the system running the scheduling method for the timed task and the service system are laid out in the same time zone, the task to be scheduled, which reaches the execution time, may be determined directly according to the current time of the system machine and the execution time included in the call information in the transaction information of the timed task, and then the task to be scheduled is scheduled, so that the scheduling requirements of any different execution times of the task may be met, when the system running the scheduling method for the timed task and the service system are laid out in different time zones, in order to meet the scheduling requirements of the execution times in different time zones, in this embodiment, the method further includes: receiving a scheduling request, wherein the scheduling request comprises time information of a sending end of the scheduling request; judging whether the time information and the current time belong to the time of one time zone, if so, judging a task to be scheduled reaching the execution time according to the current time and the execution time included by calling information in the timed task transaction information; if not, converting the time information into the time of the time zone to which the current time belongs, and judging the task to be scheduled reaching the execution time according to the converted time and the execution time included in the calling information in the timed task transaction information.
In specific implementation, the method can also judge the quantity of the temporary task from the side through the data snapshot of the timing task transaction information, and can also become a judgment index of system resource consumption.
The implementation process of the scheduling method of the above timing task is described below with reference to fig. 2, and the process includes the following steps:
1. receiving, by a configuration center, a setting of a configuration parameter;
2. updating the configuration parameters to local configuration;
3. the local configuration updates the configuration parameters into the timing task transaction information so as to update the timing task transaction information;
4. managing the timing task according to the transaction information of the timing task, judging the task to be scheduled which reaches the execution time according to the current time of the system machine and the execution time included by the calling information in the transaction information of the timing task, and screening the task to be scheduled;
5. according to the priority in the calling information corresponding to the tasks to be scheduled and the writing sequence of the calling information corresponding to the tasks to be scheduled, sequencing and outputting the tasks to be scheduled;
6. scheduling a task to be scheduled, judging the transaction type of the task to be scheduled, and deleting calling information corresponding to the current calling transaction of the task to be scheduled in the transaction information of the timed task after scheduling the task to be scheduled when the transaction type of the task to be scheduled is a temporary task;
7. and calling a certain task to execute, wherein the called method judges whether an execution condition is met or not according to corresponding data retrieved by the entry register in the execution process, and rewrites back the timing task transaction information to wait for task scheduling at the next time if the condition is not met. And if the calling fails, writing the timing task table of the failure into the timing task table of the failure, and needing operation and maintenance intervention analysis.
In this embodiment, a computer device is provided, as shown in fig. 3, and includes a memory 302, a processor 304, and a computer program stored on the memory and executable on the processor, and the processor implements any of the above scheduling methods of the timed tasks when executing the computer program.
In particular, the computer device may be a computer terminal, a server or a similar computing device.
In the present embodiment, there is provided a computer-readable storage medium storing a computer program for executing the scheduling method of the above-described arbitrary timed task.
In particular, computer-readable storage media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable storage medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Based on the same inventive concept, the embodiment of the present invention further provides a scheduling apparatus for timing tasks, as described in the following embodiments. Because the principle of the scheduling device for the timing task for solving the problem is similar to the scheduling method for the timing task, the implementation of the scheduling device for the timing task can refer to the implementation of the scheduling method for the timing task, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a configuration of a scheduling apparatus for a timed task according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes:
a transaction information obtaining module 402, configured to obtain timing task transaction information, where the timing task transaction information includes call information of different tasks and different call information of the same task;
a time obtaining module 404, configured to obtain a current time of the system machine;
the task screening module 406 is configured to determine, according to the current time and the execution time included in the call information in the timed task transaction information, a task to be scheduled that reaches the execution time;
and a task scheduling module 408, configured to schedule the determined task to be scheduled according to the call information in the transaction information of the timing task.
In one embodiment, the scheduling the determined task to be scheduled according to the call information in the transaction information of the timed task includes:
and when the task to be scheduled is a plurality of tasks, the tasks to be scheduled are sequenced according to the priority in the calling information corresponding to the task to be scheduled and the writing sequence of the calling information corresponding to the task to be scheduled, and the tasks to be scheduled are scheduled according to the sequencing.
In one embodiment, further comprising:
and the calling information adjusting module is used for enabling each task in the timed task transaction information to correspond to calling information based on each calling transaction, the calling information comprises a transaction type, the transaction type comprises a conventional task and a temporary task, and when the transaction type in the calling information corresponding to the current calling transaction of the task to be scheduled is the temporary task, the calling information corresponding to the current calling transaction of the task to be scheduled is deleted in the timed task transaction information after the task to be scheduled is scheduled.
In one embodiment, further comprising:
a configuration request receiving module, configured to receive a scheduling parameter configuration request, where the request includes a scheduling parameter to be configured;
and the transaction information updating module is used for updating the transaction information of the timing task according to the scheduling parameter to be configured.
In one embodiment, further comprising:
a scheduling request receiving module, configured to receive a scheduling request, where the scheduling request includes time information of a sending end of the scheduling request;
the time judging module is used for judging whether the time information and the current time belong to the time of one time zone or not;
the task screening module is further configured to, if yes, determine a task to be scheduled that reaches execution time according to the current time and execution time included in the calling information in the timed task transaction information; if not, converting the time information into the time of the time zone to which the current time belongs, and judging the task to be scheduled reaching the execution time according to the converted time and the execution time included in the calling information in the timed task transaction information.
The embodiment of the invention realizes the following technical effects: the method comprises the steps of providing timing task transaction information, wherein the timing task transaction information comprises calling information of different tasks and different calling information of the same task, namely the timing task transaction information comprises all different calling information of each task, judging a task to be scheduled reaching the execution time based on the current time of a system machine and the execution time included by the calling information in the timing task transaction information, and finally scheduling the judged task to be scheduled according to the calling information in the timing task transaction information. Because the timing task transaction information can comprise calling information of different tasks and different calling information of the same task, even under the condition that the same task needs to be configured with a plurality of different execution times, the task can be written into the timing task transaction information based on the different calling information of different execution times, so that the number of the task is not changed or increased, the task can be called for many times based on the different calling information of different execution times in the timing task transaction information, the task is prevented from being configured for many times based on different execution times to generate a plurality of timing tasks, the number of the timing tasks is reduced or the number of the timing tasks is controlled to increase, and the number of the timing tasks is prevented from being too large; meanwhile, tasks are called based on the timing task transaction information, so that traversing and querying of a large number of timing tasks can be avoided, fine management of the timing tasks is facilitated, and system resources occupied by timing task management are reduced.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes may be made to the embodiment of the present invention by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for scheduling a timed task, comprising:
acquiring timing task transaction information, wherein the timing task transaction information comprises calling information of different tasks and different calling information of the same task;
acquiring the current time of a system machine;
judging a task to be scheduled which reaches the execution time according to the current time and the execution time included by the calling information in the timing task transaction information;
and scheduling the judged task to be scheduled according to the calling information in the timing task transaction information.
2. The method for scheduling a timed task according to claim 1, wherein the task to be scheduled, which is scheduled and determined according to the call information in the transaction information of the timed task, comprises:
and when the task to be scheduled is a plurality of tasks, the tasks to be scheduled are sequenced according to the priority in the calling information corresponding to the task to be scheduled and the writing sequence of the calling information corresponding to the task to be scheduled, and the tasks to be scheduled are scheduled according to the sequencing.
3. The method of scheduling a timed task according to claim 1, further comprising:
and when the transaction type in the calling information corresponding to the current calling transaction of the task to be scheduled is a temporary task, deleting the calling information corresponding to the current calling transaction of the task to be scheduled in the transaction information of the timed task after scheduling the task to be scheduled.
4. A method of scheduling timed tasks according to any of claims 1 to 3, further comprising:
receiving a scheduling parameter configuration request, wherein the request comprises scheduling parameters to be configured;
and updating the transaction information of the timing task according to the scheduling parameter to be configured.
5. A method of scheduling timed tasks according to any of claims 1 to 3, further comprising:
receiving a scheduling request, wherein the scheduling request comprises time information of a sending end of the scheduling request;
judging whether the time information and the current time belong to the time of one time zone, if so, judging a task to be scheduled reaching the execution time according to the current time and the execution time included by calling information in the timed task transaction information; if not, converting the time information into the time of the time zone to which the current time belongs, and judging the task to be scheduled reaching the execution time according to the converted time and the execution time included in the calling information in the timed task transaction information.
6. A device for scheduling timed tasks, comprising:
the transaction information acquisition module is used for acquiring timing task transaction information which comprises calling information of different tasks and different calling information of the same task;
the time acquisition module is used for acquiring the current time of the system machine;
the task screening module is used for judging the task to be scheduled which reaches the execution time according to the current time and the execution time included by the calling information in the timed task transaction information;
and the task scheduling module is used for scheduling the judged task to be scheduled according to the calling information in the timing task transaction information.
7. The apparatus for scheduling a timed task according to claim 6, wherein scheduling the determined task to be scheduled according to the call information in the transaction information of the timed task includes:
and when the task to be scheduled is a plurality of tasks, the tasks to be scheduled are sequenced according to the priority in the calling information corresponding to the task to be scheduled and the writing sequence of the calling information corresponding to the task to be scheduled, and the tasks to be scheduled are scheduled according to the sequencing.
8. The scheduled task of claim 6, further comprising:
and the calling information adjusting module is used for enabling each task in the timed task transaction information to correspond to calling information based on each calling transaction, the calling information comprises a transaction type, the transaction type comprises a conventional task and a temporary task, and when the transaction type in the calling information corresponding to the current calling transaction of the task to be scheduled is the temporary task, the calling information corresponding to the current calling transaction of the task to be scheduled is deleted in the timed task transaction information after the task to be scheduled is scheduled.
9. A scheduled task scheduling apparatus according to any of claims 6 to 8, further comprising:
a configuration request receiving module, configured to receive a scheduling parameter configuration request, where the request includes a scheduling parameter to be configured;
and the transaction information updating module is used for updating the transaction information of the timing task according to the scheduling parameter to be configured.
10. A scheduled task scheduling apparatus according to any of claims 6 to 8, further comprising:
a scheduling request receiving module, configured to receive a scheduling request, where the scheduling request includes time information of a sending end of the scheduling request;
the time judging module is used for judging whether the time information and the current time belong to the time of one time zone or not;
the task screening module is further configured to, if yes, determine a task to be scheduled that reaches execution time according to the current time and execution time included in the calling information in the timed task transaction information; if not, converting the time information into the time of the time zone to which the current time belongs, and judging the task to be scheduled reaching the execution time according to the converted time and the execution time included in the calling information in the timed task transaction information.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of scheduling timed tasks according to any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the scheduling method of a timed task according to any one of claims 1 to 5.
CN202010512104.6A 2020-06-08 2020-06-08 Scheduling method and device of timing task, computer equipment and readable storage medium Pending CN111679898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010512104.6A CN111679898A (en) 2020-06-08 2020-06-08 Scheduling method and device of timing task, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010512104.6A CN111679898A (en) 2020-06-08 2020-06-08 Scheduling method and device of timing task, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN111679898A true CN111679898A (en) 2020-09-18

Family

ID=72435144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010512104.6A Pending CN111679898A (en) 2020-06-08 2020-06-08 Scheduling method and device of timing task, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111679898A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015971A1 (en) * 2002-07-03 2004-01-22 Quicksilver Technology, Inc. Method and system for real-time multitasking
CN106487895A (en) * 2016-10-14 2017-03-08 深圳市欧瑞博电子有限公司 Time control method and device
CN106775977A (en) * 2016-12-09 2017-05-31 北京小米移动软件有限公司 Method for scheduling task, apparatus and system
CN108647083A (en) * 2018-04-28 2018-10-12 北京京东金融科技控股有限公司 Task executing method, device, system, electronic equipment and computer-readable medium
CN109725993A (en) * 2018-06-01 2019-05-07 中国平安人寿保险股份有限公司 Task executing method, device, equipment and computer readable storage medium
CN109901920A (en) * 2019-01-18 2019-06-18 中国平安财产保险股份有限公司 Method for scheduling task and device, electric terminal
CN110046039A (en) * 2019-03-28 2019-07-23 厦门网宿有限公司 Method for scheduling task and system, control centre's server and storage medium
CN110888725A (en) * 2019-11-21 2020-03-17 北京明略软件系统有限公司 Task management method and device, readable storage medium and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015971A1 (en) * 2002-07-03 2004-01-22 Quicksilver Technology, Inc. Method and system for real-time multitasking
CN106487895A (en) * 2016-10-14 2017-03-08 深圳市欧瑞博电子有限公司 Time control method and device
CN106775977A (en) * 2016-12-09 2017-05-31 北京小米移动软件有限公司 Method for scheduling task, apparatus and system
CN108647083A (en) * 2018-04-28 2018-10-12 北京京东金融科技控股有限公司 Task executing method, device, system, electronic equipment and computer-readable medium
CN109725993A (en) * 2018-06-01 2019-05-07 中国平安人寿保险股份有限公司 Task executing method, device, equipment and computer readable storage medium
CN109901920A (en) * 2019-01-18 2019-06-18 中国平安财产保险股份有限公司 Method for scheduling task and device, electric terminal
CN110046039A (en) * 2019-03-28 2019-07-23 厦门网宿有限公司 Method for scheduling task and system, control centre's server and storage medium
CN110888725A (en) * 2019-11-21 2020-03-17 北京明略软件系统有限公司 Task management method and device, readable storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US11392561B2 (en) Data migration using source classification and mapping
CN109558234B (en) Timed task scheduling method and device
CN111682973B (en) Method and system for arranging edge cloud
WO2023045467A1 (en) Container cpu resource scheduling and isolation method and apparatus, and storage medium and electronic device
CN105786603A (en) High-concurrency service processing system and method based on distributed mode
CN115048205B (en) ETL scheduling platform, deployment method thereof and computer-readable storage medium
CN105279261A (en) Dynamic extensible database filing method and system
US8555286B2 (en) Method, system, and apparatus for establishing a software configurable computing environment
CN113590320A (en) Resource processing method, device, equipment and medium for distributed batch task scheduling
US10061612B1 (en) Job scheduler for remote maintenance of servers and workstations
CN115543548B (en) Configuration method, device and equipment of container group and readable storage medium
CN114489761B (en) Service integration and application integration method based on container cluster
CN101980475B (en) Web service configuration management method and device
CN110968406B (en) Method, device, storage medium and processor for processing task
CN111679898A (en) Scheduling method and device of timing task, computer equipment and readable storage medium
US20050086665A1 (en) Autonomous device driver
CN115617459A (en) Method, device and equipment for resource scheduling
CN115563226A (en) Database-based data consumption method, control device and readable storage medium
CN115328608A (en) Kubernetes container vertical expansion adjusting method and device
CN114579364A (en) Cloud native database backup method based on hybrid cloud
CN114661432A (en) Task scheduling method, device, equipment and storage medium
CN113342806A (en) Big data processing method and device, storage medium and processor
CN112579305A (en) Task processing method and device, nonvolatile storage medium and equipment
CN114138435A (en) Distributed scheduling method, device and medium under micro-service architecture
CN114816276B (en) Method for providing disk speed limit based on logical volume management under Kubernetes

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