CN107844374A - The task executing method of terminal device, device, electronic equipment, storage medium - Google Patents

The task executing method of terminal device, device, electronic equipment, storage medium Download PDF

Info

Publication number
CN107844374A
CN107844374A CN201711064611.2A CN201711064611A CN107844374A CN 107844374 A CN107844374 A CN 107844374A CN 201711064611 A CN201711064611 A CN 201711064611A CN 107844374 A CN107844374 A CN 107844374A
Authority
CN
China
Prior art keywords
terminal device
subtask
task
group
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711064611.2A
Other languages
Chinese (zh)
Inventor
赵银宏
雷兵
凌云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Ctrip Business Co Ltd
Original Assignee
Shanghai Ctrip Business Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Ctrip Business Co Ltd filed Critical Shanghai Ctrip Business Co Ltd
Priority to CN201711064611.2A priority Critical patent/CN107844374A/en
Publication of CN107844374A publication Critical patent/CN107844374A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The present invention provides a kind of task executing method of terminal device, device, electronic equipment, storage medium, and method includes:Receive and ask in the task instruction that task is performed in multiple terminal devices;Multiple terminal devices are divided into multigroup;Divide a task into multiple subtasks;By the quantity of terminal device in terminal device group by as little as more subtaskings successively, before often performing a subtask, whether the rate that judges to run succeeded in previous subtask is less than first threshold, if so, then triggering alerts;If it is not, the execution state for then making current subtask is execution;After the completion of all subtasks, judge whether the rate of running succeeded that is averaged of all subtasks is less than Second Threshold, if then continuing executing with step;If it is not, then reported;Each terminal device that failure is performed according to subtask forms new one or more terminal device groups.Method and device provided by the invention realizes the processing of terminal device batch tasks.

Description

The task executing method of terminal device, device, electronic equipment, storage medium
Technical field
The present invention relates to Computer Applied Technology field, more particularly to a kind of task executing method of terminal device, device, Electronic equipment, storage medium.
Background technology
Terminal device refers to the personal computer terminal for being used for individual office and business operation inside enterprises and institutions.With Development in science and technology, terminal device automatic management and dispose it is more and more common, but because user shutdown, unit exception the problems such as Cause that the implementation coverage of automation is very low, and the renewal of user's peak period can directly affect the use feeling of user, while greatly The task of batch also results in the increase of risk, causes automation task to become semi-automatic semi-artificial mode and operates.
The content of the invention
The defects of present invention is in order to overcome above-mentioned prior art to exist, there is provided a kind of task executing method of terminal device, Device, electronic equipment, storage medium, to realize that the batch tasks of terminal device are handled.
According to an aspect of the present invention, there is provided a kind of task executing method of terminal device, including:S110:Receive and appoint Business instruction, task instruction are asked in performing task in multiple terminal devices;S120:The multiple terminal device is divided into Multigroup, each terminal device group includes more than one terminal device;S130:The task is divided according to multiple terminal devices group Into multiple subtasks, the corresponding terminal device group in each subtask;S140:By the quantity of the terminal device in terminal device group The subtask is performed successively by as little as more, wherein, before often performing a subtask, judge the rate that run succeeded in previous subtask Whether first threshold is less than, if so, then triggering warning, and make the state of current subtask to wait;If it is not, then appoint current son The execution state of business is execution;S150:After the completion of all subtasks, judge whether the rate of running succeeded that is averaged of all subtasks is small In Second Threshold, if then performing step S160;If it is not, then perform step S170;S160:The each of failure is performed according to subtask Terminal device forms new one or more terminal device groups, and performs step according to new one or more terminal device groups S130;And S170:Formed according to the implementation status of each subtask and perform report.
Alternatively, the multiple terminal device group is ranked into first terminal equipment group more by the quantity of terminal device by as little as To N terminal device groups, wherein, the quantity of terminal device is not more than the 3rd threshold value in first terminal equipment group, and N be more than etc. In 3 integer.
Alternatively, the 3rd threshold value is the 5% to 10% of the quantity of all terminal devices.
Alternatively, performing each subtask when the task is that software application upgrades, in the step S140 includes:Step S141:The access state of multiple access interface is detected, if detecting, any one access interface has current subtask pair The terminal device access answered, then perform step S142, otherwise continue to detect;Step S142:According to terminal device access Sequencing distributes the worker thread of software upgrading for each terminal device of access interface, and obtains each terminal device and wait to rise The corresponding upgrade information of level software application;Step S143:The worker thread is according to the ROMPaq of setting to each acquisition Terminal device to upgrade information performs updating operation.
Alternatively, also include before the step S141:Step S141A:In advance to be upgraded soft in the worker thread The parameters of part application carry out batch configuration.
Alternatively, also include before the step S141:Step S141B:Obtain and software application is installed in terminal device More recent application upgrade information, AKU and parameter bag are therefrom parsed, and preserved.
Alternatively, the multiple terminal device is located in different LANs, and the step S120 will preferentially be located at same Multiple terminal devices in LAN are divided into one group.
Alternatively, the step S160 includes:The reason for subtask is failed forms new for each terminal device of shutdown One terminal device group, after being spaced the scheduled time, perform step S130.
Alternatively, the first threshold and the Second Threshold are 75% to 85%.
Alternatively, the task includes:Send in notice, password modification, configuration modification, software installation and custom task It is one or more.
According to another aspect of the invention, a kind of task execution device of terminal device is also provided, including:Receiving module, For receiving task instruction, task instruction is asked in performing task in multiple terminal devices;Grouping module, for by described in Multiple terminal devices are divided into multigroup, and each terminal device group includes more than one terminal device;Subtask generation module, is used for The task is divided into by multiple subtasks, the corresponding terminal device group in each subtask according to multiple terminal devices group;Perform Module, the subtask is performed successively by as little as more for the quantity by the terminal device in terminal device group, wherein, often hold Before the subtask of row one, whether the rate that judges to run succeeded in previous subtask is less than first threshold, if so, then triggering warning, and The state for making current subtask is wait;If it is not, the execution state for then making current subtask is execution;Judge module, for institute After the completion of having subtask, judge whether the rate of running succeeded that is averaged of all subtasks is less than Second Threshold;Update module is grouped, is used In when judgment means are judged as YES, new one or more terminals are formed according to each terminal device of subtask execution failure and set Standby group, and input subtask generation module according to new one or more terminal device groups;And reporting modules, sentence for working as When disconnected device is judged as NO, is formed according to the implementation status of each subtask and perform report.
According to another aspect of the invention, a kind of electronic equipment is also provided, the electronic equipment includes:Processor;Storage Medium, is stored thereon with computer program, and the computer program performs step as described above when being run by the processor.
According to another aspect of the invention, a kind of storage medium is also provided, computer journey is stored with the storage medium Sequence, the computer program perform step as described above when being run by processor.
Compared with prior art, the present invention realizes that the batch of task performs by terminal device packet, according to terminal device There is success rate monitoring and corresponding alarm measure after task is divided into multiple subtasks by packet, between adjacent task, meanwhile, Task is continued executing with to the terminal device of failure after the completion of multiple subtasks execution, to increase task completeness.
Brief description of the drawings
Its example embodiment is described in detail by referring to accompanying drawing, above and other feature and advantage of the invention will become It is more obvious.
Fig. 1 shows the flow chart of the task executing method of terminal device according to embodiments of the present invention.
Fig. 2 shows the stream that terminal device task according to embodiments of the present invention performs for the subtask of software application renewal Cheng Tu.
Fig. 3 shows the schematic diagram of the task execution device of terminal device according to embodiments of the present invention.
Fig. 4 shows the mould that terminal device task according to embodiments of the present invention performs for the subtask of software application renewal Block figure.
Fig. 5 schematically shows a kind of computer-readable recording medium schematic diagram in disclosure exemplary embodiment.
Fig. 6 schematically shows a kind of electronic equipment schematic diagram in disclosure exemplary embodiment.
Embodiment
Example embodiment is described more fully with referring now to accompanying drawing.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, these embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in one or more embodiments in any suitable manner.
In addition, accompanying drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical accompanying drawing mark in figure Note represents same or similar part, thus will omit repetition thereof.Some block diagrams shown in accompanying drawing are work( Can entity, not necessarily must be corresponding with physically or logically independent entity.These work(can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
In order to solve the defects of prior art, the batch tasks processing of terminal device is realized, the present invention provides a kind of terminal The task executing method of equipment, device, electronic equipment, storage medium.
First, with reference to figure 1, Fig. 1 shows the flow of the task executing method of terminal device according to embodiments of the present invention Figure.Fig. 1 shows 7 steps altogether:
Step S110:Reception task indicated, task instruction is asked in performing task in multiple terminal devices.
Specifically, heretofore described task can include sending notice, password modification, configuration modification, software installation It is and one or more in custom task.
Step S120:The multiple terminal device is divided into multigroup, each terminal device group includes more than one terminal Equipment.
Specifically, the multiple terminal device group is ranked into first terminal equipment more by the quantity of terminal device by as little as Group to N terminal device groups, wherein, the quantity of terminal device is not more than the 3rd threshold value in first terminal equipment group, and N be more than Integer equal to 3.3rd threshold value can be the 5% to 10% of the quantity of all terminal devices.
For example, totally 5000 terminal devices, first terminal equipment group include 100 terminal devices, second terminal equipment group Including 1000 terminal devices;Third terminal equipment group includes 3900 terminal devices.
Step S120 terminal device packet can be grouped according to address network segment, packet or other packets at random.In some tools In body embodiment, the multiple terminal device is located in different LANs, and the step S120 will preferentially be located at same local Multiple terminal devices in net are divided into one group, to increase tasks carrying efficiency.
Step S130:The task is divided into by multiple subtasks according to multiple terminal devices group, each subtask is corresponding One terminal device group.
Specifically, the execution content of multiple subtasks is consistent, and different subtasks is held in different terminal device groups OK.For example, the first subtask is to perform to send notice in first terminal equipment group, the second subtask is in second terminal equipment Performed in group and send notice, the rest may be inferred.
Step S140:The subtask is performed successively by as little as more by the quantity of the terminal device in terminal device group. Wherein, before often performing a subtask, whether the rate that judges to run succeeded in previous subtask is less than first threshold.If so, then touch Hair warning, and make the state of current subtask to wait.If it is not, the execution state for then making current subtask is execution.
In various embodiments of the present invention, the first threshold can be 75% to 85%.
Specifically, to step S140 before each subtask is performed also to each subtask configuration cycle, perform time point (non-user uses peak time), number of executions etc., with postponing, it can carry out automatically checking and performing according to configuration.
In a specific embodiment, task is updated for software application, then the stream of each subtask is performed in step S140 Journey can be found in shown in Fig. 2, including:
Step S141, to multiple access interface, (optional multiple terminal devices are linked into by access interface as shown in Figure 3 In task execution device) access state detected, if detecting, any one access interface has corresponding to current subtask Terminal device accesses, then performs step S142, otherwise continue to detect.
Specifically, before step S141 can also include in advance in the worker thread software application to be upgraded it is each Item parameter carries out batch configuration.
Support parametric userization simultaneously under the batch operation mode of this method, user designed, designed can need according to demand The existing parameter configuration rule of export, the configuration parameter imported, or modification, then by batch operation, disposably handle more Terminal device so that user enjoy batched operation it is convenient when enhance flexibility and targeting again, certain user also may be used To use the predefined parameter of initialization.
Further, in the functions such as parameter modification, the input for providing different parameters diversified forms is supported, Ke Yizhi Input is connect, preset value also may be selected, and logarithm value item provides the decimal system and hexadecimal input is supported.Task provided by the invention Execution method can be inputted to user and checked, illegal value is inputted to prevent user.Therefore, user can with arbitrary input, It is every can input, necessarily legitimate value.
Step S142:According to the sequencing of terminal device access software liter is distributed for each terminal device of access interface The worker thread of level, and obtain the corresponding upgrade information of each terminal device software application to be upgraded.
It is linked into when there is terminal device:During access interface, then the sequencing accessed according to terminal device is each terminal Equipment distributes the worker thread of software upgrading, and after the software application to be upgraded described in each terminal is identified, obtains automatically Take required upgrade information.
Specifically, the application program updating information that step S142 can be got from internet or other-end equipment is entered Row parsing and preservation.
In this step, due to need obtain access interface terminal device in software application to be upgraded upgrade information, Therefore also include in this step:Obtain the configuration information of software application to be upgraded, and the liter according to the configuration information from preservation Level wraps the upgrade information corresponding with the software application to be upgraded is obtained in parameter bag.
After terminal device is by access interface, to terminal device, it carries out automatic identification, and obtains the terminal device In software application to be upgraded configuration information, it is compared with the fileinfo (including multiple upgrade informations) preserved, The upgrade information to match with the software application to be upgraded is therefrom found, then sending out progress terminal using the upgrade information sets Standby software upgrading.
Step S143, described worker thread is according to the ROMPaq of setting to each terminal device for getting upgrade information Perform updating operation.
After the worker thread gets upgrade information, terminal is set according to software application ROMPaq set in advance It is standby to perform updating operation.
In order to which user can have detailed understanding to the progress of updating terminal device in real time, the step S143 can also be right The updating operation progress that the worker thread performs carries out real-time display.
In order to get the upgrade information required for terminal equipment software upgrade faster, before above-mentioned steps S141 It can also include obtaining the more recent application upgrade information for installing software application in terminal device, therefrom parse AKU and parameter Bag, and preserve.
Step S150:After the completion of all subtasks, judge whether the rate of running succeeded that is averaged of all subtasks is less than second Threshold value, if then performing step S160;If it is not, then perform step S170.
Specifically, the Second Threshold can be 75% to 85%.
Step S160:Each terminal device that failure is performed according to subtask forms new one or more terminal device groups, And perform step S130 according to new one or more terminal device groups.
Specifically, the reason for step S160 can include failing subtask forms new for each terminal device of shutdown One terminal device group, after being spaced the scheduled time, perform step S130.It is appreciated that the son for performing failure due to shutdown Task, without being directly entered next step, and the execution of task by way of cycle taking turn, can be carried out.
Step S170:Formed according to the implementation status of each subtask and perform report.
Specifically, the execution failure cause of each subtask can be organized into and performs report.Each subtask performs failure Reason such as can be open state be performed do not succeed, off-mode can not perform cause not successfully.For opening Machine fails after performing can include the failure causes such as network problem, operating system, executive problem.In some change case, user Self-defined it can also perform report.
Referring to Fig. 3, Fig. 3 shows the signal of the task execution device of terminal device according to embodiments of the present invention Figure.
The task execution device of terminal device include receiving module 410, grouping module 420, subtask generation module 430, Execution module 440, judge module 450, packet update module 460 and reporting modules 470.
Receiving module 410 is used to receiving task instruction, and task instruction is asked in performing task in multiple terminal devices. Grouping module 420 is multigroup for the multiple terminal device to be divided into, and each terminal device group is set including more than one terminal It is standby.Subtask generation module 430 is used to the task is divided into multiple subtasks according to multiple terminal devices group, appoints per height The corresponding terminal device group of business.Execution module 440 be used for quantity by the terminal device in terminal device group by it is as little as more according to It is secondary to perform the subtask, wherein, before often performing a subtask, whether the rate that judges to run succeeded in previous subtask is less than the One threshold value, if so, then triggering warning, and make the state of current subtask to wait;If it is not, then make the execution shape of current subtask State is execution;Judge module 450, after the completion of all subtasks, judge all subtasks be averaged the rate of running succeeded whether Less than Second Threshold.It is grouped update module 460 to be used for when judgment means are judged as YES, each end of failure is performed according to subtask End equipment forms new one or more terminal device groups, and inputs subtask according to new one or more terminal device groups Generating means.Reporting modules 470 are used for when judgment means are judged as NO, and are formed according to the implementation status of each subtask and perform report Accuse.
Further, when task is that software application updates, execution module 440 can be as shown in Figure 4.Execution module includes Thread management module 210 (i.e. the set of upgrade information acquisition module and updating operation execution module), port status detection module 220 and document management module 230.
Port status detection module 220 is responsible for whether monitoring currently has terminal device group 250 corresponding to current subtask Terminal device 251 updates and (is switched in or out), if so, noting that thread management module 210.
Document management module 230 is responsible for and resolution file (including software kit and parameter bag), thread management module 210 The content for needing to update is obtained from document management module 230.
Thread management module 210 is that each terminal device 251 establishes a thread, and thread performs more new content (from file Management module 230 obtains) to corresponding terminal device 251, and the function that user interface can be called to provide shows renewal progress etc. Information.
Specifically, when port status detection module 220 detects that the access interface of task execution device has terminal device 251 During access, then access signal is fed back into thread management module 210, thread management module 210 is that each terminal device 251 is established The worker thread of one software upgrading, and the upgrading required for the worker thread is obtained from document management module 230 simultaneously Information.After worker thread acquires required upgrade information, then corresponding updating operation is performed.
It is appreciated that the structure of the task execution module shown in Fig. 4 can also be used for the execution of other types task.Fig. 3 and Fig. 4 is only to schematically show modules, it will be understood that the software module or the hardware of reality that these modules can be virtual Module, merging, fractionation and its increase of complementary modul block of these modules are all within protection scope of the present invention.
In an exemplary embodiment of the disclosure, a kind of computer-readable recording medium is additionally provided, is stored thereon with meter Calculation machine program, it can realize that electronic prescription described in any one above-mentioned embodiment circulates when the program is by such as computing device The step of processing method.In some possible embodiments, various aspects of the invention are also implemented as a kind of program production The form of product, it includes program code, and when described program product is run on the terminal device, described program code is used to make institute State terminal device perform described in this specification above-mentioned electronic prescription circulation processing method part according to the various examples of the present invention The step of property embodiment.
With reference to shown in figure 5, the program product for being used to realize the above method according to the embodiment of the present invention is described 800, it can use portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as run on PC.However, the program product not limited to this of the present invention, in this document, readable storage medium storing program for executing can be with Be it is any include or the tangible medium of storage program, the program can be commanded execution system, device either device use or It is in connection.
Described program product can use any combination of one or more computer-readable recording mediums.Computer-readable recording medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any combination above.The more specifically example of readable storage medium storing program for executing is (non exhaustive List) include:It is electrical connection, portable disc, hard disk, random access memory (RAM) with one or more wires, read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The computer-readable recording medium can include believing in a base band or as the data that a carrier wave part is propagated Number, wherein carrying readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetism Signal, optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any beyond readable storage medium storing program for executing Computer-readable recording medium, the computer-readable recording medium can send, propagate either transmit for being used by instruction execution system, device or device or Person's program in connection.The program code included on readable storage medium storing program for executing can be transmitted with any appropriate medium, bag Include but be not limited to wireless, wired, optical cable, RF etc., or above-mentioned any appropriate combination.
Can being combined to write the program operated for performing the present invention with one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., include routine Procedural programming language-such as " C " language or similar programming language.Program code can be fully in tenant Perform on computing device, partly performed in tenant's equipment, the software kit independent as one performs, is partly calculated in tenant Its upper side point is performed or performed completely in remote computing device or server on a remote computing.It is remote being related to In the situation of journey computing device, remote computing device can pass through the network of any kind, including LAN (LAN) or wide area network (WAN) tenant's computing device, is connected to, or, it may be connected to external computing device (such as utilize ISP To pass through Internet connection).
In an exemplary embodiment of the disclosure, a kind of electronic equipment is also provided, the electronic equipment can include processor, And the memory of the executable instruction for storing the processor.Wherein, the processor is configured to via described in execution The step of executable instruction is to perform the circulation processing method of electronic prescription described in any one above-mentioned embodiment.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be implemented as following form, i.e.,:It is complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.), or hardware and software, can unite here Referred to as " circuit ", " module " or " system ".
The electronic equipment 600 according to the embodiment of the invention is described referring to Fig. 6.The electronics that Fig. 6 is shown Equipment 600 is only an example, should not bring any restrictions to the function and use range of the embodiment of the present invention.
As shown in fig. 6, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap Include but be not limited to:At least one processing unit 610, at least one memory cell 620, (including the storage of connection different system component Unit 620 and processing unit 610) bus 630, display unit 640 etc..
Wherein, the memory cell is had program stored therein code, and described program code can be held by the processing unit 610 OK so that the processing unit 610 perform described in the above-mentioned electronic prescription circulation processing method part of this specification according to this The step of inventing various illustrative embodiments.For example, the step of processing unit 610 can perform as shown in fig. 1.
The memory cell 620 can include the computer-readable recording medium of volatile memory cell form, such as random access memory Unit (RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
The memory cell 620 can also include program/practical work with one group of (at least one) program module 6205 Tool 6204, such program module 6205 includes but is not limited to:Operating system, one or more application program, other programs Module and routine data, the realization of network environment may be included in each or certain combination in these examples.
Bus 630 can be to represent the one or more in a few class bus structures, including memory cell bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 600 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, the equipment communication that can also enable tenant to be interacted with the electronic equipment 600 with one or more, and/or with causing Any equipment that the electronic equipment 600 can be communicated with one or more of the other computing device (such as router, modulation /demodulation Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with By network adapter 660 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, Such as internet) communication.Network adapter 660 can be communicated by bus 630 with other modules of electronic equipment 600.Should Understand, although not shown in the drawings, can combine electronic equipment 600 uses other hardware and/or software module, including it is but unlimited In:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number According to backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can be realized by software, can also be realized by way of software combines necessary hardware.Therefore, according to the disclosure The technical scheme of embodiment can be embodied in the form of software product, the software product can be stored in one it is non-volatile Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are to cause a calculating Equipment (can be personal computer, server or network equipment etc.) performs the above-mentioned electronics according to disclosure embodiment Prescription circulation processing method.
Compared with prior art, the present invention realizes that the batch of task performs by terminal device packet, according to terminal device There is success rate monitoring and corresponding alarm measure after task is divided into multiple subtasks by packet, between adjacent task, meanwhile, Task is continued executing with to the terminal device of failure after the completion of multiple subtasks execution, to increase task completeness.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by appended Claim is pointed out.

Claims (13)

  1. A kind of 1. task executing method of terminal device, it is characterised in that including:
    Step S110:Reception task indicated, task instruction is asked in performing task in multiple terminal devices;
    Step S120:The multiple terminal device is divided into multigroup, each terminal device group includes more than one terminal device;
    Step S130:The task is divided into by multiple subtasks according to multiple terminal devices group, each subtask corresponding one is eventually End equipment group;
    Step S140:The subtask is performed successively by as little as more by the quantity of the terminal device in terminal device group, wherein, Before often performing a subtask, whether the rate that judges to run succeeded in previous subtask is less than first threshold, if so, then triggering police Accuse, and make the state of current subtask to wait;If it is not, the execution state for then making current subtask is execution;
    Step S150:After the completion of all subtasks, judge whether the rate of running succeeded that is averaged of all subtasks is less than Second Threshold, If then perform step S160;If it is not, then perform step S170;
    Step S160:Each terminal device that failure is performed according to subtask forms new one or more terminal device groups, and root Step S130 is performed according to new one or more terminal device groups;And
    Step S170:Formed according to the implementation status of each subtask and perform report.
  2. 2. task executing method as claimed in claim 1, it is characterised in that the multiple terminal device group is by terminal device Quantity is ranked into first terminal equipment group to N terminal device groups more by as little as, wherein, terminal device in first terminal equipment group Quantity be not more than the 3rd threshold value, and N is the integer more than or equal to 3.
  3. 3. task executing method as claimed in claim 2, it is characterised in that the 3rd threshold value is the number of all terminal devices The 5% to 10% of amount.
  4. 4. task executing method as claimed in claim 1, it is characterised in that described when the task is that software application upgrades Each subtask is performed in step S140 to be included:
    Step S141:The access state of multiple access interface is detected, if detecting, any one access interface has currently Terminal device corresponding to subtask accesses, then performs step S142, otherwise continue to detect;
    Step S142:According to the sequencing of terminal device access software upgrading is distributed for each terminal device of access interface Worker thread, and obtain the corresponding upgrade information of each terminal device software application to be upgraded;
    Step S143:The worker thread performs according to the ROMPaq of setting to each terminal device for getting upgrade information Updating operation.
  5. 5. task executing method as claimed in claim 4, it is characterised in that also include before the step S141:
    Step S141A:Batch configuration is carried out to the parameters of software application to be upgraded in the worker thread in advance.
  6. 6. task executing method as claimed in claim 4, it is characterised in that also include before the step S141:
    Step S141B:Obtain terminal device in install software application more recent application upgrade information, therefrom parse AKU and Parameter bag, and preserve.
  7. 7. the task executing method as described in any one of claim 1 to 6, it is characterised in that the multiple terminal device is located at In different LANs, the multiple terminal devices in same LAN are preferentially divided into one group by the step S120.
  8. 8. the task executing method as described in any one of claim 1 to 6, it is characterised in that the step S160 includes:
    The reason for subtask is failed forms a new terminal device group for each terminal device of shutdown, is spaced the scheduled time Afterwards, step S130 is performed.
  9. 9. the task executing method as described in any one of claim 1 to 6, it is characterised in that the first threshold and described Two threshold values are 75% to 85%.
  10. 10. task executing method as claimed in claim 1, it is characterised in that the task includes:Send notice, password is repaiied Change, be in configuration modification, software installation and custom task one or more.
  11. A kind of 11. task execution device of terminal device, it is characterised in that including:
    Receiving module, for receiving task instruction, task instruction is asked in performing task in multiple terminal devices;
    Grouping module, multigroup for the multiple terminal device to be divided into, each terminal device group includes more than one terminal Equipment;
    Subtask generation module, for the task to be divided into multiple subtasks according to multiple terminal devices group, appoint per height The corresponding terminal device group of business;
    Execution module, the subtask is performed successively by as little as more for the quantity by the terminal device in terminal device group, Wherein, before often performing a subtask, whether the rate that judges to run succeeded in previous subtask is less than first threshold, if so, then touching Hair warning, and make the state of current subtask to wait;If it is not, the execution state for then making current subtask is execution;
    Judge module, after the completion of all subtasks, judge whether the rate of running succeeded that is averaged of all subtasks is less than second Threshold value;
    Update module is grouped, for when judgment means are judged as YES, each terminal device that failure is performed according to subtask to be formed New one or more terminal device groups, and input subtask generation module according to new one or more terminal device groups; And
    Reporting modules, for when judgment means are judged as NO, being formed according to the implementation status of each subtask and performing report.
  12. 12. a kind of electronic equipment, it is characterised in that the electronic equipment includes:
    Processor;
    Storage medium, computer program is stored thereon with, such as right is performed when the computer program is run by the processor It is required that the step described in 1 to 10 any one.
  13. 13. a kind of storage medium, it is characterised in that computer program, the computer program are stored with the storage medium The step as described in any one of claim 1 to 10 is performed when being run by processor.
CN201711064611.2A 2017-11-02 2017-11-02 The task executing method of terminal device, device, electronic equipment, storage medium Pending CN107844374A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711064611.2A CN107844374A (en) 2017-11-02 2017-11-02 The task executing method of terminal device, device, electronic equipment, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711064611.2A CN107844374A (en) 2017-11-02 2017-11-02 The task executing method of terminal device, device, electronic equipment, storage medium

Publications (1)

Publication Number Publication Date
CN107844374A true CN107844374A (en) 2018-03-27

Family

ID=61681290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711064611.2A Pending CN107844374A (en) 2017-11-02 2017-11-02 The task executing method of terminal device, device, electronic equipment, storage medium

Country Status (1)

Country Link
CN (1) CN107844374A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221698A (en) * 2018-11-26 2020-06-02 北京京东金融科技控股有限公司 Task data acquisition method and device
CN111381960A (en) * 2018-12-29 2020-07-07 中兴通讯股份有限公司 Terminal task processing method and device, storage medium and electronic device
CN111782248A (en) * 2020-07-10 2020-10-16 上海淇毓信息科技有限公司 Terminal application updating method and device and electronic equipment
CN112559209A (en) * 2020-12-15 2021-03-26 携程计算机技术(上海)有限公司 Visual monitoring method, system, equipment and storage medium for regional tasks
CN116796994A (en) * 2023-07-24 2023-09-22 国广顺能(上海)能源科技有限公司 Multi-terminal scheduling method, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207522A (en) * 2007-12-18 2008-06-25 杭州华三通信技术有限公司 Method and apparatus for implementation of collocation task scheduling
CN102572896A (en) * 2012-02-23 2012-07-11 中兴通讯股份有限公司 Upgrading method and upgrading device for wireless communication system
CN104579768A (en) * 2014-12-29 2015-04-29 广州酷狗计算机科技有限公司 Client upgrading method and device
CN104699504A (en) * 2015-03-03 2015-06-10 惠州Tcl移动通信有限公司 Method and system for upgrading of batch software of terminal device
US9367361B2 (en) * 2013-11-08 2016-06-14 Fujitsu Limited Information processing device, method for processing information, and non-transitory computer-readable recording medium having stored therein information processing program
CN106095864A (en) * 2016-06-03 2016-11-09 中国工商银行股份有限公司 A kind of log processing system and method
CN106131598A (en) * 2016-07-11 2016-11-16 Tcl集团股份有限公司 A kind of task method for pushing based on high in the clouds and system
CN107066292A (en) * 2017-03-06 2017-08-18 北京百度网讯科技有限公司 Server environment dispositions method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207522A (en) * 2007-12-18 2008-06-25 杭州华三通信技术有限公司 Method and apparatus for implementation of collocation task scheduling
CN102572896A (en) * 2012-02-23 2012-07-11 中兴通讯股份有限公司 Upgrading method and upgrading device for wireless communication system
US9367361B2 (en) * 2013-11-08 2016-06-14 Fujitsu Limited Information processing device, method for processing information, and non-transitory computer-readable recording medium having stored therein information processing program
CN104579768A (en) * 2014-12-29 2015-04-29 广州酷狗计算机科技有限公司 Client upgrading method and device
CN104699504A (en) * 2015-03-03 2015-06-10 惠州Tcl移动通信有限公司 Method and system for upgrading of batch software of terminal device
CN106095864A (en) * 2016-06-03 2016-11-09 中国工商银行股份有限公司 A kind of log processing system and method
CN106131598A (en) * 2016-07-11 2016-11-16 Tcl集团股份有限公司 A kind of task method for pushing based on high in the clouds and system
CN107066292A (en) * 2017-03-06 2017-08-18 北京百度网讯科技有限公司 Server environment dispositions method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221698A (en) * 2018-11-26 2020-06-02 北京京东金融科技控股有限公司 Task data acquisition method and device
CN111381960A (en) * 2018-12-29 2020-07-07 中兴通讯股份有限公司 Terminal task processing method and device, storage medium and electronic device
CN111782248A (en) * 2020-07-10 2020-10-16 上海淇毓信息科技有限公司 Terminal application updating method and device and electronic equipment
CN111782248B (en) * 2020-07-10 2023-09-19 上海淇毓信息科技有限公司 Updating method and device of terminal application and electronic equipment
CN112559209A (en) * 2020-12-15 2021-03-26 携程计算机技术(上海)有限公司 Visual monitoring method, system, equipment and storage medium for regional tasks
CN112559209B (en) * 2020-12-15 2024-01-12 携程计算机技术(上海)有限公司 Visual monitoring method, system, equipment and storage medium for regional tasks
CN116796994A (en) * 2023-07-24 2023-09-22 国广顺能(上海)能源科技有限公司 Multi-terminal scheduling method, storage medium and electronic equipment
CN116796994B (en) * 2023-07-24 2024-03-22 国广顺能(上海)能源科技有限公司 Multi-terminal scheduling method, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN107844374A (en) The task executing method of terminal device, device, electronic equipment, storage medium
US11416385B2 (en) Visualization of code execution through line-of-code behavior and relation models
US11500762B2 (en) System and method for automated intelligent mobile application testing
CN102880546B (en) Software integration testing method and system based on extensible markup language (XML) database
CN109800159A (en) Program debugging method, program debugging device, terminal device and storage medium
CN111045901A (en) Container monitoring method and device, storage medium and electronic equipment
CN109388569B (en) Method for remotely detecting environmental anomaly of client, test server and storage medium
CN110995825B (en) Intelligent contract issuing method, intelligent node equipment and storage medium
CN105135615A (en) Debugging method and device of air conditioner
WO2020000758A1 (en) Server acceptance method and apparatus, computer device, and storage medium
CN108768730A (en) Method and apparatus for operating intelligent network adapter
CN103501391B (en) A kind of method and system managing user's brush machine behavior
CN108847930A (en) A kind of data transmission method, device and fire-fighting system
CN107844307A (en) The method for updating system and electronic equipment of electronic equipment
CN116700751A (en) Upgrading method of server firmware and computing device
CN110457058A (en) Control node online upgrading method, apparatus, host computer, system and electronic equipment
CN109740351A (en) A kind of leak detection method, device and the equipment of embedded firmware
CN115618316A (en) Fingerprint collision determination method and device, storage medium and electronic equipment
CN109343958A (en) Computational resource allocation method, apparatus, electronic equipment, storage medium
CN109947576A (en) A kind of method of virtual machine internal broker program management
WO2021192318A1 (en) Verification device, verification system, verification method and computer readable medium
CN112527668A (en) Applet safety debugging method and device, mobile terminal and storage medium
CN110992049A (en) Intelligent card writing method and device
CN109379231A (en) A kind of fire detector remote upgrade method and device based on CAN communication
CN104486378A (en) Cluster control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180327

RJ01 Rejection of invention patent application after publication