CN109656698A - Task processing method, management platform, actuating station and computer readable storage medium - Google Patents
Task processing method, management platform, actuating station and computer readable storage medium Download PDFInfo
- Publication number
- CN109656698A CN109656698A CN201811531484.7A CN201811531484A CN109656698A CN 109656698 A CN109656698 A CN 109656698A CN 201811531484 A CN201811531484 A CN 201811531484A CN 109656698 A CN109656698 A CN 109656698A
- Authority
- CN
- China
- Prior art keywords
- task
- actuating station
- goal
- processing method
- management platform
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 46
- 230000005540 biological transmission Effects 0.000 claims abstract description 38
- 238000012545 processing Methods 0.000 claims abstract description 18
- 238000012800 visualization Methods 0.000 claims abstract description 8
- 238000000034 method Methods 0.000 claims description 30
- 238000004458 analytical method Methods 0.000 claims description 8
- 230000002159 abnormal effect Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 10
- 238000012544 monitoring process Methods 0.000 description 4
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000001427 coherent effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/20—Administration of product repair or maintenance
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- General Engineering & Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to O&M technical fields, disclose a kind of task processing method, management platform, actuating station and computer readable storage medium, task processing method is applied to management platform, the following steps are included: the corresponding goal task of the task trigger time is pushed to Redis queue when being in task trigger time;The routing policy of the goal task is obtained, the routing policy is based on, determines the corresponding actuating station of the goal task;By preset message transmission plug-in unit, the goal task in the Redis queue is issued to the actuating station;Receive the execution state information that the actuating station is adjusted back by preset message transmission plug-in unit;The execution state information is shown on visualization interface.Through the invention, in the trigger time automatic trigger task of task, and the actuating station for being suitable for for task choosing, the execution efficiency for both having improved task also improve the success rate of task processing.
Description
Technical field
The present invention relates to O&M technical fields more particularly to task processing method, management platform, actuating station and computer can
Read storage medium.
Background technique
Currently, operation maintenance personnel when handling O&M task (calculating task, test assignment etc.), need to be selected manually to
The operation such as actuating station needed for the O&M task of execution, selection, when task quantity is more, can aggravate the work pressure of operation maintenance personnel
It is not high enough to also result in task treatment effeciency for power.
Summary of the invention
The main purpose of the present invention is to provide a kind of task processing methods, management platform, actuating station and computer-readable
Storage medium, it is intended to solve the low technical problem of O&M task treatment effeciency in the prior art.
To achieve the above object, the present invention provides a kind of task processing method, and the task processing method is applied to management
Platform, the task processing method the following steps are included:
When being in task trigger time, the corresponding goal task of the task trigger time is pushed into Redis
Queue;
The routing policy of the goal task is obtained, the routing policy is based on, determines that the goal task is corresponding and hold
Row end;
By preset message transmission plug-in unit, the goal task in the Redis queue is issued to the actuating station;
Receive the execution state information that the actuating station is adjusted back by preset message transmission plug-in unit;
The execution state information is shown on visualization interface.
Optionally, the routing policy for obtaining the goal task, is based on the routing policy, determines that the target is appointed
The step of corresponding actuating station of being engaged in includes:
The routing policy of the goal task is obtained, and is obtained based on the routing policy and executes client information;
Based on the routing policy and the execution client information, the corresponding actuating station of goal task is determined.
Optionally, the preset message transmission plug-in unit include the corresponding main ETCD server of preset management platform and
The corresponding sub- ETCD server of actuating station, it is described by preset message transmission plug-in unit, the target in the Redis queue is appointed
Business the step of being issued to the actuating station includes:
By the main ETCD server, it is corresponding that the goal task in the Redis queue is issued to the actuating station
Sub- ETCD server, so that the actuating station obtains the goal task from the sub- ETCD server.
Optionally, the step for receiving the execution state information that the actuating station is adjusted back by preset message transmission plug-in unit
After rapid, further includes:
Journal file is generated based on the execution state information, and anomaly analysis is carried out to the journal file;
When the journal file is deposited when abnormal, outputting alarm prompt.
In addition, to achieve the above object, the present invention also provides a kind of task processing method, the task processing method application
In actuating station, the task processing method the following steps are included:
The goal task that management platform is issued by preset message transmission plug-in unit is obtained, and detects the goal task
Whether quantity is greater than or equal to 2;
If the quantity of goal task is greater than or equal to 2, the weighted value of each goal task is obtained;
Based on the weighted value, task execution sequence is determined;
According to the task execution sequence, performance objective task, and the state of execution is passed through into preset message transmission plug-in unit
Pull back to management platform.
Optionally, the step of performance objective task includes:
The perform script of goal task is created, and creates corresponding process, the perform script is run in the process.
Optionally, described according to the task execution sequence, performance objective task, and execution state is disappeared by preset
After the step of breath transmitting plug-in unit pulls back to management platform, further includes:
During performance objective task, if receiving pause instruction, stop performance objective task.
In addition, to achieve the above object, the present invention also provides a kind of management platform, the management platform include: memory,
Processor and it is stored in the task processor that can be run on the memory and on the processor, the task handles journey
The step of sequence realizes task processing method as described above when being executed by the processor.
In addition, to achieve the above object, the present invention also provides a kind of actuating station, the actuating station includes: memory, processing
Device and it is stored in the task processor that can be run on the memory and on the processor, the task processor quilt
The step of processor realizes task processing method as described above when executing.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Task processor is stored on storage medium, the task processor realizes task as described above when being executed by processor
The step of processing method.
In the present invention, when being in task trigger time, the corresponding goal task of the task trigger time is pushed away
It send to Redis queue;The routing policy of the goal task is obtained, the routing policy is based on, determines the goal task pair
The actuating station answered;By preset message transmission plug-in unit, the goal task in the Redis queue is issued to the execution
End;Receive the execution state information that the actuating station is adjusted back by preset message transmission plug-in unit;It is shown on visualization interface
The execution state information.Through the invention, in the trigger time automatic trigger task of task, and suitable for task choosing
Actuating station, the execution efficiency for both having improved task also improve the success rate of task processing.
Detailed description of the invention
Fig. 1 is the management platform structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the actuating station structural schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 3 is the flow diagram of task processing method first embodiment of the present invention;
Fig. 4 is the configuration diagram of task processing system in one embodiment of task processing method of the present invention;
Fig. 5 is the flow diagram of task processing method second embodiment of the present invention;
Fig. 6 is the functional block diagram of task management device of the present invention;
Fig. 7 is the functional block diagram of task execution device of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in FIG. 1, FIG. 1 is the management platform structure signals for the hardware running environment that the embodiment of the present invention is related to
Figure.
As shown in Figure 1, the management platform may include: processor 1001, such as CPU, network interface 1004, user interface
1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components.
User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
It will be understood by those skilled in the art that management platform structure shown in Fig. 1 does not constitute the limit to management platform
It is fixed, it may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe module, Subscriber Interface Module SIM and task processor.
In management platform shown in Fig. 1, network interface 1004 is mainly used for connecting background server, with background server
Carry out data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And locate
Reason device 1001 can be used for calling the task processor stored in memory 1005, and execute following apply in management platform
Task processing method each embodiment in operation.
As shown in Fig. 2, Fig. 2 is the actuating station structural schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
As shown in Fig. 2, the actuating station may include: processor 2001, such as CPU, network interface 2004, user interface
2003, memory 2005, communication bus 2002.Wherein, communication bus 2002 is for realizing the connection communication between these components.
User interface 2003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
2003 can also include standard wireline interface and wireless interface.Network interface 2004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as WI-FI interface).Memory 2005 can be high speed RAM memory, be also possible to stable memory
(non-volatile memory), such as magnetic disk storage.Memory 2005 optionally can also be independently of aforementioned processor
2001 storage device.
It will be understood by those skilled in the art that management platform structure shown in Figure 2 does not constitute the limit to management platform
It is fixed, it may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Fig. 2, as may include that operating system, network are logical in a kind of memory 2005 of computer storage medium
Believe module, Subscriber Interface Module SIM and task processor.
In actuating station shown in Fig. 2, network interface 2004 be mainly used for connect background server, with background server into
Row data communication;User interface 2003 is mainly used for connecting client (user terminal), carries out data communication with client;And it handles
Device 2001 can be used for calling the task processor stored in memory 2005, and execute following times applied in actuating station
Operation in each embodiment for processing method of being engaged in.
It is the flow diagram of task processing method first embodiment of the present invention referring to Fig. 3, Fig. 3.
In the present embodiment, task processing method is applied to management platform, and task processing method includes:
Step S10 pushes the corresponding goal task of the task trigger time when being in task trigger time
To Redis queue;
In the present embodiment, management platform is also referred to as task schedule platform, can be realized by computer.The management platform makes
Python (being a coherent and powerful object oriented program language) is used to be developed as basic language.Ginseng
According to Fig. 4, Fig. 4 is the configuration diagram of task processing system in one embodiment of task processing method of the present invention.As shown in figure 4, appointing
Processing system of being engaged in includes management platform, message transmission plug-in unit (main ETCD server, sub- ETCD server) and actuating station.Its
In, platform management personnel can add new task by task management module or delete existing task, or match to existing task
Confidence breath is modified;By being authorized to operate that the personnel of task approval module, the change in task management module is examined;
Server management module is used to carry out system administration to management platform;Execution journal check module for save execution journal for
Related personnel checks execution journal;The registration module that registration receiving module is used to receive actuating station is reported by message transmission plug-in unit
Registration information;Task scheduling modules and mission dispatching module are used for the triggering of task and are issued to corresponding actuating station
Execution module;Execution state receiving module is for receiving the execution status of task information that execution module in actuating station reports.Fig. 4
In, illustrate only actuating station 1 and its corresponding sub- ETCD server 1 and actuating station 2 and its corresponding sub- ETCD server
2, but the quantity of actuating station is not limited to 2, multiple actuating stations and the corresponding son of each actuating station can be arranged according to actual needs
ETCD server.
In the present embodiment, task and the corresponding configuration information of task are previously written in management platform (specifically by user
It is recorded in the task management device of management platform).Wherein, the quantity of task is either one or more, with specific reference to
Actual needs is configured.For example, being previously stored with n task in management platform, (task 1 to task n), the correspondence of task 1 are matched
Confidence breath 1, corresponding configuration information 2 ... the task n of task 2 correspond to configuration information n.Configuration information include task trigger time,
Execution task needs the information such as the parameter transmitted and the corresponding routing policy of task.
When current time T be task trigger time when, for example, T be task 1, task 2, task 3 ..., task 24,
The trigger time of task 25, then the corresponding goal task of current time T is task 1 to task 25, by management platform
Task 1 to task 25 is pushed to Redis queue by task scheduling modules.Herein, pending task is pushed into Redis team
Column are because the Redis data single thread per second that can be written is up to 1.7w/s, therefore can be very good to realize multitask while touch
Hair not will lead to pending task and lose.If (Redis queue is not used, in task triggering, if synchronization has simultaneously
Several hundred thousands of tasks trigger simultaneously, if the process of each task triggering is 5 seconds, then there was only 20 tasks within 1 minute
It can execute, when to the 21st task, scheduler finds that the execution time of the configuration of the task and current time are not inconsistent, therefore just wrong
It has crossed and has performed on time)
Step S20 obtains the routing policy of the goal task, is based on the routing policy, determines the goal task
Corresponding actuating station;
In the present embodiment, the routing policy of goal task is obtained from the corresponding configuration information of goal task, routing policy
Refer to the strategy that actuating station is selected for goal task.
In one alternative embodiment, the routing policy of goal task 1 may is that selection loads the smallest actuating station.Then manage
The status information that platform is uploaded according to each actuating station selects the smallest actuating station of present load as mesh from each actuating station
The corresponding actuating station of mark task 1.
In another alternative embodiment, the routing policy of goal task 2 may is that the selection strongest actuating station of processing capacity,
The registration information that platform is uploaded according to each actuating station is then managed, selects processing capacity most strong (with processing from each actuating station
Device accessible data volume per second is as measurement standard) actuating station, as the corresponding actuating station of goal task 2.
In another alternative embodiment, the routing policy of goal task 3 may is that the actuating station that selection is in idle condition,
The status information that platform is uploaded according to each actuating station is then managed, selection is currently at holding for idle state from each actuating station
Row end is as the corresponding actuating station of goal task 3.
In the above-described embodiments, if satisfactory actuating station have it is multiple, from satisfactory multiple actuating stations with
Machine select one as the corresponding actuating station of goal task.
Goal task in the Redis queue is issued to described by step S30 by preset message transmission plug-in unit
Actuating station;
In an alternate embodiment of the present invention, preset message transmission plug-in unit includes the corresponding main ETCD of preset management platform
(ETCD is the distribution for configuration sharing and service discovery, unanimously for server and the corresponding sub- ETCD server of actuating station
The KV storage system of property), step S30 includes:
By the main ETCD server, it is corresponding that the goal task in the Redis queue is issued to the actuating station
Sub- ETCD server, so that the actuating station obtains the goal task from the sub- ETCD server.By step S20
Processing, if in goal task, the corresponding actuating station of goal task 1 be actuating station a, the corresponding actuating station of goal task 2 be hold
Row end b, the corresponding actuating station of goal task 3 are actuating station c.Then managing mission dispatching module in platform will be in Redis queue
Goal task 1 is transferred to the corresponding sub- ETCD server 1 of actuating station a, so that goal task 1 is transferred to by sub- ETCD server 1
Actuating station a or actuating station a actively obtains the target from sub- ETCD server 1 and appoints when listening to information transmitting event
Business 1;Similarly, it manages mission dispatching module in platform and the goal task 2 in Redis queue is transferred to the corresponding son of actuating station b
ETCD server 2 is listening to the letter so that goal task 2 is transferred to actuating station b or actuating station b by sub- ETCD server 2
When ceasing transmitting event, the goal task 2 is actively obtained from sub- ETCD server 2;Similarly, mission dispatching module in platform is managed
Goal task 3 in Redis queue is transferred to the corresponding sub- ETCD server 3 of actuating station c, so that sub- ETCD server 3 will
Goal task 3 is transferred to actuating station c or actuating station c when listening to information transmitting event, actively from sub- ETCD server
The goal task 3 is obtained on 3.In the present embodiment, by ETCD server as message transmission plug-in unit, guarantee the standard of message transmission
True property and rapidity.Here, with no restriction to the selection of message transmission plug-in unit, as long as the message transmission of said effect can be reached
Plug-in unit.
Step S40 receives the execution state information that the actuating station is adjusted back by preset message transmission plug-in unit;
In the present embodiment, when actuating station receives goal task (being substantially the source code for receiving goal task), just create
The corresponding perform script of goal task and process, and perform script is run in process, and by the operating status of perform script
Information (state, operation finish state, operation status of fail etc. in operation), process number information pull back to management platform.Wherein, it holds
Running state information originally of traveling far and wide and process number information are referred to as execution state information, the transmission path of execution state information
Are as follows: actuating station to its corresponding sub- ETCD server, then main ETCD server is arrived, the execution shape being then passed in management platform
State reception device is believed in this way, management platform just receives actuating station by the execution state that preset message transmission plug-in unit is adjusted back
Breath.
Step S50 shows the execution state information on visualization interface.
In the present embodiment, it is possible to provide a visualization interface, for being shown to execution state information, so that related personnel
The implementation progress of goal task can be apparent from.
In the present embodiment, when being in task trigger time, by the corresponding goal task of the task trigger time
Push to Redis queue;The routing policy of the goal task is obtained, the routing policy is based on, determines the goal task
Corresponding actuating station;By preset message transmission plug-in unit, the goal task in the Redis queue is issued to the execution
End;Receive the execution state information that the actuating station is adjusted back by preset message transmission plug-in unit;It is shown on visualization interface
The execution state information.Through this embodiment, in the trigger time automatic trigger task of task, and it is suitable for task choosing
Actuating station, both improved task execution efficiency also improve task processing success rate.
In one embodiment of task processing method of the present invention, step S20 includes:
The routing policy of the goal task is obtained, and is obtained based on the routing policy and executes client information;
Based on the routing policy and the execution client information, the corresponding actuating station of goal task is determined.
In the present embodiment, different goal tasks may have different routing policies.For example, the routing plan of goal task 1
Slightly selection loads the smallest actuating station.Then the current execution client information for needing to obtain is the status information of each actuating station, so
The status information uploaded afterwards according to each actuating station, selects the smallest actuating station of present load as target from each actuating station
The corresponding actuating station of task 1.In another example the routing policy of goal task 2 is the selection strongest actuating station of processing capacity.It is then current
The execution client information for needing to obtain is that the registration information of each actuating station (contains the performance letter of corresponding actuating station in registration information
Breath), the registration information then uploaded according to each actuating station selects processing capacity most strong (with processor from each actuating station
Accessible data volume per second is as measurement standard) actuating station as the corresponding actuating station of goal task 2.In above-described embodiment
In, if satisfactory actuating station has multiple, one conduct target times of random selection from satisfactory multiple actuating stations
It is engaged in corresponding actuating station.
In the present embodiment, satisfactory actuating station is selected according to the corresponding routing policy of goal task, improves target
The probability that the chosen actuating station of task is successfully processed.
Further, in one embodiment of task processing method of the present invention, after step S40, further includes:
Journal file is generated based on the execution state information, and anomaly analysis is carried out to the journal file;
When the journal file is deposited when abnormal, outputting alarm prompt.
In the present embodiment, journal file has recorded the corresponding execution initial time of goal task, actuating station and actuating station
The information such as state.Management platform can also be docked with the monitoring system of periphery.Management platform is believed according to the execution state received
Breath generates journal file, and journal file is sent to monitoring system.Monitoring system to management platform send journal file into
Row anomaly analysis;When detecting that journal file deposits when abnormal, alarm can be sent to system manager in the form of short message and mentioned
Show;To which system manager can timely carry out manual intervention after receiving alarm prompt.Wherein, monitoring system is to management
The journal file that platform is sent, which carries out anomaly analysis, can be, and according to the record in journal file, detect corresponding goal task
Execution time and its triggered time between the time difference whether be less than or equal to preset threshold, if more than preset threshold, then recognize
Determine journal file and there is exception, or according to the record in journal file, detection actuating station is wanted with goal task routing policy
The no matching of Seeking Truth, if it is not, it is abnormal then to assert that journal file exists.
In the present embodiment, by carrying out anomaly analysis to journal file, and outputting alarm prompt when abnormal is being deposited, so that
Related personnel can carry out manual intervention in time.
It is the flow diagram of task processing method second embodiment of the present invention referring to Fig. 5, Fig. 5.
In the present embodiment, task processing method is applied to actuating station, and task processing method includes:
Step S60 obtains the goal task that management platform is issued by preset message transmission plug-in unit, and detects the mesh
Whether the quantity of mark task is greater than or equal to 2;
In the present embodiment, by taking actuating station x as an example, actuating station x monitors its corresponding sub- ETCD server x, if pipe
Platform has pushed goal task to the sub- ETCD server x of actuating station x by main ETCD server, then actuating station x is from son
The goal task is obtained in ETCD server x;Or it is taken by main ETCD server to the sub- ETCD of actuating station x in management platform
After business device x has pushed goal task, which is directly pushed to by actuating station x by sub- ETCD server x.Actuating station x exists
After receiving goal task, whether the quantity for detecting goal task is greater than or equal to 2
Step S70 obtains the weighted value of each goal task if the quantity of goal task is greater than or equal to 2;
Step S80 is based on the weighted value, determines task execution sequence;
In the present embodiment, if the quantity of goal task is greater than or equal to 2, for example, goal task includes task 1 to task 6,
Then obtain the weighted value of each task.Wherein, each task assigns weight when task is written into management platform for each task
Value.For example, the weighted value of 6 tasks is respectively: { task 1,1 }, { task 2,5 }, { task 3,2 }, { task 4,3 }, task 5,
4 }, { task 4,6 }.
According to the weighted value of above-mentioned each task, determine that task execution sequence is { task 4,6 }, { task 2,5 }, { task
5,4 }, { task 4,3 }, { task 3,2 }, { task 1,1 }.
The state of execution according to the task execution sequence, performance objective task, and is passed through preset message by step S90
Transmitting plug-in unit pulls back to management platform.
In the present embodiment, according to execution sequence, performance objective task one by one.And state will be executed and pass through message transmission plug-in unit
Pull back to management platform.Execution state includes: the letter such as the operating status of the corresponding perform script of task, the corresponding process number of task
Breath.In the present embodiment, the step of performance objective task includes: the perform script for creating goal task, and creates corresponding process,
The perform script is run in the process.For example, creating the corresponding execution of source code 1 according to the source code 1 of goal task 1
Script 1, and process 1 is created, the perform script 1 is run in process 1, then by the (operation of the running state information of perform script 1
Middle state, operation finish state, operation status of fail etc.), that process number (i.e. the process number of process 1) information pulls back to management is flat
Platform.Wherein, the running state information of perform script and process number information are referred to as execution state information, execute the readjustment of state
Path are as follows: by actuating station to its corresponding sub- ETCD server, then arrive main ETCD server, be then passed in management platform
Execution state reception device, in this way, management platform just receives the execution that actuating station is adjusted back by preset message transmission plug-in unit
Status information.
In the present embodiment, when an actuating station receives multiple goal tasks simultaneously, according to the power of each goal task
Weight values determine the sequence that executes of each goal task, then successively execute each goal task according to determining execution sequence, i.e.,
Each goal task is executed according to the priority of goal task, so that goal task, which is performed, more meets user demand.
Further, in one embodiment of task processing method of the present invention, after step S90, further includes:
During performance objective task, if receiving pause instruction, stop performance objective task.
In the present embodiment, during goal task is performed, user can suspend its executive process when needed manually.By
Between each actuating station be it is independent, when the executive process in an actuating station is interrupted, will not influence other actuating stations
Work, improves the operability of task execution and will not influence whole task execution progress.
It is the functional block diagram of task management device of the present invention referring to Fig. 6, Fig. 6.
The task management device includes:
Task pushing module 10 is used for when being in task trigger time, and the task trigger time is corresponding
Goal task pushes to Redis queue;
Actuating station selecting module 20 is based on the routing policy, determines for obtaining the routing policy of the goal task
The corresponding actuating station of the goal task;
Mission dispatching module 30, for by preset message transmission plug-in unit, by the goal task in the Redis queue
It is issued to the actuating station;
Execution state information receiving module 40 passes through preset message transmission plug-in unit readjustment for receiving the actuating station
Execution state information;
Display module 50, for showing the execution state information on visualization interface.
In one embodiment, the actuating station selecting module 20 includes:
Acquiring unit obtains actuating station for obtaining the routing policy of the goal task, and based on the routing policy
Information;
Selecting unit determines that goal task is corresponding and holds for being based on the routing policy and the execution client information
Row end.
In one embodiment, the preset message transmission plug-in unit includes the corresponding main ETCD server of preset management platform
And the corresponding sub- ETCD server of actuating station, the mission dispatching module 30 include:
Mission dispatching unit, for by the main ETCD server, the goal task in the Redis queue to be issued
To the corresponding sub- ETCD server of the actuating station, so that the actuating station obtains the target from the sub- ETCD server
Task
In one embodiment, task management device further include:
Anomaly analysis module, for based on the execution state information generate journal file, and to the journal file into
Row anomaly analysis;When the journal file is deposited when abnormal, outputting alarm prompt.
The specific embodiment of task management device of the present invention and each embodiment of above-mentioned task processing method are essentially identical,
This will not be repeated here.
It is the functional block diagram of task execution device of the present invention referring to Fig. 7, Fig. 7.
The task execution device includes:
Detection module 60, the goal task issued for obtaining management platform by preset message transmission plug-in unit, and examine
Whether the quantity for surveying the goal task is greater than or equal to 2;
Module 70 is obtained, if the quantity for goal task is greater than or equal to 2, obtains the weight of each goal task
Value;
Sorting module 80 determines task execution sequence for being based on the weighted value;
Task processing module 90 is used for according to the task execution sequence, performance objective task, and execution state is passed through
Preset message transmission plug-in unit pulls back to management platform.
In one embodiment, task processing module 90 includes:
Task processing unit for creating the perform script of goal task, and creates corresponding process, in the process
Run the perform script.
In one embodiment, task execution device further include:
Suspend module, for if receiving pause instruction, stopping performance objective and appointing during performance objective task
Business.
The specific embodiment of task execution device of the present invention and each embodiment of above-mentioned task processing method are essentially identical,
This will not be repeated here.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
On be stored with task processor, the task processor realizes task processing method as described above when being executed by processor
The step of.
Each embodiment base of the specific embodiment of computer readable storage medium of the present invention and above-mentioned task processing method
This is identical, and this will not be repeated here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of task processing method, which is characterized in that the task processing method is applied to management platform, the task processing
Method the following steps are included:
When being in task trigger time, the corresponding goal task of the task trigger time is pushed into Redis queue;
The routing policy of the goal task is obtained, the routing policy is based on, determines the corresponding actuating station of the goal task;
By preset message transmission plug-in unit, the goal task in the Redis queue is issued to the actuating station;
Receive the execution state information that the actuating station is adjusted back by preset message transmission plug-in unit;
The execution state information is shown on visualization interface.
2. task processing method as described in claim 1, which is characterized in that the routing plan for obtaining the goal task
Slightly, the step of being based on the routing policy, determining the goal task corresponding actuating station include:
The routing policy of the goal task is obtained, and is obtained based on the routing policy and executes client information;
Based on the routing policy and the execution client information, the corresponding actuating station of goal task is determined.
3. task processing method as described in claim 1, which is characterized in that the preset message transmission plug-in unit includes preset
The corresponding main ETCD server of management platform and the corresponding sub- ETCD server of actuating station, it is described to pass through preset message and pass
The step of passing plug-in unit, the goal task in the Redis queue is issued to the actuating station include:
By the main ETCD server, the goal task in the Redis queue is issued to the corresponding son of the actuating station
ETCD server, so that the actuating station obtains the goal task from the sub- ETCD server.
4. task processing method as described in claim 1, which is characterized in that the reception actuating station is disappeared by preset
After the step of execution state information of breath transmitting plug-in unit readjustment, further includes:
Journal file is generated based on the execution state information, and anomaly analysis is carried out to the journal file;
When the journal file is deposited when abnormal, outputting alarm prompt.
5. a kind of task processing method, which is characterized in that the task processing method is applied to actuating station, the task processing side
Method the following steps are included:
The goal task that management platform is issued by preset message transmission plug-in unit is obtained, and detects the quantity of the goal task
Whether 2 are greater than or equal to;
If the quantity of goal task is greater than or equal to 2, the weighted value of each goal task is obtained;
Based on the weighted value, task execution sequence is determined;
According to the task execution sequence, performance objective task, and the state of execution is adjusted back by preset message transmission plug-in unit
To management platform.
6. task processing method as claimed in claim 5, which is characterized in that the step of performance objective task includes:
The perform script of goal task is created, and creates corresponding process, the perform script is run in the process.
7. task processing method as claimed in claim 5, which is characterized in that it is described according to the task execution sequence, it executes
Goal task, and after the step of execution state is pulled back to management platform by preset message transmission plug-in unit, further includes:
During performance objective task, if receiving pause instruction, stop performance objective task.
8. a kind of management platform, which is characterized in that the management platform includes: memory, processor and is stored in the storage
It is real when the task processor is executed by the processor on device and the task processor that can run on the processor
Now the step of task processing method according to any one of claims 1 to 4.
9. a kind of actuating station, which is characterized in that the actuating station includes: memory, processor and is stored on the memory
And the task processor that can be run on the processor, it is realized such as when the task processor is executed by the processor
The step of task processing method described in claim 5 or 7.
10. a kind of computer readable storage medium, which is characterized in that be stored at task on the computer readable storage medium
Program is managed, the task processing as described in any one of claims 1 to 7 is realized when the task processor is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811531484.7A CN109656698A (en) | 2018-12-14 | 2018-12-14 | Task processing method, management platform, actuating station and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811531484.7A CN109656698A (en) | 2018-12-14 | 2018-12-14 | Task processing method, management platform, actuating station and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109656698A true CN109656698A (en) | 2019-04-19 |
Family
ID=66114065
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811531484.7A Pending CN109656698A (en) | 2018-12-14 | 2018-12-14 | Task processing method, management platform, actuating station and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109656698A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471774A (en) * | 2019-06-28 | 2019-11-19 | 苏宁云计算有限公司 | A kind of data processing method and device based on unified task schedule |
CN111143044A (en) * | 2019-12-10 | 2020-05-12 | 浙江力石科技股份有限公司 | Task scheduling management system, method, device and storage medium thereof |
CN111541561A (en) * | 2020-04-09 | 2020-08-14 | 珠海格力电器股份有限公司 | Microservice configuration information management system, microservice configuration information management method, microservice configuration information management server, and storage medium |
CN112134749A (en) * | 2020-06-24 | 2020-12-25 | 展讯半导体(成都)有限公司 | Dynamic network access management method and system |
CN112162825A (en) * | 2020-10-12 | 2021-01-01 | 北京首都在线科技股份有限公司 | Equipment configuration method, device, equipment and storage medium |
CN113110867A (en) * | 2021-04-02 | 2021-07-13 | 远光软件股份有限公司 | RPA robot management method, device, server and storage medium |
CN113450063A (en) * | 2020-09-07 | 2021-09-28 | 北京新氧科技有限公司 | Task information processing method and device, electronic equipment and storage medium |
WO2022032918A1 (en) * | 2020-08-12 | 2022-02-17 | 紫光云(南京)数字技术有限公司 | Method and apparatus that are reliable and ensure configuration is attainable, and computer-readable storage medium |
CN114780643A (en) * | 2022-06-16 | 2022-07-22 | 恒生电子股份有限公司 | Data synchronization processing method and device, electronic equipment and readable storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521044A (en) * | 2011-12-30 | 2012-06-27 | 北京拓明科技有限公司 | Distributed task scheduling method and system based on messaging middleware |
CN102708171A (en) * | 2012-05-02 | 2012-10-03 | 上海达梦数据库有限公司 | Time-based method and time-based system for triggering execution of database task |
CN103365708A (en) * | 2012-04-06 | 2013-10-23 | 阿里巴巴集团控股有限公司 | Method and device for scheduling tasks |
CN106293919A (en) * | 2016-08-12 | 2017-01-04 | 中国航空工业集团公司西安飞行自动控制研究所 | The built-in tasks dispatching device of a kind of Time Triggered and method |
CN106775964A (en) * | 2016-11-11 | 2017-05-31 | 西北工业大学 | The operating system framework and method for scheduling task of time/event mixing triggering |
CN107273194A (en) * | 2017-05-23 | 2017-10-20 | 北京小度信息科技有限公司 | Task executing method and terminal device |
CN107832135A (en) * | 2017-11-27 | 2018-03-23 | 福建细活信息科技有限公司 | A kind of method for allocating tasks and terminal |
CN108416449A (en) * | 2018-02-05 | 2018-08-17 | 北京奇艺世纪科技有限公司 | A kind of O&M method and apparatus |
US20180293098A1 (en) * | 2017-04-10 | 2018-10-11 | Bank Of America Corporation | Digital Processing System for Event and/or Time Based Triggering Management, and Control of Tasks |
CN108762931A (en) * | 2018-05-31 | 2018-11-06 | 康键信息技术(深圳)有限公司 | Method for scheduling task, server based on distributed scheduling system and storage medium |
-
2018
- 2018-12-14 CN CN201811531484.7A patent/CN109656698A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521044A (en) * | 2011-12-30 | 2012-06-27 | 北京拓明科技有限公司 | Distributed task scheduling method and system based on messaging middleware |
CN103365708A (en) * | 2012-04-06 | 2013-10-23 | 阿里巴巴集团控股有限公司 | Method and device for scheduling tasks |
CN102708171A (en) * | 2012-05-02 | 2012-10-03 | 上海达梦数据库有限公司 | Time-based method and time-based system for triggering execution of database task |
CN106293919A (en) * | 2016-08-12 | 2017-01-04 | 中国航空工业集团公司西安飞行自动控制研究所 | The built-in tasks dispatching device of a kind of Time Triggered and method |
CN106775964A (en) * | 2016-11-11 | 2017-05-31 | 西北工业大学 | The operating system framework and method for scheduling task of time/event mixing triggering |
US20180293098A1 (en) * | 2017-04-10 | 2018-10-11 | Bank Of America Corporation | Digital Processing System for Event and/or Time Based Triggering Management, and Control of Tasks |
CN107273194A (en) * | 2017-05-23 | 2017-10-20 | 北京小度信息科技有限公司 | Task executing method and terminal device |
CN107832135A (en) * | 2017-11-27 | 2018-03-23 | 福建细活信息科技有限公司 | A kind of method for allocating tasks and terminal |
CN108416449A (en) * | 2018-02-05 | 2018-08-17 | 北京奇艺世纪科技有限公司 | A kind of O&M method and apparatus |
CN108762931A (en) * | 2018-05-31 | 2018-11-06 | 康键信息技术(深圳)有限公司 | Method for scheduling task, server based on distributed scheduling system and storage medium |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471774A (en) * | 2019-06-28 | 2019-11-19 | 苏宁云计算有限公司 | A kind of data processing method and device based on unified task schedule |
CN111143044A (en) * | 2019-12-10 | 2020-05-12 | 浙江力石科技股份有限公司 | Task scheduling management system, method, device and storage medium thereof |
CN111143044B (en) * | 2019-12-10 | 2023-08-29 | 浙江力石科技股份有限公司 | Task scheduling management system, method, device and storage medium thereof |
CN111541561A (en) * | 2020-04-09 | 2020-08-14 | 珠海格力电器股份有限公司 | Microservice configuration information management system, microservice configuration information management method, microservice configuration information management server, and storage medium |
CN112134749A (en) * | 2020-06-24 | 2020-12-25 | 展讯半导体(成都)有限公司 | Dynamic network access management method and system |
WO2022032918A1 (en) * | 2020-08-12 | 2022-02-17 | 紫光云(南京)数字技术有限公司 | Method and apparatus that are reliable and ensure configuration is attainable, and computer-readable storage medium |
CN113450063A (en) * | 2020-09-07 | 2021-09-28 | 北京新氧科技有限公司 | Task information processing method and device, electronic equipment and storage medium |
CN112162825A (en) * | 2020-10-12 | 2021-01-01 | 北京首都在线科技股份有限公司 | Equipment configuration method, device, equipment and storage medium |
CN113110867A (en) * | 2021-04-02 | 2021-07-13 | 远光软件股份有限公司 | RPA robot management method, device, server and storage medium |
CN114780643A (en) * | 2022-06-16 | 2022-07-22 | 恒生电子股份有限公司 | Data synchronization processing method and device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109656698A (en) | Task processing method, management platform, actuating station and computer readable storage medium | |
CN109582301A (en) | Method for processing business, device, equipment and the medium of task based access control scheduling system | |
CN110825535B (en) | Job scheduling method and system | |
CN109446071A (en) | Interface test method, interface test device, electronic equipment and storage medium | |
CN107679818A (en) | Software project management method, terminal and computer-readable recording medium | |
CN106155807A (en) | A kind of method and apparatus realizing scheduling of resource | |
CN110362401A (en) | Data run the member host in batch method, apparatus, storage medium and cluster | |
CN113051019A (en) | Flow task execution control method, device and equipment | |
US11119828B2 (en) | Digital processing system for event and/or time based triggering management, and control of tasks | |
CN109977012B (en) | Joint debugging test method, device, equipment and computer readable storage medium of system | |
CN109150653B (en) | Remote hardware-in-loop HIL (hardware in loop) automatic testing method and system | |
US20140023185A1 (en) | Characterizing Time-Bounded Incident Management Systems | |
CN109614164A (en) | Realize plug-in unit configurable method, apparatus, equipment and readable storage medium storing program for executing | |
CN113760634A (en) | Data processing method and device | |
CN111859139A (en) | Application program recommendation method and device, computing equipment and medium | |
CN114301760A (en) | Test method, test device, electronic equipment and storage medium | |
CN110262955A (en) | Application performance monitoring tools based on pinpoint | |
CN116737560B (en) | Intelligent training system based on intelligent guide control | |
JP3766540B2 (en) | Notification transmission method in network including notification service and network for using the same | |
CN112183982A (en) | Workflow creating method and device, computer equipment and storage medium | |
CN109684274A (en) | Archive method, equipment and computer readable storage medium | |
CN109947527A (en) | Workflow task executes method, apparatus, equipment and computer readable storage medium | |
CN112738153B (en) | Gateway selection method, system, device, server and medium in service system | |
CN112395119A (en) | Abnormal data processing method, abnormal data processing device, server and storage medium | |
US11611894B2 (en) | System and method for automatic emergency call validation |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190419 |