CN106325988B - Method for scheduling task and device - Google Patents
Method for scheduling task and device Download PDFInfo
- Publication number
- CN106325988B CN106325988B CN201610633756.9A CN201610633756A CN106325988B CN 106325988 B CN106325988 B CN 106325988B CN 201610633756 A CN201610633756 A CN 201610633756A CN 106325988 B CN106325988 B CN 106325988B
- Authority
- CN
- China
- Prior art keywords
- task
- server
- user terminal
- sent
- list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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
-
- 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/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
Abstract
The embodiment of the present invention provides a kind of method for scheduling task and device, which comprises server obtains the data task generated sent according to the first user terminal, and the task is added to task list;The server receives the msu message that second user terminal is sent, and includes the unique identifying number for identifying task in the msu message;The task status of the corresponding task of the unique identifying number is revised as the state of having audited by the server;The server takes out the task that task status is state of having audited every the first preset time from the task list, read the IP address for the destination server for including in the task, the destination server is sent by the task, so that the destination server goes to execute the task.The method be utilized server resource can also preferably, and provide cross-audit mechanism, guarantee the safety of system, while improve the efficiency of staff.
Description
Technical field
The present invention relates to data processing fields, in particular to a kind of method for scheduling task and device.
Background technique
For the processing task of big data quantity, initial stage uses the mode of Shell script, writes Shell script first, then
Shell script is executed on the server, the processing task for executing big data quantity is gone according to shell script, but this mode can only
Meet the processing task of the common big data quantity in part.And it for the processing task of provisional big data quantity, does not service
The employee of device permission can only be executed by department managers' login service device, and this mode efficiency is slower.
Summary of the invention
In view of this, the embodiment of the present invention is designed to provide a kind of method for scheduling task and device, it is above-mentioned to solve
Problem.
In a first aspect, the embodiment of the present invention provides a kind of method for scheduling task, which comprises server obtains basis
The data task generated that first user terminal is sent, is added to task list for the task, the task includes task
The IP address of content and destination server, the task status of the task are unexamined nuclear state;The server receives second
The msu message that user terminal is sent includes the unique identifying number for identifying task in the msu message;The server
The task status of the corresponding task of the unique identifying number is revised as the state of having audited;The server is when first is default
Between from the task list take out task status be state of having audited task, read the target for including in the task
The task is sent the destination server by the IP address of server, so that the destination server goes to execute described appoint
Business;
Wherein, the server obtains the data task generated sent according to the first user terminal, by the task
It is added to task list, comprising:
The server obtains the data temporary duty generated sent according to the first user terminal or timed task;
When the task that the server obtains is temporary duty, the temporary duty is added to task list;
When the task that the server obtains is timed task, the timed task is added to timed task list;
The server receives the msu message that the second user terminal is sent, and includes for identifying task in the msu message
Unique identifying number;The server is revised as the task status of the corresponding timed task of the unique identifying number to have audited shape
State;It is to have audited determining for state that the server takes out task status every the second preset time from the timed task list
When task be added to task list.
Second aspect, the embodiment of the present invention provide a kind of task scheduling apparatus, and described device includes: first processing module,
The data task generated sent according to the first user terminal is obtained for server, the task is added to task column
Table, the task include the IP address of task definition and destination server, and the task status of the task is unexamined nuclear state;
Receiving module receives the msu message that second user terminal is sent for the server, includes being used in the msu message
The unique identifying number of mark task;Update module, for the server by the task of the corresponding task of the unique identifying number
Status modifier is to have audited state;Sending module, for the server every the first preset time from the task list
The task that task status is state of having audited is taken out, the IP address for the destination server for including in the task is read, it will
The task is sent to the destination server, so that the destination server goes to execute the task;
Wherein, first processing module obtains the data institute sent according to the first user terminal specifically for the server
The temporary duty or timed task of generation;When the task that the server obtains is temporary duty, by the temporary duty
It is added to task list;When the task that the server obtains is timed task, the timed task is added to timing and is appointed
Business list;The server receives the msu message that the second user terminal is sent, and includes being used in the msu message
The unique identifying number of mark task;The task status of the corresponding timed task of the unique identifying number is revised as by the server
State is audited;It is to have audited that the server takes out task status every the second preset time from the timed task list
The timed task of state is added to task list.
Compared with prior art, a kind of method for scheduling task and device provided in an embodiment of the present invention, by task
The IP of destination server is set, enable the task to it is concurrent be performed, and server resource also can be preferably utilized,
Preventing portion divides machine pressure is excessive to cause task execution slow, and provides cross-audit mechanism, and any task is examined by other people
Core passes through, and can be assigned and execute, and can guarantee the safety of system in this way, simultaneously because department manager is no longer needed to log in clothes
Business device goes to execute, and improves the efficiency of staff.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the schematic diagram that a kind of server provided in an embodiment of the present invention is interacted with user terminal.
Fig. 2 is the block diagram of server provided in an embodiment of the present invention.
Fig. 3 is a kind of flow chart for method for scheduling task that first embodiment of the invention provides.
Fig. 4 is a kind of partial process view for method for scheduling task that first embodiment of the invention provides.
Fig. 5 is a kind of flow chart for method for scheduling task that second embodiment of the invention provides.
Fig. 6 is a kind of the functional block diagram of task scheduling apparatus provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. be only used for distinguish description, be not understood to indicate or imply relative importance or when
Between successively.
As shown in Figure 1, being the schematic diagram that server 200 provided in an embodiment of the present invention is interacted with user terminal 100.
The server 200 is communicatively coupled by network 300 with multiple user terminals 100, to carry out data communication or interaction.Institute
Stating server 200 can be network service end, database service end etc..The user terminal 100 can be PC
(personal computer, PC), tablet computer, smart phone, personal digital assistant (personal digital
Assistant, PDA) etc..
In the embodiment of the present invention, server-side is installed in the server 200, client is installed in the user terminal
End, the client client can be third-party application software, and such as browser or application program of mobile phone, user can pass through
The client logs in different account numbers, obtains different services.
As shown in Fig. 2, being the block diagram of the server 200.The server 200 includes task scheduling apparatus
210, memory 220, storage control 230, processor 240.
The memory 220, storage control 230, each element of processor 240 directly or indirectly electrically connect between each other
It connects, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or signal between each other
Line, which is realized, to be electrically connected.The task scheduling apparatus 210 includes at least one can be in the form of software or firmware (firmware)
It is stored in the memory or is solidificated in and is in the operating system (operating system, OS) of the server-side 200 soft
Part functional module.The processor 240 is for executing the executable module stored in memory 220, such as the task schedule
The software function module or computer program that device 210 includes.
Wherein, memory 220 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-
Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory,
EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory,
EEPROM) etc..Wherein, memory 220 is for storing program, and the processor 240 is after receiving and executing instruction, described in execution
Program, method performed by the server-side that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to
In processor, or realized by processor.
Processor 240 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor can be
General processor, including central processing unit (CentralProcessingUnit, abbreviation CPU), network processing unit
(NetworkProcessor, abbreviation NP) etc.;It can also be digital signal processor (DSP), specific integrated circuit (ASIC), show
At programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware
Component.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can
To be that microprocessor or the processor are also possible to any conventional processor etc..
It is appreciated that structure shown in Fig. 2 is only to illustrate, server 200 may also include than shown in Fig. 2 more or more
Few component, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can use hardware, software or its group
It closes and realizes.
Fig. 3 shows a kind of flow chart of method for scheduling task of first embodiment of the invention offer, referring to Fig. 3, this
Embodiment describes the process flow of server-side, which comprises
Step S301, server obtains the data task generated sent according to the first user terminal, by the task
It is added to task list, the task includes the IP address of task definition and destination server, the task status of the task
For unexamined nuclear state.
Wherein, the data that first user terminal is sent can be creating in the first user terminal for task,
It can be the first user terminal and only send some parameters for generating required by task in server, not office of the embodiment of the present invention
It is limited to any mode.
Wherein, server obtains the data task generated sent according to the first user terminal, and the task is added
To task list embodiment can there are many, one of embodiment is described below, but it is understood that, not
It is confined to this embodiment.
Referring to Fig. 4, step S301 may include:
Step S311, the server obtain the data temporary duty generated sent according to the first user terminal or
Timed task.
Timed task refers to that determination will be in sometime the starting to execute of the task.Temporary duty refers at paroxysmal
Business, it is to be understood that temporary duty is compared to timed task priority with higher.
It wherein, can also include code branch, the side of execution in addition to the IP including destination server in the temporary duty of generation
Method, the parameters such as data time of parameter and input data needed for execution method.According to these parameters, destination server can
To call corresponding input data from database and execute method, the processing of big data quantity is carried out.
It can also include executing the time in the timed task of generation other than it may include the parameter in temporary duty.
The temporary duty is added to task when the task that the server obtains is temporary duty by step S312
List.
The timed task is added to timing when the task that the server obtains is timed task by step S313
Task list;The server receives the msu message that the second user terminal is sent, and includes using in the msu message
In the unique identifying number of mark task;The server modifies the task status of the corresponding timed task of the unique identifying number
For the state of having audited;It is to have examined that the server takes out task status every the second preset time from the timed task list
The timed task of nuclear state is added to task list.
It is understood that task column can be added to immediately due to temporary duty priority with higher
In table, and after timed task needs are reviewed, then it is added in task list.Wherein, second preset time can be set
It is one second, the timed task that task status is state of having audited is taken out from the timed task list within server each one second and added
Add task list.
Referring to Fig. 3, continuing to execute step S302 after executing the step S301.
Step S302, the server receive the msu message that second user terminal is sent, include in the msu message
For identifying the unique identifying number of task.
Before step S302, the method can also include:
The server receives the logging request that second user terminal is sent, and the logging request includes account;Institute
Server is stated according to the account, finds the corresponding permission of the account, the corresponding task of the permission is arranged
Table is sent to the second user terminal, so that the second user terminal carries out task audit according to the task list.
For the safety for guaranteeing system, the task of generation will not be performed immediately, but other staff is needed to audit
It can just execute afterwards, it is such both staff to be allowed mutually to understand the thing done each other, it also can guarantee the safety of system,
It can be prevented by audit because some maloperations cause the task of mistake to be performed.
Also, different permissions can be set in different accounts, and the people of different rights can audit different task lists, when
So, it can also be different the identical permission of account setup, so that the task list between staff is transparent mutually, to facilitate work
Supervision.
Step S303, the server are revised as the task status of the corresponding task of the unique identifying number to have audited shape
State.
Step S304, it is to have examined that the server takes out task status every the first preset time from the task list
The task of nuclear state reads the IP address for the destination server for including in the task, sends the task to described
Destination server, so that the destination server goes to execute the task.
Wherein, first preset time is greater than second preset time, so that the server every time can be from institute
It states and takes out task in task list.
Method for scheduling task provided in an embodiment of the present invention, by the way that the IP of destination server is arranged in task, so that appointing
Business concurrent can be performed, and server resource also can be preferably utilized, and preventing portion divides machine pressure is excessive to cause
Task execution is slow, and provides cross-audit mechanism, and any task is audited by other people to be passed through, and can be assigned and execute,
It can guarantee the safety of system in this way, simultaneously because department manager's login service device is no longer needed to go to execute, improve work people
The efficiency of member.
Fig. 5 shows a kind of flow chart of method for scheduling task of second embodiment of the invention offer, referring to Fig. 5, this
Embodiment describes the process flow of server-side, which comprises
Step S401, server obtains the data task generated sent according to the first user terminal, by the task
It is added to task list, the task includes the IP address of task definition and destination server, the task status of the task
For unexamined nuclear state.
Step S402, the server receive the msu message that second user terminal is sent, include in the msu message
For identifying the unique identifying number of task.
Step S403, the server are revised as the task status of the corresponding task of the unique identifying number to have audited shape
State.
Step S404, it is to have examined that the server takes out task status every the first preset time from the task list
The task of nuclear state reads the IP address for the destination server for including in the task, sends the task to described
Destination server, so that the destination server goes to execute the task.
It is understood that the reality of the step S301 to step S304 in step S401 to step S404 and a upper embodiment
It is consistent to apply mode, therefore just repeat no more.
Step S405, the server, which obtains, subscribes to request, and described subscribe to requests to include unique mark for identifying task
Knowledge number;The information of the corresponding task of the unique identifying number is requested corresponding user whole by the server back to the subscription
End, the information include the exception information and/or output information and/or debriefing of the task.
For having been added to the task in task list, the server can be according to the unique identification for identifying task
Number come the information for the task of searching, if subscription request includes subscribing to people's information, the server can also be subscribed to according to searching
The mode of people is come the information for the task of searching.
The information of task can be requested corresponding user whole by the server in the form of mail back to the subscription
End, naturally it is also possible to return in other forms.
Preferably, it when server obtains the data sent according to the first user terminal task generated, can obtain simultaneously
Subscription is taken to request, that is to say, that the first user terminal can also initiate to subscribe to request when sending data simultaneously, with convenient
User understands and monitors to the task of oneself.
Step S406, the server obtain task daily record and check request, and the task daily record checks to include using in request
The account at family;The server finds the corresponding permission of the account according to the account, by the power
The task daily record information for limiting task in corresponding task list is sent to the task daily record and checks the corresponding user terminal of request.
Higher-rights the manager of department can be arranged, the manager of department can look by sending log to server
It sees request, checks the task daily record information of task in the task list of each personnel in department, the more conducively management of department.
Step S407, the server obtain task execution situation and check request, and the task execution situation checks request
In include statistical time section;The server is according in the statistical time section, the execution state of task in the task list,
Statistical result is obtained, the execution state includes normal condition and abnormality;The server converts the statistical result
For the statistical result of diagrammatic form;The statistical result of the diagrammatic form is sent the task execution situation by the server
Check the corresponding user terminal of request.
Statistical result is converted to diagrammatic form and returned by server, can when so that user being checked by user terminal
It is more convenient and be understood more intuitively the corresponding period execution status of task the case where.
Method for scheduling task provided in an embodiment of the present invention, in addition to can solve a problem of upper embodiment can solve, into
One step, server provides subscription service, task execution situation checks that service is checked in service and task daily record, is conducive to the later period
Mistake and optimization.
Referring to Fig. 6, being the functional module signal of task scheduling apparatus shown in Fig. 2 210 provided in an embodiment of the present invention
Figure.The task scheduling apparatus 210 runs on the server 200.The task scheduling apparatus 210 includes first processing module
211, receiving module 212, update module 213, sending module 214.
It is generated to obtain the data sent according to the first user terminal for server for the first processing module 211
The task is added to task list by task, and the task includes the IP address of task definition and destination server, described
The task status of task is unexamined nuclear state.
Preferably, first processing module 211 obtain the number sent according to the first user terminal specifically for the server
According to temporary duty generated or timed task;It, will be described interim when the task that the server obtains is temporary duty
Task is added to task list;When the task that the server obtains is timed task, it is fixed that the timed task is added to
When task list;The server receives the msu message that the second user terminal is sent, and includes in the msu message
For identifying the unique identifying number of task;The server repairs the task status of the corresponding timed task of the unique identifying number
It is changed to the state of having audited;It is that the server takes out task status every the second preset time from the timed task list
The timed task of audit state is added to task list.
The receiving module 212 receives the msu message that second user terminal is sent, the audit for the server
It include the unique identifying number for identifying task in information;
The update module 213 repairs the task status of the corresponding task of the unique identifying number for the server
It is changed to the state of having audited;
The sending module 214 takes out from the task list every the first preset time for the server and appoints
Business state is the task for state of having audited, and reads the IP address for the destination server for including in the task, described will be appointed
Business is sent to the destination server, so that the destination server goes to execute the task.
Preferably, described device further includes Second processing module 215, the Second processing module 215, is used for the service
Device receives the logging request that second user terminal is sent, and the logging request includes account;The server is according to
Account finds the corresponding permission of the account, and the corresponding task list of the permission is sent to described second
User terminal, so that the second user terminal carries out task audit according to the task list.
Described device can also include third processing module 216, and the third processing module 216 is used for the server
It obtains and subscribes to request, described subscribe to requests to include the unique identifying number for identifying task;The server is by unique mark
The information for knowing number corresponding task requests corresponding user terminal back to the subscription, and the information includes the different of the task
Normal information and/or output information and/or debriefing.
Above each module can be by software code realization, at this point, above-mentioned each module can be stored in intermediate server 200
Memory 220 in.Above each module can equally be realized by hardware such as IC chip.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
The technical effect and preceding method of task scheduling apparatus provided by the embodiment of the present invention, realization principle and generation
Embodiment is identical, and to briefly describe, Installation practice part does not refer to place, can refer in corresponding in preceding method embodiment
Hold.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server-side or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access
The various media that can store program code such as memory (RAM, Random Access Memory), magnetic or disk.It needs
It is noted that herein, relational terms such as first and second and the like are used merely to an entity or operation
It is distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation, there are any this
Actual relationship or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, article or equipment for including a series of elements not only includes those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, article or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method, article or equipment of element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. a kind of method for scheduling task, which is characterized in that the described method includes:
Server obtains the data task generated sent according to the first user terminal, and the task is added to task column
Table, the task include the IP address of task definition and destination server, and the task status of the task is unexamined nuclear state;
The server receives the msu message that second user terminal is sent, and includes for identifying task in the msu message
Unique identifying number;
The task status of the corresponding task of the unique identifying number is revised as the state of having audited by the server;
The server takes out the task that task status is state of having audited every the first preset time from the task list,
The task is sent the destination server by the IP address for reading the destination server for including in the task, with
The destination server is set to go to execute the task;
Wherein, the server obtains the data task generated sent according to the first user terminal, and the task is added
To task list, comprising:
The server obtains the data temporary duty generated sent according to the first user terminal or timed task;
When the task that the server obtains is temporary duty, the temporary duty is added to task list;
When the task that the server obtains is timed task, the timed task is added to timed task list;
The server receives the msu message that the second user terminal is sent, and includes for identifying in the msu message
The unique identifying number of task;The task status of the corresponding timed task of the unique identifying number is revised as having examined by the server
Nuclear state;It is to have audited state that the server takes out task status every the second preset time from the timed task list
Timed task be added to task list.
2. the method according to claim 1, wherein receiving examining for second user terminal transmission in the server
Nuclear information includes for before identifying the unique identifying number of task in the msu message, which comprises
The server receives the logging request that second user terminal is sent, and the logging request includes account;
The server finds the corresponding permission of the account according to the account, and the permission is corresponding
Task list is sent to the second user terminal, examines so that the second user terminal carries out task according to the task list
Core.
3. the method according to claim 1, wherein the method also includes:
The server, which obtains, subscribes to request, and described subscribe to requests to include the unique identifying number for identifying task;
The information of the corresponding task of the unique identifying number is requested corresponding user whole by the server back to the subscription
End, the information include the exception information and/or output information and/or debriefing of the task.
4. the method according to claim 1, wherein the method also includes:
The server obtains task daily record and checks request, and the task daily record checks the account in request including user;
The server finds the corresponding permission of the account according to the account, and the permission is corresponding
The task daily record information of task is sent to the task daily record and checks the corresponding user terminal of request in task list.
5. the method according to claim 1, wherein the method also includes:
The server obtains task execution situation and checks request, and the task execution situation checks to include statistical time in request
Section;
For the server according in the statistical time section, the execution state of task in the task list obtains statistical result,
The execution state includes normal condition and abnormality;
The statistical result is converted to the statistical result of diagrammatic form by the server;
The server sends the task execution situation for the statistical result of the diagrammatic form and checks the corresponding use of request
Family terminal.
6. a kind of task scheduling apparatus, which is characterized in that described device includes:
First processing module obtains the data task generated sent according to the first user terminal for server, will be described
Task is added to task list, and the task includes the IP address of task definition and destination server, the task of the task
State is unexamined nuclear state;
Receiving module receives the msu message that second user terminal is sent for the server, includes in the msu message
For identifying the unique identifying number of task;
Update module is revised as the task status of the corresponding task of the unique identifying number to have audited shape for the server
State;
Sending module, it is to have examined that task status is taken out from the task list every the first preset time for the server
The task of nuclear state reads the IP address for the destination server for including in the task, sends the task to described
Destination server, so that the destination server goes to execute the task;
Wherein, first processing module is obtained specifically for the server and is generated according to the data that the first user terminal is sent
Temporary duty or timed task;When the task that the server obtains is temporary duty, the temporary duty is added
Into task list;When the task that the server obtains is timed task, the timed task is added to timed task column
Table;The server receives the msu message that the second user terminal is sent, and includes for identifying in the msu message
The unique identifying number of task;The task status of the corresponding timed task of the unique identifying number is revised as having examined by the server
Nuclear state;It is to have audited state that the server takes out task status every the second preset time from the timed task list
Timed task be added to task list.
7. device according to claim 6, which is characterized in that described device further includes Second processing module,
The Second processing module receives the logging request that second user terminal is sent for the server, and the login is asked
It asks including account;The server finds the corresponding permission of the account according to the account, will be described
The corresponding task list of permission is sent to the second user terminal, so that the second user terminal is according to the task list
Carry out task audit.
8. device according to claim 6, which is characterized in that described device further includes third processing module,
The third processing module obtains for the server and subscribes to request, and the subscription request includes for identifying task
Unique identifying number;The server corresponds to the information of the corresponding task of the unique identifying number back to subscription request
User terminal, the information includes the exception information and/or output information and/or debriefing of the task.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610633756.9A CN106325988B (en) | 2016-08-03 | 2016-08-03 | Method for scheduling task and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610633756.9A CN106325988B (en) | 2016-08-03 | 2016-08-03 | Method for scheduling task and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106325988A CN106325988A (en) | 2017-01-11 |
CN106325988B true CN106325988B (en) | 2019-06-18 |
Family
ID=57739486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610633756.9A Active CN106325988B (en) | 2016-08-03 | 2016-08-03 | Method for scheduling task and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106325988B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108874513A (en) * | 2017-05-11 | 2018-11-23 | 北京京东尚科信息技术有限公司 | Handle method, system, electronic equipment and the computer-readable medium of timed task |
CN108965362B (en) * | 2017-05-19 | 2023-03-24 | 腾讯科技(深圳)有限公司 | Data processing method, server and storage medium |
CN107203871B (en) * | 2017-05-25 | 2020-12-08 | 上海海洋大学 | Marine equipment verification system based on Activiti and task scheduling optimization |
CN107944985A (en) * | 2017-12-27 | 2018-04-20 | 掌合天下(北京)信息技术有限公司 | Order retransmission method, device, server and readable storage medium storing program for executing |
CN111651429B (en) * | 2020-05-26 | 2023-10-24 | 中国平安财产保险股份有限公司 | Big data scheduling parameter management method, device and distributed platform |
CN111931955A (en) * | 2020-07-22 | 2020-11-13 | 北京字节跳动网络技术有限公司 | Information processing method and device and electronic equipment |
CN111932266B (en) * | 2020-07-24 | 2023-11-17 | 深圳市富途网络科技有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
CN112288383A (en) * | 2020-09-15 | 2021-01-29 | 郑州富联智能工坊有限公司 | Information processing method and device |
CN113537949A (en) * | 2021-08-16 | 2021-10-22 | 中国南方电网有限责任公司 | Operation control method and device and computer equipment |
CN115946126B (en) * | 2023-02-22 | 2023-06-13 | 深圳市欧拉智造科技有限公司 | Task execution control method and robot |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101408852B (en) * | 2008-11-26 | 2011-09-28 | 阿里巴巴集团控股有限公司 | Method, apparatus and system for scheduling task |
CN103544101A (en) * | 2012-07-16 | 2014-01-29 | 深圳市世纪光速信息技术有限公司 | Wireless platform development automatic test system and method |
CN103577402A (en) * | 2012-07-18 | 2014-02-12 | 上海斐讯数据通信技术有限公司 | Task adding, modifying and management method and task management system |
CN105279020A (en) * | 2014-07-03 | 2016-01-27 | 北京联嘉众赢网络技术有限公司 | Task scheduling method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8438572B2 (en) * | 2006-03-15 | 2013-05-07 | Freescale Semiconductor, Inc. | Task scheduling method and apparatus |
-
2016
- 2016-08-03 CN CN201610633756.9A patent/CN106325988B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101408852B (en) * | 2008-11-26 | 2011-09-28 | 阿里巴巴集团控股有限公司 | Method, apparatus and system for scheduling task |
CN103544101A (en) * | 2012-07-16 | 2014-01-29 | 深圳市世纪光速信息技术有限公司 | Wireless platform development automatic test system and method |
CN103577402A (en) * | 2012-07-18 | 2014-02-12 | 上海斐讯数据通信技术有限公司 | Task adding, modifying and management method and task management system |
CN105279020A (en) * | 2014-07-03 | 2016-01-27 | 北京联嘉众赢网络技术有限公司 | Task scheduling method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106325988A (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106325988B (en) | Method for scheduling task and device | |
CN108153670B (en) | Interface testing method and device and electronic equipment | |
Suryotrisongko et al. | Design and development of backend application for public complaint systems using microservice spring boot | |
CN107798038B (en) | Data response method and data response equipment | |
US10289409B2 (en) | Systems, methods, and apparatus for migrating code to a target environment | |
CN109344170B (en) | Stream data processing method, system, electronic device and readable storage medium | |
CN108628748B (en) | Automatic test management method and automatic test management system | |
CN110765484B (en) | Credit data processing method and electronic equipment | |
CN107733972A (en) | A kind of short linking analytic method, device and equipment | |
CN106453536A (en) | Network request processing method and system and server | |
CN111460129B (en) | Method, device, electronic equipment and storage medium for generating identification | |
US10719555B2 (en) | System and method in a database system for sharing a data item with an entity in another tenant domain | |
CN112311893B (en) | Cross-region, business and system data service middleware and data verification method | |
CN110232068B (en) | Data sharing method and device | |
CN103139006A (en) | Web service based automated testing device and method | |
CN105915529A (en) | Message generation method and device | |
CN111784318A (en) | Data processing method and device, electronic equipment and storage medium | |
Bose et al. | ‘under-reported’security defects in kubernetes manifests | |
US11734057B2 (en) | Method and apparatus for processing a service of an abnormal server | |
CN112860954A (en) | Real-time computing method and real-time computing system | |
CN109360618A (en) | A kind of management method and system of electronization test report | |
CN116151631A (en) | Service decision processing system, service decision processing method and device | |
CN109472012A (en) | A kind of management method and device of electronization test report | |
CN110493326B (en) | Zookeeper-based cluster configuration file management system and method | |
CN108776618A (en) | Distributed workflow management method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |