CN110058930A - Method for scheduling task and equipment - Google Patents

Method for scheduling task and equipment Download PDF

Info

Publication number
CN110058930A
CN110058930A CN201910313004.8A CN201910313004A CN110058930A CN 110058930 A CN110058930 A CN 110058930A CN 201910313004 A CN201910313004 A CN 201910313004A CN 110058930 A CN110058930 A CN 110058930A
Authority
CN
China
Prior art keywords
task
configuration information
goal
expression formula
scheduling
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
CN201910313004.8A
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201910313004.8A priority Critical patent/CN110058930A/en
Publication of CN110058930A publication Critical patent/CN110058930A/en
Pending legal-status Critical Current

Links

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the present invention provides a kind of method for scheduling task and equipment, this method comprises: obtaining task choosing instruction, the task choosing instruction carries task identification;Goal task is determined from default timed task list according to the task identification;The goal task is sent to System Back-end, so that the System Back-end obtains the configuration information of the goal task, the configuration information of the goal task includes cron expression formula, dispatches corresponding task interface according to the cron expression formula using scheduler.Method provided in this embodiment can dispatch corresponding task interface by configuring cron expression formula, reduce the influence to system, solve the problem of that a large amount of manpowers of existing system O&M needs are engaged in mechanical duplicate task while there is also the risks of manpower repetitive operation fault.

Description

Method for scheduling task and equipment
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of method for scheduling task and equipment.
Background technique
With economic continuous development, the communication technology is developed rapidly, and more and more people begin to use communication to transport The communication system of battalion quotient communicates.
Currently, the communication system of communication operator has a large amount of user volume, system level is complicated, and a glitch may Extreme influence is brought, brings very big challenge to daily system O&M.And during O&M, have it is more repeat mechanically actuated with Night time operation need to put into a large amount of manpower.
Therefore, existing system O&M needs a large amount of manpowers to be engaged in mechanical duplicate task, while repeating to grasp there is also manpower Make the risk made mistakes.
Summary of the invention
The embodiment of the present invention provides a kind of method for scheduling task and equipment, to overcome existing system O&M to need a large amount of manpowers It is engaged in mechanical duplicate task, while the problem of there is also the risks of manpower repetitive operation fault.
In a first aspect, the embodiment of the present invention provides a kind of method for scheduling task, comprising:
Task choosing instruction is obtained, the task choosing instruction carries task identification;
Goal task is determined from default timed task list according to the task identification;
The goal task is sent to System Back-end so that the System Back-end obtain the goal task with confidence Breath, the configuration information of the goal task includes cron expression formula, is dispatched accordingly using scheduler according to the cron expression formula Task interface.
In a kind of possible design, above-mentioned method, further includes:
Task operating instruction is obtained, the task operating instruction includes increase, deletion, modification, execution or the pause of task;
Task operating instruction is sent to the System Back-end, so that the System Back-end is connect using the task of scheduling Mouth instructs increase, deletion, modification, execution or the pause of carry out task according to the task operating.
In a kind of possible design, above-mentioned method, further includes:
The configuration information of acquisition task, the configuration information of the task include cron expression formula and cron expression formula pair The task interface answered;
The configuration information of the task is sent to System Back-end, so that the System Back-end saves the configuration of the task Information.
In a kind of possible design, above-mentioned method, further includes:
Show the default timed task list and ongoing task.
Second aspect, the embodiment of the present invention provide another method for scheduling task, comprising:
The goal task that system front end is sent is received, the goal task is referred to by the system front end in acquisition task choosing After order, the task choosing instruction carries task identification, is determined from default timed task list according to the task identification;
The configuration information of the goal task is obtained, the configuration information of the goal task includes cron expression formula;
Corresponding task interface is dispatched according to the cron expression formula using scheduler.
In a kind of possible design, above-mentioned method, further includes:
The task operating instruction that the system front end is sent is received, the task operating instruction includes the increase of task, deletes It removes, modify, execute or suspends;
Using scheduling task interface according to the task operating instruction increase of carry out task, deletion, modification, execution or Pause.
In a kind of possible design, above-mentioned method, further includes:
The configuration information for the task that the system front end is sent is received, the configuration information of the task is by the system front end It obtains, the configuration information of the task includes cron expression formula and the corresponding task interface of cron expression formula;
Save the configuration information of the task.
The third aspect, the embodiment of the present invention provide a kind of task scheduling equipment, comprising:
Selection instruction obtains module, and for obtaining task choosing instruction, the task choosing instruction carries task identification;
Task determining module, for determining goal task from default timed task list according to the task identification;
Task sending module, for the goal task to be sent to System Back-end, so that the System Back-end obtains institute The configuration information of goal task is stated, the configuration information of the goal task includes cron expression formula, using scheduler according to described Cron expression formula dispatches corresponding task interface.
In a kind of possible design, above-mentioned equipment, further includes:
Operational order obtains module, for obtaining task operating instruction, task operating instruction include task increase, It deletes, modification, execute or suspend;
Operational order sending module, for task operating instruction to be sent to the System Back-end, so that the system Unite rear end using the task interface of scheduling according to the task operating instruction increase of carry out task, deletion, modification, execution or temporary Stop.
In a kind of possible design, above-mentioned equipment, further includes:
First configuration information obtains module, and for obtaining the configuration information of task, the configuration information of the task includes Cron expression formula and the corresponding task interface of cron expression formula;
Configuration information sending module, for the configuration information of the task to be sent to System Back-end, so that the system Rear end saves the configuration information of the task.
In a kind of possible design, above-mentioned equipment, further includes:
Task display module, for showing the default timed task list and ongoing task.
Fourth aspect, the embodiment of the present invention provide a kind of task scheduling equipment, comprising:
Task receiving module, for receiving the goal task of system front end transmission, before the goal task is by the system After obtaining task choosing instruction, task choosing instruction carries task identification at end, according to the task identification from presetting When task list in determine;
Second configuration information obtains module, and for obtaining the configuration information of the goal task, the goal task is matched Confidence breath includes cron expression formula;
Task scheduling modules, for dispatching corresponding task interface according to the cron expression formula using scheduler.
In a kind of possible design, above-mentioned equipment, further includes:
Operational order receiving module, the task operating instruction sent for receiving the system front end, the task operating Instruction includes increase, deletion, modification, execution or the pause of task;
Task processing module, for the task interface using scheduling according to the increasing of task operating instruction carry out task Add, delete, modify, execute or suspends.
In a kind of possible design, above-mentioned equipment, further includes:
Configuration information receiving module, for receiving the configuration information for the task that the system front end is sent, the task Configuration information is obtained by the system front end, and the configuration information of the task includes cron expression formula and cron expression formula pair The task interface answered;
Configuration information preserving module, for saving the configuration information of the task.
5th aspect, the embodiment of the present invention provide a kind of task scheduling equipment, comprising: at least one processor and storage Device;
The memory stores computer executed instructions;
At least one described processor executes the computer executed instructions of memory storage so that it is described at least one Processor executes method for scheduling task described in the various possible designs of first aspect and first aspect as above.
6th aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Computer executed instructions are stored in matter, when processor execute the computer executed instructions when, realize first aspect as above with And method for scheduling task described in the various possible designs of first aspect.
7th aspect, the embodiment of the present invention provide a kind of task scheduling equipment, comprising: at least one processor and storage Device;
The memory stores computer executed instructions;
At least one described processor executes the computer executed instructions of memory storage so that it is described at least one Processor executes method for scheduling task described in the various possible designs of second aspect and second aspect as above.
Eighth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Computer executed instructions are stored in matter, when processor execute the computer executed instructions when, realize second aspect as above with And method for scheduling task described in the various possible designs of second aspect.
Method for scheduling task provided in this embodiment and equipment, this method is by obtaining task choosing instruction, the task Selection instruction carries task identification;Goal task is determined from default timed task list according to the task identification;It will be described Goal task is sent to System Back-end, so that the System Back-end obtains the configuration information of the goal task, the target is appointed The configuration information of business includes cron expression formula, dispatches corresponding task interface according to the cron expression formula using scheduler, i.e., It realizes and dispatches corresponding task interface by configuring cron expression formula, reduce the influence to system, solving existing system O&M needs A large amount of manpowers are wanted to be engaged in mechanical duplicate task, while the problem of there is also the risks of manpower repetitive operation fault.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the application scenario diagram of method for scheduling task provided in an embodiment of the present invention;
Fig. 2 is the flow diagram one of method for scheduling task provided in an embodiment of the present invention;
Fig. 3 is the flow diagram two of method for scheduling task provided in an embodiment of the present invention;
Fig. 4 is the application example schematic diagram of method for scheduling task provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram one of task scheduling equipment provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram two of task scheduling equipment provided in an embodiment of the present invention;
Fig. 7 is the hardware structural diagram of task scheduling equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this A little process, methods, the other step or units of product or equipment inherently.
With economic continuous development, the communication technology is developed rapidly, and more and more people begin to use communication to transport The communication system of battalion quotient communicates.Currently, the communication system of communication operator has a large amount of user volume, system level is complicated, One glitch may bring extreme influence, bring very big challenge to daily system O&M.And during O&M, have compared with Multiple multiple mechanically actuated and night time operation, need to put into a large amount of manpower.Therefore, existing system O&M needs a large amount of manpowers from affairs that should be kept secret The duplicate task of tool, while there is also the risks of manpower repetitive operation fault.
Accordingly, it is considered to arrive the above problem, the present invention provides a kind of method for scheduling task, by obtaining task choosing instruction, The task choosing instruction carries task identification;Determine that target is appointed from default timed task list according to the task identification Business;The goal task is sent to System Back-end, so that the System Back-end obtains the configuration information of the goal task, institute The configuration information for stating goal task includes cron expression formula, dispatches corresponding task according to the cron expression formula using scheduler Interface is realized and dispatches corresponding task interface by configuring cron expression formula, reduce the influence to system, solves existing system The problem of O&M needs a large amount of manpowers to be engaged in mechanical duplicate task, while there is also the risks of manpower repetitive operation fault.
Fig. 1 is a kind of application scenario diagram of method for scheduling task provided by the invention.As shown in Figure 1, system front end 101 can To obtain task choosing instruction, task choosing instruction carries task identification, can be according to the task identification from presetting When task list in determine goal task, the goal task can also be sent to System Back-end 102, so that after the system End 102 obtains the configuration information of the goal task, and the configuration information of the goal task includes cron expression formula, utilizes scheduling Device dispatches corresponding task interface according to the cron expression formula.
Wherein, system front end 101 can be communication system front end, and back-end system 102 can be communication system rear end, specifically Why the system of planting can also be determines according to actual conditions.System front end 101 may include operation interface, by calling back-end system 102 service, finishing service processing.Back-end system 102 can complete core transaction processing, carry out business processing, operate core Database etc..System front end 101 and System Back-end 102 can service the communication for carrying out intermodule by Restful.
Fig. 2 is the flow diagram one of method for scheduling task provided in an embodiment of the present invention, the executing subject of the present embodiment It can be the system front end in embodiment illustrated in fig. 1.As shown in Fig. 2, this method may include:
S201, task choosing instruction is obtained, the task choosing instruction carries task identification.
Here, VUE frame, including operation interface can be used in system front end, and user can access system front end and operate Interface carries out related interfaces operation.Specifically, the mode for obtaining task choosing instruction may include: to receive user in operation interface The task choosing of input instructs, and the task choosing instruction carries task identification, wherein task identification can for task names, Task symbol etc. can identify the information of task identity.
Optionally, above-mentioned method, further includes:
The configuration information of acquisition task, the configuration information of the task include cron expression formula and cron expression formula pair The task interface answered;
The configuration information of the task is sent to System Back-end, so that the System Back-end saves the configuration of the task Information.
Here it is possible to carry out task configuration, such as the corresponding cron expression formula of configuration task by the system front end page, appoint Business interface, the corresponding task interface of cron expression formula, interface method of calling, the relevant informations such as interface requests Header, wherein Cron, that is, plan target is the work that task has been planned in the time execution of agreement.Cron server can be according to configuration The time of file agreement executes specific task.
In carry out task with postponing, the configuration information of corresponding task is sent to System Back-end, System Back-end by system front end The configuration information for saving above-mentioned task facilitates follow-up system rear end to dispatch corresponding task interface according to the configuration information of preservation.
S202, goal task is determined from default timed task list according to the task identification.
Specifically, user can preset timed task list by system front end, system front end can show above-mentioned default Timed task list is checked so as to user.
After the instruction of above-mentioned acquisition task choosing, system front end can be according to above-mentioned task identification from default timed task Goal task is determined in list, wherein default timed task list can store the corresponding relationship of task identification and task.
S203, the goal task is sent to System Back-end, so that the System Back-end obtains the goal task Configuration information, the configuration information of the goal task include cron expression formula, using scheduler according to the cron expression formula tune Spend corresponding task interface.
In embodiments of the present invention, System Back-end is after the goal task for receiving system front end transmission, available number According to the configuration information stored in library, then with the cron expression formula and task interface initialization scheduling in the information of these configurations Device, such as quartz scheduler, and then scheduler executes corresponding task according to the corresponding timing scheduling of cron expression formula Interface.
Specifically, System Back-end can obtain the configuration information of setting for task by the data source being arranged in system, Including cron expression formula relevant information, interface relevant information is executed.Quartz scheduler is arranged by the task configuration read in Each element that quartz scheduling needs, and then carry out relevant interface calling in System Back-end and export process logs.
Optionally, the above method, further includes:
Task operating instruction is obtained, the task operating instruction includes increase, deletion, modification, execution or the pause of task;
Task operating instruction is sent to the System Back-end, so that the System Back-end is connect using the task of scheduling Mouth instructs increase, deletion, modification, execution or the pause of carry out task according to the task operating.
Here, system front end may include task operating module.Wherein, task operating module includes the increase of task, deletes The operation such as remove, modify, executing, suspending, user carries out corresponding task operation in system front end, and system front end obtains task operating and refers to It enables, task operating instruction is sent to System Back-end, System Back-end is using the task interface of scheduling according to above-mentioned task operating Increase, deletion, modification, execution or the pause etc. for instructing carry out task free manpower, together from mechanical duplicate task When avoid the fault scene of manpower repetitive operation, increase a kind of intelligent means for automation operation and maintenance system.
Optionally, above-mentioned method, further includes:
Show the default timed task list and ongoing task.
Specifically, system front end can also include display module, wherein display module be used to show timed task list, The task dispatching being carrying out, facilitates related personnel to check information, understands task disposition in time, is suitble to application.
Method for scheduling task provided in this embodiment, by obtaining task choosing instruction, the task choosing instruction is carried Task identification;Goal task is determined from default timed task list according to the task identification;The goal task is sent To System Back-end, so that the System Back-end obtains the configuration information of the goal task, the configuration information of the goal task Including cron expression formula, corresponding task interface, i.e. scheduler task interface are dispatched according to the cron expression formula using scheduler When need to only configure corresponding cron expression formula and can be achieved with, reduce the influence to system, solve existing system O&M need it is a large amount of The problem of manpower is engaged in mechanical duplicate task, while there is also the risks of manpower repetitive operation fault.
Fig. 3 is the flow diagram two of method for scheduling task provided in an embodiment of the present invention, the executing subject of the present embodiment It can be the System Back-end in embodiment illustrated in fig. 1.As shown in figure 3, this method may include:
S301, the goal task that system front end is sent is received, the goal task is by the system front end in the task of acquisition After selection instruction, the task choosing instruction carries task identification, according to the task identification from default timed task list It determines.
Above system front end may include operation interface, and user can access system front end and carry out related boundary in operation interface Face operation, such as incoming task selection instruction.System front end obtains task choosing instruction, and the task choosing instruction, which carries, appoints Business mark determines goal task according to the task identification from default timed task list, and the goal task is sent to System Back-end.
Optionally, above-mentioned method, further includes:
The configuration information for the task that the system front end is sent is received, the configuration information of the task is by the system front end It obtains, the configuration information of the task includes cron expression formula and the corresponding task interface of cron expression formula;
Save the configuration information of the task.
Here, user can carry out task configuration by the system front end page, and after the completion of configuration, system front end is by task Configuration information is sent to System Back-end and is stored.
S302, the configuration information for obtaining the goal task, the configuration information of the goal task includes cron expression formula.
S303, corresponding task interface is dispatched according to the cron expression formula using scheduler.
Specifically, System Back-end stores in available database after the goal task for receiving system front end transmission Configuration information, then with these configuration information in cron expression formula and task interface initialize quartz scheduler, into And scheduler executes corresponding task interface according to the corresponding timing scheduling of cron expression formula.
Optionally, above-mentioned method, further includes:
The task operating instruction that the system front end is sent is received, the task operating instruction includes the increase of task, deletes It removes, modify, execute or suspends;
Using scheduling task interface according to the task operating instruction increase of carry out task, deletion, modification, execution or Pause.
In embodiments of the present invention, user can may have access to system front end interface and carry out related interfaces operation, simultaneity factor Rear end loads stored task data, and quartz scheduler is transferred to execute by scheduled cron expression formula timer-triggered scheduler.It is each Secondary foregrounding obtains task and the operations such as updates, increases, deletes and can trigger back-end data and reload, it is ensured that newest number of tasks It is executed according to being scheduled.
Method for scheduling task provided in this embodiment, the goal task sent by receiving system front end, obtains the mesh The configuration information of mark task, the configuration information of the goal task includes cron expression formula, using scheduler according to the cron Expression formula dispatches corresponding task interface, that is, realizes and dispatch corresponding task interface by configuring cron expression formula, reduces to being The influence of system solves existing system O&M and a large amount of manpowers is needed to be engaged in mechanical duplicate task, while repeating to grasp there is also manpower The problem of making the risk made mistakes.
The above method in order to better understand, the application example of a method for scheduling task of the present invention detailed below.
In conjunction with above-mentioned each embodiment, in the present embodiment, it is with the interactive process between system front end and System Back-end Example is illustrated, and this explanation is not limited to constitute to the present invention program.
As shown in figure 4, this application example may include:
S401, system front end obtain the configuration information of task, and the configuration information of the task includes cron expression formula, and The corresponding task interface of cron expression formula.
The configuration information of the task is sent to System Back-end by S402, system front end.
Here it is possible to carry out task configuration, such as the corresponding cron expression formula of configuration task by the system front end page, appoint Business interface, the corresponding task interface of cron expression formula, interface method of calling, the relevant informations such as interface requests Header.
S403, System Back-end receive the configuration information for the task that the system front end is sent, and save matching for the task Confidence breath.
S404, system front end obtain task choosing instruction, and the task choosing instruction carries task identification, according to described Business mark determines goal task from default timed task list.
The goal task is sent to System Back-end by S405, system front end.
S406, System Back-end receive the goal task that system front end is sent, and obtain the configuration information of the goal task, institute The configuration information for stating goal task includes cron expression formula, dispatches corresponding task according to the cron expression formula using scheduler Interface.
Specifically, System Back-end can obtain the configuration information of setting for task by the data source being arranged in system, Including cron expression formula relevant information, interface relevant information is executed.Quartz scheduler is arranged by the task configuration read in Each element that quartz scheduling needs, and then carry out relevant interface calling in System Back-end and export process logs.
S407, system front end obtain task operating instruction, and the task operating instruction includes the increase of task, deletes, repairs Change, execute or suspends.
Task operating instruction is sent to the System Back-end by S408, system front end.
S409, System Back-end receive the task operating instruction that the system front end is sent, and are pressed using the task interface of scheduling According to increase, deletion, modification, execution or the pause of task operating instruction carry out task.
System front end may include task operating module.Wherein, task operating module includes the increase of task, deletes, repairs The operation such as change, execute, suspending, user carries out corresponding task operation in system front end, and system front end obtains task operating instruction, will Task operating instruction is sent to System Back-end, System Back-end using scheduling task interface according to above-mentioned task operating instruct into Increase, deletion, modification, execution or pause of row task etc..
It is evidenced from the above discussion that the present embodiment carries out interface task calling using quartz and cron, by complicated business Operation logic, which is placed in servlet interface, improves system flexibility, solves existing system O&M and a large amount of manpowers is needed to be engaged in machinery Duplicate task, at the same there is also manpower repetitive operation fault risk the problem of.
Fig. 5 is the structural schematic diagram one of task scheduling equipment provided in an embodiment of the present invention.As shown in figure 5, the task tune Degree equipment 50 includes: that selection instruction obtains module 501, task determining module 502 and task sending module 503.
Selection instruction obtains module 501, and for obtaining task choosing instruction, the task choosing instructs carrying task mark Know.
Task determining module 502, for determining goal task from default timed task list according to the task identification;
Task sending module 503, for the goal task to be sent to System Back-end, so that the System Back-end obtains The configuration information of the goal task, the configuration information of the goal task includes cron expression formula, using scheduler according to institute It states cron expression formula and dispatches corresponding task interface.
In addition, in addition to above-mentioned module, above-mentioned task scheduling equipment 50 further include: operational order obtains module 504, operation refers to Sending module 505, the first configuration information is enabled to obtain module 506, configuration information sending module 507 and task display module 508.
In a kind of possible design, operational order obtains module 504, for obtaining task operating instruction, the task Operational order includes increase, deletion, modification, execution or the pause of task.
Operational order sending module 505, for task operating instruction to be sent to the System Back-end, so that described System Back-end using scheduling task interface according to the task operating instruction increase of carry out task, deletion, modification, execution or Pause.
In a kind of possible design, the first configuration information obtains module 506, for obtaining the configuration information of task, institute The configuration information for stating task includes cron expression formula and the corresponding task interface of cron expression formula.
Configuration information sending module 507, for the configuration information of the task to be sent to System Back-end, so that the system System rear end saves the configuration information of the task.
In a kind of possible design, task display module 508, for showing the default timed task list, and Ongoing task.
Equipment provided in this embodiment, can be used for executing the technical solution of above-mentioned Fig. 1 embodiment of the method, realization principle and Technical effect is similar, and details are not described herein again for the present embodiment.
Fig. 6 is the structural schematic diagram two of task scheduling equipment provided in an embodiment of the present invention.As shown in fig. 6, the task tune Degree equipment 60 includes: task receiving module 601, the second configuration information acquisition module 602 and task scheduling modules 603.
Task receiving module 601, for receiving the goal task of system front end transmission, the goal task is by the system After obtaining task choosing instruction, task choosing instruction carries task identification for front end, according to the task identification from default It is determined in timed task list.
Second configuration information obtains module 602, for obtaining the configuration information of the goal task, the goal task Configuration information includes cron expression formula.
Task scheduling modules 603, for dispatching corresponding task interface according to the cron expression formula using scheduler.
In addition, in addition to above-mentioned module, above-mentioned task scheduling equipment 60 further include: at operational order receiving module 604, task Manage module 605, configuration information receiving module 606 and configuration information preserving module 607.
In a kind of possible design, operational order receiving module 604, being sent for receiving the system front end for task Operational order, the task operating instruction include increase, deletion, modification, execution or the pause of task.
Task processing module 605, for the task interface using scheduling according to task operating instruction carry out task Increase, delete, modification, executing or suspend.
In a kind of possible design, configuration information receiving module 606, being sent for receiving the system front end for task Configuration information, the configuration information of the task obtains by the system front end, and the configuration information of the task includes cron table Up to formula and the corresponding task interface of cron expression formula.
Configuration information preserving module 607, for saving the configuration information of the task.
Equipment provided in this embodiment, can be used for executing the technical solution of above-mentioned Fig. 2 embodiment of the method, realization principle and Technical effect is similar, and details are not described herein again for the present embodiment.
Fig. 7 is the hardware structural diagram of task scheduling equipment provided in an embodiment of the present invention.As shown in fig. 7, this implementation The task scheduling equipment 70 of example includes: processor 701 and memory 702;Wherein
Memory 702, for storing computer executed instructions;
Processor 701 is appointed for executing the computer executed instructions of memory storage with realizing in above-mentioned Fig. 2 embodiment Each step performed by business dispatching method.It specifically may refer to the associated description in preceding method embodiment.
Optionally, memory 702 can also be integrated with processor 701 either independent.
When memory 702 is independently arranged, which further includes bus 703, for connecting the memory 702 and processor 701.
It includes: processor and memory that the embodiment of the present invention, which provides another task scheduling equipment,;Wherein
Memory, for storing computer executed instructions;
Processor, for executing the computer executed instructions of memory storage, to realize task tune in above-mentioned Fig. 3 embodiment Each step performed by degree method.It specifically may refer to the associated description in preceding method embodiment.
Optionally, memory can also be integrated with processor either independent.
When memory is independently arranged, which further includes bus, for connecting the memory and processing Device.
The embodiment of the present invention also provides a kind of computer readable storage medium, stores in the computer readable storage medium There are computer executed instructions, when processor executes the computer executed instructions, realizes the task schedule side as described in figure 2 above Method.
The embodiment of the present invention also provides another computer readable storage medium, deposits in the computer readable storage medium Computer executed instructions are contained, when processor executes the computer executed instructions, realize the task schedule as described in figure 3 above Method.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of the module, only Only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple modules can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or module It connects, can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit It is that modules physically exist alone, can also be integrated in one unit with two or more modules.Above-mentioned module at Unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated module realized in the form of software function module, can store and computer-readable deposit at one In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this Shen Please each embodiment the method part steps.
It should be understood that above-mentioned processor can be central processing unit (Central Processing Unit, abbreviation CPU), It can also be other general processors, digital signal processor (Digital Signal Processor, abbreviation DSP), dedicated Integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC) etc..General processor can be Microprocessor or the processor are also possible to any conventional processor etc..It can be in conjunction with the step of invention disclosed method Be embodied directly in hardware processor and execute completion, or in processor hardware and software module combination execute completion.
Memory may include high speed RAM memory, it is also possible to and it further include non-volatile memories NVM, for example, at least one Magnetic disk storage can also be USB flash disk, mobile hard disk, read-only memory, disk or CD etc..
It is total that bus can be industry standard architecture (Industry Standard Architecture, abbreviation ISA) Line, external equipment interconnection (Peripheral Component, abbreviation PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, abbreviation EISA) bus etc..It is total that bus can be divided into address Line, data/address bus, control bus etc..For convenient for indicating, the bus in illustrations does not limit an only bus or one The bus of seed type.
Above-mentioned storage medium can be by any kind of volatibility or non-volatile memory device or their combination It realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable Read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, Disk or CD.Storage medium can be any usable medium that general or specialized computer can access.
A kind of illustrative storage medium is coupled to processor, believes to enable a processor to read from the storage medium Breath, and information can be written to the storage medium.Certainly, storage medium is also possible to the component part of processor.It processor and deposits Storage media can be located at specific integrated circuit (Application Specific Integrated Circuits, abbreviation ASIC) In.Certainly, pocessor and storage media can also be used as discrete assembly and be present in electronic equipment or main control device.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (12)

1. a kind of method for scheduling task characterized by comprising
Task choosing instruction is obtained, the task choosing instruction carries task identification;
Goal task is determined from default timed task list according to the task identification;
The goal task is sent to System Back-end, so that the System Back-end obtains the configuration information of the goal task, The configuration information of the goal task includes cron expression formula, dispatches corresponding appoint according to the cron expression formula using scheduler Business interface.
2. the method according to claim 1, wherein further include:
Task operating instruction is obtained, the task operating instruction includes increase, deletion, modification, execution or the pause of task;
Task operating instruction is sent to the System Back-end, so that the System Back-end is pressed using the task interface of scheduling According to increase, deletion, modification, execution or the pause of task operating instruction carry out task.
3. the method according to claim 1, wherein further include:
The configuration information of acquisition task, the configuration information of the task include that cron expression formula and cron expression formula are corresponding Task interface;
The configuration information of the task is sent to System Back-end so that the System Back-end save the task with confidence Breath.
4. according to the method in any one of claims 1 to 3, which is characterized in that further include:
Show the default timed task list and ongoing task.
5. a kind of method for scheduling task characterized by comprising
The goal task that system front end is sent is received, the goal task is obtaining task choosing instruction by the system front end Afterwards, the task choosing instruction carries task identification, is determined from default timed task list according to the task identification;
The configuration information of the goal task is obtained, the configuration information of the goal task includes cron expression formula;
Corresponding task interface is dispatched according to the cron expression formula using scheduler.
6. according to the method described in claim 5, it is characterized by further comprising:
The task operating instruction that the system front end is sent is received, the task operating instruction includes the increase of task, deletes, repairs Change, execute or suspends;
Using the task interface of scheduling according to the task operating instruction increase of carry out task, deletion, modification, executions or temporary Stop.
7. a kind of task scheduling equipment characterized by comprising
Selection instruction obtains module, and for obtaining task choosing instruction, the task choosing instruction carries task identification;
Task determining module, for determining goal task from default timed task list according to the task identification;
Task sending module, for the goal task to be sent to System Back-end, so that the System Back-end obtains the mesh The configuration information of mark task, the configuration information of the goal task includes cron expression formula, using scheduler according to the cron Expression formula dispatches corresponding task interface.
8. equipment according to claim 7, which is characterized in that further include:
Operational order obtains module, and for obtaining task operating instruction, the task operating instruction includes the increase of task, deletes It removes, modify, execute or suspends;
Operational order sending module, for task operating instruction to be sent to the System Back-end, so that after the system End instructs increase, deletion, modification, execution or the pause of carry out task using the task interface of scheduling according to the task operating.
9. equipment according to claim 7, which is characterized in that further include:
First configuration information obtains module, and for obtaining the configuration information of task, the configuration information of the task includes cron table Up to formula and the corresponding task interface of cron expression formula;
Configuration information sending module, for the configuration information of the task to be sent to System Back-end, so that the System Back-end Save the configuration information of the task.
10. a kind of task scheduling equipment characterized by comprising
Task receiving module, for receiving the goal task of system front end transmission, the goal task is existed by the system front end After obtaining task choosing instruction, task choosing instruction carries task identification, according to the task identification from presetting former It is engaged in determining in list;
Second configuration information obtains module, and for obtaining the configuration information of the goal task, the goal task matches confidence Breath includes cron expression formula;
Task scheduling modules, for dispatching corresponding task interface according to the cron expression formula using scheduler.
11. a kind of task scheduling equipment characterized by comprising at least one processor and memory;
The memory stores computer executed instructions;
At least one described processor executes the computer executed instructions of the memory storage, so that at least one described processing Device executes such as the described in any item method for scheduling task of Claims 1-4.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium It executes instruction, when processor executes the computer executed instructions, realizes such as the described in any item tasks of Claims 1-4 Dispatching method.
CN201910313004.8A 2019-04-18 2019-04-18 Method for scheduling task and equipment Pending CN110058930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910313004.8A CN110058930A (en) 2019-04-18 2019-04-18 Method for scheduling task and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910313004.8A CN110058930A (en) 2019-04-18 2019-04-18 Method for scheduling task and equipment

Publications (1)

Publication Number Publication Date
CN110058930A true CN110058930A (en) 2019-07-26

Family

ID=67319394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910313004.8A Pending CN110058930A (en) 2019-04-18 2019-04-18 Method for scheduling task and equipment

Country Status (1)

Country Link
CN (1) CN110058930A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995942A (en) * 2019-12-06 2020-04-10 科大国创软件股份有限公司 Soft switch automatic calling method and system based on interface visualization
CN111240855A (en) * 2019-12-31 2020-06-05 中国建设银行股份有限公司 API debugging system, method, storage medium and computer device
CN111274032A (en) * 2020-01-17 2020-06-12 Oppo广东移动通信有限公司 Task processing system and method, and storage medium
CN112181654A (en) * 2020-09-28 2021-01-05 亚信科技(中国)有限公司 Task scheduling method, device and equipment and computer readable storage medium
CN113485799A (en) * 2021-06-21 2021-10-08 上海百秋电子商务有限公司 Method, device, equipment and storage medium for executing same timing task by multiple libraries

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6032172A (en) * 1997-05-29 2000-02-29 Sun Microsystems, Inc. Distributed computer process scheduling mechanism
US20080148264A1 (en) * 2006-12-13 2008-06-19 Sap Ag CRON time processing implementation for scheduling tasks within a multi-tiered enterprise network
CN101604242A (en) * 2009-07-17 2009-12-16 深圳市珍爱网信息技术有限公司 Realize the system of timed task in the Java application system
CN103677973A (en) * 2013-09-01 2014-03-26 西安重装渭南光电科技有限公司 Distributed multi-task scheduling management system
CN107786593A (en) * 2016-08-25 2018-03-09 阿里巴巴集团控股有限公司 Task deployment method, example deployment method, apparatus and equipment
CN109634728A (en) * 2018-11-16 2019-04-16 深圳市云智融科技有限公司 Job scheduling method, device, terminal device and readable storage medium storing program for executing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6032172A (en) * 1997-05-29 2000-02-29 Sun Microsystems, Inc. Distributed computer process scheduling mechanism
US20080148264A1 (en) * 2006-12-13 2008-06-19 Sap Ag CRON time processing implementation for scheduling tasks within a multi-tiered enterprise network
CN101604242A (en) * 2009-07-17 2009-12-16 深圳市珍爱网信息技术有限公司 Realize the system of timed task in the Java application system
CN103677973A (en) * 2013-09-01 2014-03-26 西安重装渭南光电科技有限公司 Distributed multi-task scheduling management system
CN107786593A (en) * 2016-08-25 2018-03-09 阿里巴巴集团控股有限公司 Task deployment method, example deployment method, apparatus and equipment
CN109634728A (en) * 2018-11-16 2019-04-16 深圳市云智融科技有限公司 Job scheduling method, device, terminal device and readable storage medium storing program for executing

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995942A (en) * 2019-12-06 2020-04-10 科大国创软件股份有限公司 Soft switch automatic calling method and system based on interface visualization
CN111240855A (en) * 2019-12-31 2020-06-05 中国建设银行股份有限公司 API debugging system, method, storage medium and computer device
CN111274032A (en) * 2020-01-17 2020-06-12 Oppo广东移动通信有限公司 Task processing system and method, and storage medium
CN111274032B (en) * 2020-01-17 2024-04-30 Oppo广东移动通信有限公司 Task processing system and method, and storage medium
CN112181654A (en) * 2020-09-28 2021-01-05 亚信科技(中国)有限公司 Task scheduling method, device and equipment and computer readable storage medium
CN113485799A (en) * 2021-06-21 2021-10-08 上海百秋电子商务有限公司 Method, device, equipment and storage medium for executing same timing task by multiple libraries
CN113485799B (en) * 2021-06-21 2023-10-20 上海百秋新网商数字科技有限公司 Method, device, equipment and storage medium for executing same timing task by multiple libraries

Similar Documents

Publication Publication Date Title
CN110058930A (en) Method for scheduling task and equipment
CN106874361B (en) Data processing method and device applied to customs declaration
CN208932210U (en) The system for sorting cargo
CN110297766A (en) Method for testing software and software testing system based on distributed test node cluster
CN109634728A (en) Job scheduling method, device, terminal device and readable storage medium storing program for executing
CN104516794B (en) Backup method, the apparatus and system of database file
CN107943577A (en) Method and apparatus for scheduler task
CN110390586A (en) Account checking method, device and server
CN109144683A (en) Task processing method, device, system and electronic equipment
CN110335022A (en) Automatic auditing method, device, equipment and storage medium
CN110389843A (en) A kind of business scheduling method, device, equipment and readable storage medium storing program for executing
CN110516628A (en) Shelf vacant locations merchandise news acquisition methods, system, equipment and storage medium
CN109582452A (en) A kind of container dispatching method, dispatching device and electronic equipment
CN105677465A (en) Data processing method and device applied to bank batch processing
CN109873910A (en) Processing method, device and the storage medium of session request
CN110019123A (en) A kind of data migration method and device
CN109725995A (en) Data pick-up task executing method, device, equipment and readable storage medium storing program for executing
CN110347667A (en) A kind of data cleaning method and device
CN107391155A (en) A kind of packaging method and device
CN108733671A (en) The method and apparatus of data history filing
CN105787714A (en) A method and system for transferring accounts between payment applications
CN109240979A (en) Data processing chip and LED display system
CN110389976A (en) A kind of dispatching method and device of multi-interface data
CN109669807A (en) The method of calibration and device of business event, processor, storage medium
CN114358577A (en) Order information 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190726