CN107169129B - Scheduling method and device - Google Patents

Scheduling method and device Download PDF

Info

Publication number
CN107169129B
CN107169129B CN201710419473.9A CN201710419473A CN107169129B CN 107169129 B CN107169129 B CN 107169129B CN 201710419473 A CN201710419473 A CN 201710419473A CN 107169129 B CN107169129 B CN 107169129B
Authority
CN
China
Prior art keywords
scheduling
target
time
file
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710419473.9A
Other languages
Chinese (zh)
Other versions
CN107169129A (en
Inventor
王延松
吴翔
丁杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software 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 Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN201710419473.9A priority Critical patent/CN107169129B/en
Publication of CN107169129A publication Critical patent/CN107169129A/en
Application granted granted Critical
Publication of CN107169129B publication Critical patent/CN107169129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • 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/22Indexing; Data structures therefor; Storage structures
    • 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/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Computational Linguistics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Library & Information Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a scheduling method and a scheduling device, wherein the method comprises the following steps: the method comprises the following steps of creating a scheduling file table structure and a scheduling rule table structure aiming at each scheduling task in advance, wherein the scheduling file table structure is used for storing information of scheduling files, and the scheduling rule table structure is used for storing scheduling rules, and further comprises the following steps: receiving a scheduling request sent from the outside; determining a target scheduling task according to the scheduling request; determining the information of a target scheduling file and a target scheduling rule according to a target scheduling file table structure and a target scheduling rule table structure corresponding to the target scheduling task; and scheduling the target scheduling file according to the information of the target scheduling file and the target scheduling rule. The scheme provided by the invention can improve the repeated utilization rate.

Description

Scheduling method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a scheduling method and apparatus.
Background
With the continuous improvement of the requirements of enterprise management, the requirements of real-time synchronization of basic information and real-time update of service scenes are continuously presented. In an actual application scenario, different service scenarios correspond to different scheduling tasks, and how to schedule corresponding files according to changes of the scheduling tasks is a problem that developers always pay attention to.
At present, in the existing scheduling method, the relationship between the scheduling file and the scheduling rule is bound in advance, so that the scheduling method can only be used in a specific service scene, and when the scheduling rule changes, a new calling method needs to be developed.
Therefore, the existing scheduling method has low reuse rate.
Disclosure of Invention
The embodiment of the invention provides a scheduling method and a scheduling device, which can improve the repeated utilization rate.
In a first aspect, an embodiment of the present invention provides a scheduling method, which creates a scheduling file table structure and a scheduling rule table structure in advance for each scheduling task, where the scheduling file table structure is used to store information of a scheduling file, and the scheduling rule table structure is used to store a scheduling rule, and further includes:
receiving a scheduling request sent from the outside;
determining a target scheduling task according to the scheduling request;
determining the information of a target scheduling file and a target scheduling rule according to a target scheduling file table structure and a target scheduling rule table structure corresponding to the target scheduling task;
and scheduling the target scheduling file according to the information of the target scheduling file and the target scheduling rule.
Preferably, the first and second electrodes are formed of a metal,
the information of the scheduling file comprises: any one or more of file type, file path, file name, namespace, class name, and method name;
the file types include: any one or more of a dynamically linked library, an executable file, and a structured query language statement.
Preferably, the first and second electrodes are formed of a metal,
the scheduling rule includes: any one or more of execution type, time type, start date, expiration date, start time, expiration time, interval time, time unit, execution time, execution month, execution week, and execution day;
the execution type comprises: a developer mode and a general mode;
the time types include: interval, daily and monthly.
Preferably, the first and second electrodes are formed of a metal,
further comprising:
setting a timer for each scheduling task in advance;
when a trigger instruction sent by the outside aiming at the target scheduling task is received, triggering a target timer corresponding to the target scheduling task to time;
the scheduling rule includes: start date, expiration date, start time, expiration time, and execution time;
the scheduling the target scheduling file according to the information of the target scheduling file and the target scheduling rule includes:
and monitoring the target timer according to a preset time period, and scheduling the target scheduling file according to the information of the target scheduling file when the monitored time of the target timer reaches the execution time and the time of the target timer is within a time range determined by the start date, the deadline, the start time and the deadline.
In a second aspect, an embodiment of the present invention provides a scheduling apparatus, including:
the scheduling system comprises a creating unit, a scheduling unit and a scheduling unit, wherein the creating unit is used for creating a scheduling file table structure and a scheduling rule table structure aiming at each scheduling task, the scheduling file table structure is used for storing information of scheduling files, and the scheduling rule table structure is used for storing scheduling rules;
a receiving unit, configured to receive a scheduling request sent from outside;
the determining unit is used for determining a target scheduling task according to the scheduling request received by the receiving unit; determining the information of a target scheduling file and a target scheduling rule according to a target scheduling file table structure and a target scheduling rule table structure which are created by the creating unit and correspond to the target scheduling task;
and the scheduling unit is used for scheduling the target scheduling file according to the information of the target scheduling file determined by the determining unit and the target scheduling rule.
Preferably, the first and second electrodes are formed of a metal,
the information of the scheduling file comprises: any one or more of file type, file path, file name, namespace, class name, and method name;
the file types include: any one or more of a dynamically linked library, an executable file, and a structured query language statement.
Preferably, the first and second electrodes are formed of a metal,
the scheduling rule includes: any one or more of execution type, time type, start date, expiration date, start time, expiration time, interval time, time unit, execution time, execution month, execution week, and execution day;
the execution type comprises: a developer mode and a general mode;
the time types include: interval, daily and monthly.
Preferably, the first and second electrodes are formed of a metal,
further comprising:
the setting unit is used for setting a timer for each scheduling task;
the timing unit is used for triggering a target timer set by the setting unit corresponding to the target scheduling task to time when receiving a triggering instruction sent by the external aiming at the target scheduling task determined by the determining unit;
the scheduling rule includes: start date, expiration date, start time, expiration time, and execution time;
the scheduling unit is configured to monitor the target timer according to a preset time period, and schedule the target scheduling file according to information of the target scheduling file when the monitored time of the target timer reaches the execution time and the time of the target timer is within a time range determined by the start date, the expiration date, the start time, and the expiration time.
In a third aspect, an embodiment of the present invention provides a readable medium, which includes an execution instruction, and when a processor of a storage controller executes the execution instruction, the storage controller executes a method described in any one of the above embodiments.
In a fourth aspect, an embodiment of the present invention provides a storage controller, including: a processor, a memory, and a bus;
the memory is used for storing execution instructions, the processor is connected with the memory through the bus, and when the storage controller runs, the processor executes the execution instructions stored in the memory, so that the storage controller executes the method of any one of the above embodiments.
The embodiment of the invention provides a scheduling method and a scheduling device, wherein the method can configure corresponding scheduling file table structures and scheduling rule table structures for scheduling tasks corresponding to different service scenes, and schedule a target scheduling file according to external scheduling requests and scheduling rules corresponding to the target scheduling task and information of the target scheduling file. The existing scheduling method can only be used for specific service scenes, and the invention can realize scheduling under different service scenes by changing the scheduling rules, thereby improving the repeated utilization rate.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a scheduling method according to an embodiment of the present invention;
fig. 2 is a flowchart of a scheduling method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a scheduling apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a scheduling apparatus according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a scheduling method, which may include the following steps:
step 101: aiming at each scheduling task, a scheduling file table structure and a scheduling rule table structure are created, wherein the scheduling file table structure is used for storing information of scheduling files, and the scheduling rule table structure is used for storing scheduling rules;
step 102: receiving a scheduling request sent from the outside;
step 103: determining a target scheduling task according to the scheduling request;
step 104: determining the information of a target scheduling file and a target scheduling rule according to a target scheduling file table structure and a target scheduling rule table structure corresponding to a target scheduling task;
step 105: and scheduling the target scheduling file according to the information of the target scheduling file and the target scheduling rule.
In the embodiment of the present invention shown in fig. 1, the method may configure corresponding scheduling file table structures and scheduling rule table structures for scheduling tasks corresponding to different service scenarios, and schedule a target scheduling file according to information of the target scheduling file according to an external scheduling request and a scheduling rule corresponding to the target scheduling task. The existing scheduling method can only be used for specific service scenes, and the invention can realize scheduling under different service scenes by changing the scheduling rules, thereby improving the repeated utilization rate.
In an embodiment of the present invention, in order to implement accurate scheduling of various scheduling files, the information of the scheduling files includes: any one or more of file type, file path, file name, namespace, class name, and method name;
a file type, comprising: any one or more of a dynamically linked library, an executable file, and a structured query language statement.
Table 1 shows a schedule file table structure. The number of the scheduling function is defined by setting a 'function number' field, and the unique identifier of the scheduling function is used as a mark field for acquiring scheduling setting.
TABLE 1
Field numbering Name of field Type of field
TYDDXT_FNCCODE Function numbering Varchar(40)
TYDDXT_DOCTYPE File type Varchar(10)
TYDDXT_DLLPATH File path Varchar(200)
TYDDXT_DLLNAME File name Varchar(100)
TYDDXT_NAMESPACE Name space Varchar(100)
TYDDXT_CLASSNAME Class name Varchar(100)
TYDDXT_METHOD Method of producing a composite material Varchar(100)
TYDDXT_SWITCH Switch with a switch body Char(1)
In an embodiment of the present invention, in order to adapt to scheduling requirements of different service scenarios, a scheduling rule includes: any one or more of execution type, time type, start date, expiration date, start time, expiration time, interval time, time unit, execution time, execution month, execution week, and execution day;
an execution type comprising: a developer mode and a general mode;
a time type, comprising: interval, daily and monthly.
The execution type is selected through an "execution type" field, and includes a developer mode and a normal mode. The time type of execution is selected by a "time type" field, and the time type is divided into interval, daily and monthly.
Spacing: the "interval" and "time unit" are selected and the timer scans at the set interval.
Every day: the "execution time" is selected as the point in time at which the system is scheduled to execute.
And (3) each month: "execution month" and "execution day" are selected, and "execution time" is set.
Table 2 shows a scheduling rule table structure.
TABLE 2
Field numbering Name of field Type of field
TYDDXTSET_FUCCODE Function numbering Varchar(40)
TYDDXTSET_EXCUTETYPE Execution type Char(1)
TYDDXTSET_TIMETYPE Time type Char(1)
TYDDXTSET_STARTDATE Date of start Varchar(8)
TYDDXTSET_StopDATE Expiration date Varchar(8)
TYDDXTSET_STARTTIME Starting time Varchar(6)
TYDDXTSET_StopTIME Cut-off time Varchar(6)
TYDDXTSET_INTERVALTIME Interval of time int
TYDDXTSET_TIMEUNIT Time unit Char(2)
TYDDXTSET_EXCUTETIME Execution time Varchar(35)
TYDDXTSET_EXCUTEMONTH Execution month Varchar(36)
TYDDXTSET_EXCUTEDAY Day of execution Varchar(100)
TYDDXTSET_WEEK Week of execution Varchar(14)
In any time mode, the 'start date', 'start time', 'deadline' and 'deadline' need to be set, the scheduling process is only valid in the set time, and the deadline point can be set to be valid forever.
In one embodiment of the invention, the method further comprises: setting a timer for each scheduling task in advance;
when a trigger instruction sent by the outside aiming at the target scheduling task is received, triggering a target timer corresponding to the target scheduling task to time;
a scheduling rule comprising: start date, expiration date, start time, expiration time, and execution time;
scheduling the target scheduling file according to the information of the target scheduling file and the target scheduling rule, comprising:
monitoring the target timer according to a preset time period, and scheduling the target scheduling file according to the information of the target scheduling file when the time of the monitored target timer reaches the execution time and the time of the target timer is within the time range determined by the start date, the deadline, the start time and the deadline.
The timer is responsible for timing, accumulating function variables and judging whether the current time meets the occurrence time set by the function, and if so, the thread number is plus 1.
Because the time modes of different file calls are different, the timers cannot be shared, and the timers belonging to the scheduling tasks are defined for each scheduling task, so that specific time types can be set, and the starting and stopping of functions cannot be influenced mutually.
When a plurality of target scheduling tasks exist at the same time, concurrency can be prevented in a locking mode in the code implementation process.
The specific codes are as follows:
Figure BDA0001314573090000081
executing a third party scheduling file using a reflection method:
Figure BDA0001314573090000082
as shown in fig. 2, the embodiment of the present invention takes monthly scheduling as an example to describe the scheduling method in detail, and the method includes the following steps:
step 201: and aiming at each scheduling task, a scheduling file table structure and a scheduling rule table structure are created, wherein the scheduling file table structure is used for storing information of the scheduling file, and the scheduling rule table structure is used for storing the scheduling rule.
Different time types can be configured for processing different service scenes, and flexible time configuration can be performed for different time types, wherein the main information comprises the following points:
immediately executing the following steps: after the scheduling process is executed, the configured scheduling file is directly called, and the function is mainly used for the early-stage test work.
Interval scheduling: the interval scheduling mode is suitable for service scenes of real-time information synchronization, and various interval scheduling conforming to real service scenes can be flexibly configured by setting interval time, interval time units, execution time periods and execution weeks. In the interval mode, if the interval time is set to be 5 minutes, the third-party file is scheduled to execute for 3 minutes, the timer can immediately start timing next time after the first 5 minutes, and does not count time after the service processing is finished, so that the accuracy of the scheduling process is ensured.
Daily scheduling: the daily scheduling mode is suitable for daily settlement service scenes, can flexibly configure the execution time by setting five execution time points, and can also configure the execution time according to whether the working days exist. The basic principle of scheduling according to time points is to start a timer to scan whether the configured time point is reached or not by setting the interval time. In order to ensure that the scheduling file can be accurately executed at a specified time point, the accurate execution of the scheduling file is ensured through a range judgment method.
And (4) monthly scheduling: the monthly scheduling mode is suitable for monthly settlement services, the mode inherits the basic configuration of the daily scheduling mode and also increases the selection of the months and the days, and a user can select the designated months and the designated days to execute the scheduling files according to a complex service scene. In addition, through the selection of the months, the month scheduling mode can be changed into a quarterly scheduling mode, and the requirement of a quarterly service scene is met. For the judgment of the time point, the monthly scheduling mode also adopts a range judgment method to ensure the execution of the scheduling file.
Step 202: for each scheduled task, a timer is set.
Step 203: and receiving a scheduling request sent from the outside.
Step 204: and determining a target scheduling task according to the scheduling request.
Step 205: and determining the information of the target scheduling file and the target scheduling rule according to the target scheduling file table structure and the target scheduling rule table structure corresponding to the target scheduling task.
Step 206: and when a trigger instruction sent by the outside aiming at the target scheduling task is received, triggering a target timer corresponding to the target scheduling task to time.
Step 207: monitoring the target timer according to a preset time period, and scheduling the target scheduling file according to the information of the target scheduling file when the time of the monitored target timer reaches the execution time and the time of the target timer is within the time range determined by the start date, the deadline, the start time and the deadline.
For example, the start date, the deadline, the start time, and the deadline are 2017.01.01, 2017.12.31, 9:00:00, and 20:00:00, respectively, and the execution time is 12:00:00, when in the daily scheduling mode, the execution of the schedule is started at 12:00:00 of each day, and the schedule is terminated at 20:00: 00.
As shown in fig. 3, an embodiment of the present invention provides a scheduling apparatus, including:
a creating unit 301, configured to create, for each scheduling task, a scheduling file table structure and a scheduling rule table structure, where the scheduling file table structure is used to store information of a scheduling file, and the scheduling rule table structure is used to store a scheduling rule;
a receiving unit 302, configured to receive a scheduling request sent from outside;
a determining unit 303, configured to determine a target scheduling task according to the scheduling request received by the receiving unit 302; determining the information of the target scheduling file and the target scheduling rule according to the target scheduling file table structure and the target scheduling rule table structure which are created by the creating unit 301 and correspond to the target scheduling task;
a scheduling unit 304, configured to schedule the target scheduling file according to the information of the target scheduling file and the target scheduling rule determined by the determining unit 303.
In one embodiment of the present invention, the information of the schedule file includes: any one or more of file type, file path, file name, namespace, class name, and method name;
a file type, comprising: any one or more of a dynamically linked library, an executable file, and a structured query language statement.
In one embodiment of the present invention, the scheduling rule includes: any one or more of execution type, time type, start date, expiration date, start time, expiration time, interval time, time unit, execution time, execution month, execution week, and execution day;
an execution type comprising: a developer mode and a general mode;
a time type, comprising: interval, daily and monthly.
In one embodiment of the present invention, as shown in fig. 4, the apparatus further comprises:
a setting unit 305 for setting a timer for each scheduling task;
a timing unit 306, configured to trigger the target timer set by the setting unit 305 corresponding to the target scheduling task to perform timing when receiving a trigger instruction sent by an external device to the target scheduling task determined by the determining unit 303;
a scheduling rule comprising: start date, expiration date, start time, expiration time, and execution time;
the scheduling unit 304 is configured to monitor the target timer according to a preset time period, and schedule the target scheduling file according to the information of the target scheduling file when the time of the monitored target timer reaches the execution time and the time of the target timer is within a time range determined by the start date, the end date, the start time, and the end time.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
The embodiment of the invention provides a readable medium, which comprises an execution instruction, and when a processor of a storage controller executes the execution instruction, the storage controller executes the method of any one of the above embodiments.
An embodiment of the present invention provides a storage controller, including: a processor, a memory, and a bus;
the memory is used for storing execution instructions, the processor is connected with the memory through the bus, and when the storage controller runs, the processor executes the execution instructions stored by the memory so as to enable the storage controller to execute the method of any one of the above embodiments.
In summary, the embodiments of the present invention have at least the following effects:
1. in the embodiment of the invention, the method can configure corresponding scheduling file table structures and scheduling rule table structures for scheduling tasks corresponding to different service scenes, and schedule the target scheduling file according to the information of the target scheduling file according to the external scheduling request and the scheduling rule corresponding to the target scheduling task. The existing scheduling method can only be used for specific service scenes, and the invention can realize scheduling under different service scenes by changing the scheduling rules, thereby improving the repeated utilization rate.
2. In the embodiment of the invention, the method can realize direct scheduling of different types of files, and the file types comprise: the dynamic link library, the executable file and the structured query language statement can meet the requirements of different service scenes.
3. In the embodiment of the invention, different timers are set for different scheduling tasks, a specific time type can be set for the scheduling tasks, each scheduling task cannot be influenced mutually, and the scheduling tasks corresponding to different service scenes are realized.
It is noted that, herein, relational terms such as first and second, and the like may be 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 phrase "comprising an … …" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (4)

1. A scheduling method is characterized in that a scheduling file table structure and a scheduling rule table structure are created in advance for each scheduling task, the scheduling file table structure is used for storing information of scheduling files, the scheduling rule table structure is used for storing scheduling rules, and the method further comprises the following steps:
receiving a scheduling request sent from the outside;
determining a target scheduling task according to the scheduling request;
determining the information of a target scheduling file and a target scheduling rule according to a target scheduling file table structure and a target scheduling rule table structure corresponding to the target scheduling task;
scheduling the target scheduling file according to the information of the target scheduling file and the target scheduling rule;
the information of the scheduling file comprises: any one or more of file type, file path, file name, namespace, class name, and method name;
the file types include: any one or more of a dynamically linked library, an executable file and a structured query language statement;
the scheduling rule includes: any one or more of execution type, time type, start date, expiration date, start time, expiration time, interval time, time unit, execution time, execution month, execution week, and execution day;
the execution type comprises: a developer mode and a general mode;
the time types include: interval, daily and monthly;
further comprising:
setting a timer for each scheduling task in advance;
when a trigger instruction sent by the outside aiming at the target scheduling task is received, triggering a target timer corresponding to the target scheduling task to time;
the scheduling rule includes: start date, expiration date, start time, expiration time, and execution time;
the scheduling the target scheduling file according to the information of the target scheduling file and the target scheduling rule includes:
and monitoring the target timer according to a preset time period, and scheduling the target scheduling file according to the information of the target scheduling file when the monitored time of the target timer reaches the execution time and the time of the target timer is within a time range determined by the start date, the deadline, the start time and the deadline.
2. A scheduling apparatus, comprising:
the scheduling system comprises a creating unit, a scheduling unit and a scheduling unit, wherein the creating unit is used for creating a scheduling file table structure and a scheduling rule table structure aiming at each scheduling task, the scheduling file table structure is used for storing information of scheduling files, and the scheduling rule table structure is used for storing scheduling rules;
a receiving unit, configured to receive a scheduling request sent from outside;
the determining unit is used for determining a target scheduling task according to the scheduling request received by the receiving unit; determining the information of a target scheduling file and a target scheduling rule according to a target scheduling file table structure and a target scheduling rule table structure which are created by the creating unit and correspond to the target scheduling task;
the scheduling unit is used for scheduling the target scheduling file according to the information of the target scheduling file determined by the determining unit and the target scheduling rule;
the information of the scheduling file comprises: any one or more of file type, file path, file name, namespace, class name, and method name;
the file types include: any one or more of a dynamically linked library, an executable file and a structured query language statement;
the scheduling rule includes: any one or more of execution type, time type, start date, expiration date, start time, expiration time, interval time, time unit, execution time, execution month, execution week, and execution day;
the execution type comprises: a developer mode and a general mode;
the time types include: interval, daily and monthly;
further comprising:
the setting unit is used for setting a timer for each scheduling task;
the timing unit is used for triggering a target timer set by the setting unit corresponding to the target scheduling task to time when receiving a triggering instruction sent by the external aiming at the target scheduling task determined by the determining unit;
the scheduling rule includes: start date, expiration date, start time, expiration time, and execution time;
the scheduling unit is configured to monitor the target timer according to a preset time period, and schedule the target scheduling file according to information of the target scheduling file when the monitored time of the target timer reaches the execution time and the time of the target timer is within a time range determined by the start date, the expiration date, the start time, and the expiration time.
3. A readable medium comprising executable instructions that, when executed by a processor of a storage controller, cause the storage controller to perform the method of claim 1.
4. A storage controller, comprising: a processor, a memory, and a bus;
the memory is used for storing execution instructions, the processor is connected with the memory through the bus, and when the storage controller runs, the processor executes the execution instructions stored by the memory to enable the storage controller to execute the method of claim 1.
CN201710419473.9A 2017-06-06 2017-06-06 Scheduling method and device Active CN107169129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710419473.9A CN107169129B (en) 2017-06-06 2017-06-06 Scheduling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710419473.9A CN107169129B (en) 2017-06-06 2017-06-06 Scheduling method and device

Publications (2)

Publication Number Publication Date
CN107169129A CN107169129A (en) 2017-09-15
CN107169129B true CN107169129B (en) 2020-07-14

Family

ID=59825622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710419473.9A Active CN107169129B (en) 2017-06-06 2017-06-06 Scheduling method and device

Country Status (1)

Country Link
CN (1) CN107169129B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111340382A (en) * 2020-03-06 2020-06-26 中国银行股份有限公司 File scheduling method and device in bank system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739215A (en) * 2008-11-19 2010-06-16 成都市华为赛门铁克科技有限公司 Method and device for determining input-output scheduling algorithm
CN102662754A (en) * 2012-04-20 2012-09-12 浙江大学 Multi-field supportable virtual machine dispatching device and multi-field supportable virtual machine dispatching method
CN103324534A (en) * 2012-03-22 2013-09-25 阿里巴巴集团控股有限公司 Operation scheduling method and operation scheduler
CN105511958A (en) * 2014-10-11 2016-04-20 阿里巴巴集团控股有限公司 Method and device for task scheduling

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130332421A1 (en) * 2012-06-06 2013-12-12 International Business Machines Corporation Defining Content Retention Rules Using a Domain-Specific Language
US9766932B2 (en) * 2013-06-21 2017-09-19 Microsoft Technology Licensing, Llc Energy efficient job scheduling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739215A (en) * 2008-11-19 2010-06-16 成都市华为赛门铁克科技有限公司 Method and device for determining input-output scheduling algorithm
CN103324534A (en) * 2012-03-22 2013-09-25 阿里巴巴集团控股有限公司 Operation scheduling method and operation scheduler
CN102662754A (en) * 2012-04-20 2012-09-12 浙江大学 Multi-field supportable virtual machine dispatching device and multi-field supportable virtual machine dispatching method
CN105511958A (en) * 2014-10-11 2016-04-20 阿里巴巴集团控股有限公司 Method and device for task scheduling

Also Published As

Publication number Publication date
CN107169129A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CA2812525C (en) Virtual server control system and program
CN103679392B (en) A kind of task scheduling processing method and system
CN112748993A (en) Task execution method and device, storage medium and electronic equipment
US20170220658A1 (en) Application Program Interface Managing Synchronized Data Replication
CN103873587B (en) A kind of method and device that scheduling is realized based on cloud platform
CN111507608B (en) Work order early warning method and device and storage medium
CN110569090A (en) data processing method and device, electronic equipment and storage medium
CN109766349A (en) The anti-weighing method of task, device, computer equipment and storage medium
CN110602227B (en) Intelligent contract management method and related device
CN103744730A (en) Task scheduling method and device
CN112559161A (en) Task scheduling method and system
CN111324426A (en) ORACLE database task job management scheduling system and method
US20080148264A1 (en) CRON time processing implementation for scheduling tasks within a multi-tiered enterprise network
CN107169129B (en) Scheduling method and device
US7877750B2 (en) Scheduled job execution management
CN104111876A (en) Dynamic resource management device and method based on Oracle resource plan
CN110851256A (en) Data calculation scheduling method based on electric power big data
CN107621975B (en) TIMER logic implementation method based on JAVA TIMER high availability
CN114201284A (en) Timed task management method and system
CN111613312B (en) Equipment operation condition comparison analysis method and device
CN108460129B (en) Server-based order batch statistical method, computer equipment and storage medium
EP1011045B1 (en) Object-oriented job scheduler
CN112348455A (en) Warehouse area attendance checking method, device and medium
CN112801515A (en) Project resource allocation method, electronic equipment and computer readable storage medium
CN110796353A (en) Scheduling processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200616

Address after: 250100 Ji'nan high tech Zone, Shandong, No. 1036 wave road

Applicant after: INSPUR GENERAL SOFTWARE Co.,Ltd.

Address before: 250100, No. 2877, fairway, Sun Town, Ji'nan hi tech Zone, Shandong

Applicant before: SHANDONG INSPUR GENESOFT INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant