CN107908487B - Task control management method, device and equipment and computer readable storage medium - Google Patents

Task control management method, device and equipment and computer readable storage medium Download PDF

Info

Publication number
CN107908487B
CN107908487B CN201711101604.5A CN201711101604A CN107908487B CN 107908487 B CN107908487 B CN 107908487B CN 201711101604 A CN201711101604 A CN 201711101604A CN 107908487 B CN107908487 B CN 107908487B
Authority
CN
China
Prior art keywords
executed
task
execution
server
result information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711101604.5A
Other languages
Chinese (zh)
Other versions
CN107908487A (en
Inventor
赖金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201711101604.5A priority Critical patent/CN107908487B/en
Publication of CN107908487A publication Critical patent/CN107908487A/en
Application granted granted Critical
Publication of CN107908487B publication Critical patent/CN107908487B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/549Remote execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a task control management method, a device, equipment and a computer readable storage medium, wherein the task control management method comprises the following steps: when a task configuration request is detected, acquiring task configuration information from the task configuration request, and acquiring a task to be executed, a strategy to be executed and a server to be executed from the task configuration information; transmitting the task to be executed and the strategy to be executed to the server to be executed so that the server to be executed executes the task to be executed based on the strategy to be executed; and receiving the execution result information of the task to be executed returned by the server to be executed, and storing the execution result information. The invention can uniformly control and manage the execution tasks, realize the flexible control of the execution tasks, receive the execution result information returned by the server, effectively monitor the execution condition of the tasks and facilitate the maintenance when the execution of the tasks fails.

Description

Task control management method, device and equipment and computer readable storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for task control management.
Background
With the rapid development of internet technology, the configuration of the mobile terminal is higher and higher, and a user can install a program application in the mobile terminal to expand the functions of the mobile terminal. Generally, a program application installed in a mobile terminal needs to work in an environment with a network, such as WeChat, Payment treasure or Tencent video, and after the program application in the mobile terminal establishes data connection with a server, the program application in the mobile terminal can perform data service access with the network server.
With the proliferation of users, a single server has been unable to meet the requirements, and therefore, a server cluster is required to provide services for program applications. Each server in the server cluster can execute different tasks, but the triggering of the tasks is mainly triggered by a timer, the tasks and the execution time need to be set in advance, the flexible control of the tasks cannot be realized, the execution condition of the tasks cannot be effectively monitored, and the management and the maintenance are not convenient. Therefore, how to realize flexible control of tasks and how to effectively monitor the execution situation of the tasks are problems to be solved urgently at present.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a task control management method, a task control management device, a task control management equipment and a computer readable storage medium, and aims to solve the technical problems of how to realize flexible control of tasks and how to effectively monitor the execution condition of the tasks.
In order to achieve the above object, the present invention provides a task control management method, including the following steps:
when a task configuration request is detected, acquiring task configuration information from the task configuration request, and acquiring a task to be executed, a strategy to be executed and a server to be executed from the task configuration information;
transmitting the task to be executed and the strategy to be executed to the server to be executed so that the server to be executed executes the task to be executed based on the strategy to be executed;
and receiving the execution result information of the task to be executed returned by the server to be executed, and storing the execution result information.
Optionally, before the step of transmitting the task to be executed and the policy to be executed to the server to be executed, the task control management method further includes:
acquiring task configuration information from a database at preset time intervals, and detecting whether the task configuration information is updated;
and when the task configuration information is detected to be updated, acquiring the task to be executed, the strategy to be executed and the server to be executed from the task configuration information.
Optionally, the step of detecting whether the task configuration information is updated includes:
acquiring the configuration time of the task configuration information, and judging whether the configuration time is the same as the historical configuration time;
if the configuration time is different from the historical configuration time, judging that the task configuration information is updated;
and if the configuration time is the same as the historical configuration time, judging that the task configuration information is not updated.
Optionally, after the step of receiving the execution result information of the to-be-executed task returned by the to-be-executed server and storing the execution result information, the task control management method further includes:
judging whether the task to be executed is executed successfully or not according to the execution result information;
and when the execution of the task to be executed fails, acquiring the reason of the execution failure from the execution result information, and displaying the reason of the execution failure.
Optionally, the step of determining whether the task to be executed is successfully executed according to the execution result information includes:
judging whether a success label exists in the execution result information;
if the execution result information contains a success label, judging that the task to be executed is successfully executed;
and if the successful label does not exist in the execution result information, judging that the task to be executed fails to be executed.
Optionally, after the step of determining whether the task to be executed is successfully executed according to the execution result information, the task control management method further includes:
when the execution of the task to be executed fails, judging whether the reason of the execution failure in the execution result information is the same as the preset reason of the failure;
and when the execution failure reason in the execution result information is the same as a preset failure reason, retransmitting the task to be executed and the strategy to be executed to the server to be executed.
In order to achieve the above object, the present invention also provides a task control management device including:
the system comprises a detection acquisition module, a task configuration module and a task configuration module, wherein the detection acquisition module is used for acquiring task configuration information from a task configuration request when the task configuration request is detected, and acquiring a task to be executed, a strategy to be executed and a server to be executed from the task configuration information;
the transmission module is used for transmitting the task to be executed and the strategy to be executed to the server to be executed so that the server to be executed executes the task to be executed based on the strategy to be executed;
and the receiving and storing module is used for receiving the execution result information of the task to be executed, which is returned by the server to be executed, and storing the execution result information.
The present invention also provides a task control management device, including: a memory, a processor, and a task control manager stored on the memory and executable on the processor, the task control manager when executed by the processor implementing the steps of:
when a task configuration request is detected, acquiring task configuration information from the task configuration request, and acquiring a task to be executed, a strategy to be executed and a server to be executed from the task configuration information;
transmitting the task to be executed and the strategy to be executed to the server to be executed so that the server to be executed executes the task to be executed based on the strategy to be executed;
and receiving the execution result information of the task to be executed returned by the server to be executed, and storing the execution result information.
The present invention also provides a computer-readable storage medium having a task control management program stored thereon, the task control management program, when executed by a processor, implementing the steps of:
when a task configuration request is detected, acquiring task configuration information from the task configuration request, and acquiring a task to be executed, a strategy to be executed and a server to be executed from the task configuration information;
transmitting the task to be executed and the strategy to be executed to the server to be executed so that the server to be executed executes the task to be executed based on the strategy to be executed;
and receiving the execution result information of the task to be executed returned by the server to be executed, and storing the execution result information.
The invention provides a task control management method, a device, equipment and a computer readable storage medium, when a task configuration request is detected, task configuration information is obtained from the task configuration request, a task to be executed, a strategy to be executed and a server to be executed are obtained from the task configuration information, then the task to be executed and the strategy to be executed are transmitted to the server to be executed, so that the server to be executed executes the task to be executed based on the strategy to be executed, finally execution result information of the task to be executed returned by the server to be executed is received, and the execution result information is stored, the scheme can configure the execution task by uniformly managing the execution task and transmits the configured execution task to the corresponding server for execution, thereby realizing flexible control of the execution task, and in addition, the execution result information returned by the server is received, the execution condition of the task can be effectively monitored, and maintenance is facilitated when the task fails to be executed.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a task control management method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a task control management method according to a second embodiment of the present invention;
FIG. 4 is a schematic view of a detailed flow of the step of detecting whether the task configuration information is updated shown in FIG. 3;
FIG. 5 is a flowchart illustrating a task control management method according to a third embodiment of the present invention;
FIG. 6 is a schematic view of a detailed flow of the step of determining whether the task to be executed is successfully executed according to the execution result information in FIG. 5;
FIG. 7 is a functional block diagram of a task control management device according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: when a task configuration request is detected, task configuration information is obtained from the task configuration request, a task to be executed, a strategy to be executed and a server to be executed are obtained from the task configuration information, then the task to be executed and the strategy to be executed are transmitted to the server to be executed, so that the server to be executed executes the task to be executed based on the strategy to be executed, finally execution result information of the task to be executed returned by the server to be executed is received, and the execution result information is stored.
Each server in the server cluster can execute different tasks, but the triggering of the tasks is mainly triggered by a timer, the tasks and the execution time need to be set in advance, the flexible control of the tasks cannot be realized, the execution condition of the tasks cannot be effectively monitored, and the management and the maintenance are not convenient. Therefore, how to realize flexible control of tasks and how to effectively monitor the execution situation of the tasks are problems to be solved urgently at present.
The invention provides a solution, which can configure the execution tasks by uniformly managing the execution tasks, transmit the configured execution tasks to the corresponding servers for execution, and realize flexible control of the execution tasks.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The device of the embodiment of the invention can be a PC, and can also be a mobile terminal device with a display function, such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor that adjusts the brightness of the display screen based on the ambient light level and a proximity sensor that turns off the display screen and/or backlight when the device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the device is stationary, and can be used for applications of recognizing the device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; of course, the device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein again.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a task control management program.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the task control manager stored in the memory 1005 and perform the following steps:
when a task configuration request is detected, acquiring task configuration information from the task configuration request, and acquiring a task to be executed, a strategy to be executed and a server to be executed from the task configuration information;
transmitting the task to be executed and the strategy to be executed to the server to be executed so that the server to be executed executes the task to be executed based on the strategy to be executed;
and receiving the execution result information of the task to be executed returned by the server to be executed, and storing the execution result information.
Further, the processor 1001 may be configured to call the task control management program stored in the memory 1005, and further perform the following steps:
acquiring task configuration information from a database at preset time intervals, and detecting whether the task configuration information is updated;
and when the task configuration information is detected to be updated, acquiring the task to be executed, the strategy to be executed and the server to be executed from the task configuration information.
Further, the processor 1001 may be configured to call the task control management program stored in the memory 1005, and further perform the following steps:
acquiring the configuration time of the task configuration information, and judging whether the configuration time is the same as the historical configuration time;
if the configuration time is different from the historical configuration time, judging that the task configuration information is updated;
and if the configuration time is the same as the historical configuration time, judging that the task configuration information is not updated.
Further, the processor 1001 may be configured to call the task control management program stored in the memory 1005, and further perform the following steps:
judging whether the task to be executed is executed successfully or not according to the execution result information;
and when the execution of the task to be executed fails, acquiring the reason of the execution failure from the execution result information, and displaying the reason of the execution failure.
Further, the processor 1001 may be configured to call the task control management program stored in the memory 1005, and further perform the following steps:
judging whether a success label exists in the execution result information;
if the execution result information contains a success label, judging that the task to be executed is successfully executed;
and if the successful label does not exist in the execution result information, judging that the task to be executed fails to be executed.
Further, the processor 1001 may be configured to call the task control management program stored in the memory 1005, and further perform the following steps:
when the execution of the task to be executed fails, judging whether the reason of the execution failure in the execution result information is a preset failure reason;
and when the execution failure reason in the execution result information is a preset failure reason, retransmitting the task to be executed and the strategy to be executed to the server to be executed.
The specific embodiment of the task control management device of the present invention is substantially the same as the specific embodiments of the task control management method described below, and is not described herein again.
The invention also provides a task control management method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a task control management method according to a first embodiment of the present invention.
In this embodiment, the task control management method includes:
step S101, when a task configuration request is detected, task configuration information is obtained from the task configuration request, and a task to be executed, a strategy to be executed and a server to be executed are obtained from the task configuration information;
the task control management method is applied to task control management equipment, the task control management equipment can be connected with each execution server in a server cluster in a long time, data interaction is carried out between the task control management equipment and each execution server through a network interface, each execution server is provided with a server identification, the server identification is used for uniquely representing the execution server, and the server identification can be an IP address of the execution server or a unique special number. The task control management device may control an execution task of each execution server, and an execution policy of the execution task. The task control management equipment displays a task configuration interface when receiving a task configuration instruction of a user, the task configuration interface displays task configuration options, the user can select task configuration information based on the displayed task configuration options and can also input the task configuration information so as to configure an execution task, an execution server, an execution strategy and the like, and when receiving a task configuration information storage instruction triggered by the user based on the task configuration interface, the task configuration information is stored in a database according to the task configuration information storage instruction.
After the task configuration information is stored in the database, a task configuration request is triggered, the task control management device detects whether the task configuration request is triggered, specifically, field information is obtained from a preset storage area in real time or at regular time, whether the field information is preset field information is judged, when the field information is the preset field information, the task configuration request is judged to be triggered, at the moment, the task configuration information is obtained from the task configuration request, and a task to be executed, a strategy to be executed and a server to be executed are obtained from the task configuration information. The task configuration information comprises a task to be executed, a policy to be executed, a server to be executed and the like, wherein the execution policy comprises executing the task once or more at a certain time point, executing the task once or more at preset time intervals, immediately executing the task once or more and the like, the server to be executed can be a designated execution server or a random execution server, can be a plurality of execution servers or a single execution server and the like, and the type of the execution task comprises a list export class, such as an activity entry list export class and the like, a data statistics class, such as a health behavior index statistic of a client, a data place class, such as entry data from a cache place and information from another application program to a database, and other business logic processes, such as a business employee departure data process, a common user upgrade business employee and the like. It should be noted that the task to be executed, the policy to be executed, and the server to be executed may be set by a person skilled in the art according to an actual situation, and this embodiment does not specifically limit this.
Step S102, transmitting the task to be executed and the strategy to be executed to the server to be executed, so that the server to be executed executes the task to be executed based on the strategy to be executed;
after the task control management device acquires the task to be executed, the strategy to be executed and the server to be executed from the task configuration information, the server identification of the server to be executed is acquired, the IP address of the server to be executed is acquired based on the service identification, the task to be executed and the strategy to be executed are transmitted to the corresponding server to be executed based on the IP address of the server to be executed, so that the server to be executed receives the task to be executed and the strategy to be executed transmitted by the task control management device, executes the task to be executed according to the strategy to be executed, generates corresponding execution result information after the execution task is completed, and returns the execution result information to the task control management device, for example, the strategy to be executed is executed once immediately, the task to be executed is an activity entry export list, the server to be executed immediately reads an activity entry list from a database, and generating the execution result information of the activity entry list export task, and returning the activity entry list and the execution result information to the task control management equipment.
Step S103, receiving the execution result information of the to-be-executed task returned by the to-be-executed server, and storing the execution result information.
The task control management device receives execution result information of the task to be executed returned by the server to be executed, and stores the execution result information, wherein the execution result information comprises execution success, execution failure or execution failure reasons and the like. For example, the task to be executed is an online marathon entry list export, the execution policy is executed every 1 hour, the server to be executed is a list export server, the task control management device sends the task to be executed, which is exported by the online marathon entry list, to the list export server every 1 hour, when receiving the online marathon entry list export task and the execution policy for executing the task every 1 hour, the list export server executes the online marathon entry list export task every 1 hour, that is, the online marathon entry list is exported from the service database every 1 hour, and when the online marathon entry list export task is completed every 1 hour, corresponding execution result information is returned to the task control management device.
In specific implementation, the task control management device may further read task configuration information from the database at regular time, acquire current configuration time of the task configuration information, compare the current configuration time with historical configuration time, determine that the task configuration information is updated if the current configuration time is after the historical configuration time, acquire a task to be executed, a policy to be executed, and a server to be executed from the task configuration information, and transmit the task to be executed and the policy to be executed to the server to be executed.
In the embodiment, when the task configuration request is detected, the invention acquires the task configuration information from the task configuration request, and obtains the task to be executed, the strategy to be executed and the server to be executed from the task configuration information, then the task to be executed and the policy to be executed are transmitted to the server to be executed, so that the server to be executed executes the task to be executed based on the policy to be executed, and finally the execution result information of the task to be executed returned by the server to be executed is received, and stores the execution result information, the scheme can configure the execution task by uniformly managing the execution task, and the configured execution task is transmitted to the corresponding server for execution, so that the flexible control of the execution task is realized, and in addition, the execution result information returned by the server is received, so that the execution condition of the task can be effectively monitored, and the maintenance is facilitated when the task is failed to be executed.
Further, referring to fig. 3, a second embodiment of the task control management method according to the present invention is proposed based on the first embodiment, and the difference from the foregoing embodiment is that before step S102, the task control management method further includes:
step S104, acquiring task configuration information from a database at preset time intervals, and detecting whether the task configuration information is updated;
it should be noted that, based on the foregoing embodiments, the present invention proposes another specific way of controlling management to execute tasks, which is only described below, and other embodiments can be referred to.
The task control management device acquires task configuration information from a database at preset intervals and detects whether the task configuration information is updated.
Specifically, referring to fig. 4, fig. 4 is a detailed flowchart of step S104 shown in fig. 3, where the step S104 includes:
step S1041, obtaining the configuration time of the task configuration information, and judging whether the configuration time is the same as the historical configuration time;
step S1042, if the configuration time is different from the historical configuration time, determining that the task configuration information is updated;
step S1043, if the configuration time is the same as the historical configuration time, determining that the task configuration information is not updated.
The task control management device acquires the configuration time of the task configuration information after acquiring the task configuration information from the database at preset time intervals, judges whether the configuration time is the same as historical configuration time, and if the configuration time is different from the historical configuration time, judges that the task configuration information is updated, so that a task to be executed and a policy to be executed in the updated task configuration information need to be transmitted to a corresponding server to be executed. It should be noted that the historical configuration time is stored in the register, the initial value is 0, when the configuration time of the task configuration information is acquired, the historical configuration time stored in the register is updated to the acquired task configuration information for the next use, the preset time may be set by a person skilled in the art according to an actual situation, and this is not limited in this embodiment.
Step S105, when detecting that the task configuration information is updated, acquiring the task to be executed, the strategy to be executed and the server to be executed from the task configuration information.
When detecting that the task configuration information is updated, the task control management device acquires a task to be executed, a policy to be executed and a server to be executed from the updated task configuration information, transmits the task to be executed and the policy to be executed to the server to be executed, so that the server to be executed executes the task to be executed based on the policy to be executed, receives execution result information of the task to be executed returned by the server to be executed, and stores the execution result information.
In this embodiment, the present invention detects whether the task configuration information in the database is updated at preset intervals, and can perform control management of executing the task based on the updated task configuration information when the task configuration information is updated, thereby reducing the number of operations of the user.
Further, referring to fig. 5, a third embodiment of the task control management method of the present invention is proposed based on the first or second embodiment, and is different from the previous embodiment in that after step S103, the task control management method further includes:
step S106, judging whether the task to be executed is executed successfully according to the execution result information;
it should be noted that the present invention provides a specific monitoring method for executing tasks based on the foregoing embodiments, and only this is described below, and other embodiments can be referred to.
And when receiving execution result information of the task to be executed returned by the server to be executed, the task control management equipment judges whether the task to be executed is executed successfully according to the execution result information.
Specifically, referring to fig. 6, fig. 6 is a detailed flowchart of step S106 shown in fig. 5, where step S106 includes:
step S1061, judging whether a success label exists in the execution result information;
step S1062, if the execution result information has a success label, determining that the task to be executed is successfully executed;
step S1063, if no success tag exists in the execution result information, determining that the task to be executed fails to be executed.
When receiving execution result information of a task to be executed returned by a server to be executed, the task control management device judges whether a success label exists in the execution result information, if the success label exists in the execution result information, the task to be executed can be judged to be successfully executed, and if the success label does not exist in the execution result information, the task to be executed is judged to be failed to be executed.
And step S107, when the execution of the task to be executed fails, acquiring the reason of the execution failure from the execution result information, and displaying the reason of the execution failure.
And when the task to be executed fails to execute, the task control management equipment acquires the reason of the execution failure from the execution result information and displays the reason of the execution failure, so that a user can solve problems based on the reason of the execution failure.
Optionally, in this embodiment, after step S106, the method further includes:
when the execution of the task to be executed fails, judging whether the reason of the execution failure in the execution result information is the same as the preset reason of the failure;
and when the execution failure reason in the execution result information is the same as a preset failure reason, retransmitting the task to be executed and the strategy to be executed to the server to be executed.
It should be noted that the present invention provides another specific monitoring method for performing tasks based on the foregoing embodiments, which is only described below, and other embodiments can be referred to.
The task control management device judges whether the execution failure reason in the execution result information is the same as a preset failure reason or not when the execution of the task to be executed fails, if the execution failure reason in the execution result information is the same as the preset failure reason, the task to be executed and the strategy to be executed are retransmitted to the server to be executed, so that the server to be executed can execute the task to be executed again based on the strategy to be executed, and if the execution failure reason is different from the preset failure reason, the execution failure reason is displayed. For example, if the reason of the default failure is network disconnection and the reason of the execution failure is network disconnection, the to-be-executed task and the to-be-executed policy are retransmitted to the to-be-executed server when the network is reconnected. It should be noted that the reason for the default failure may be set by a person skilled in the art according to practical situations, and the embodiment does not specifically limit this.
In the embodiment, when the execution of the task fails, the execution of the execution task is performed again based on the reason for the execution failure, so that the failure frequency of the execution of the task is reduced, and the reason for the execution failure is displayed, so that the maintenance of a user is facilitated.
The invention also provides a task control management device.
Referring to fig. 7, fig. 7 is a functional block diagram of a task control management device according to a first embodiment of the present invention.
In this embodiment, the task control management apparatus includes:
the system comprises a detection acquisition module 101, a task configuration module and a task configuration module, wherein the detection acquisition module 101 is used for acquiring task configuration information from a task configuration request when the task configuration request is detected, and acquiring a task to be executed, a strategy to be executed and a server to be executed from the task configuration information;
a transmission module 102, configured to transmit the to-be-executed task and the to-be-executed policy to the to-be-executed server, so that the to-be-executed server executes the to-be-executed task based on the to-be-executed policy;
the receiving and storing module 103 is configured to receive execution result information of the to-be-executed task returned by the to-be-executed server, and store the execution result information.
Further, the detection obtaining module 101 is further configured to:
acquiring task configuration information from a database at preset time intervals, and detecting whether the task configuration information is updated;
and when the task configuration information is detected to be updated, acquiring the task to be executed, the strategy to be executed and the server to be executed from the task configuration information.
Further, the detection obtaining module 101 is further configured to:
acquiring the configuration time of the task configuration information, and judging whether the configuration time is the same as the historical configuration time;
if the configuration time is different from the historical configuration time, judging that the task configuration information is updated;
and if the configuration time is the same as the historical configuration time, judging that the task configuration information is not updated.
Further, the task control management device further includes:
the judging module is used for judging whether the task to be executed is executed successfully according to the execution result information;
and the acquisition and display module is used for acquiring the reason of the execution failure from the execution result information and displaying the reason of the execution failure when the execution of the task to be executed fails.
Further, the determining module is further configured to:
judging whether a success label exists in the execution result information;
if the execution result information contains a success label, judging that the task to be executed is successfully executed;
and if the successful label does not exist in the execution result information, judging that the task to be executed fails to be executed.
Further, the determining module is further configured to determine, when the execution of the task to be executed fails, whether an execution failure reason in the execution result information is the same as a preset failure reason;
the transmission module is further configured to retransmit the to-be-executed task and the to-be-executed policy to the to-be-executed server when an execution failure reason in the execution result information is the same as a preset failure reason.
The specific embodiment of the task control management device of the present invention is basically the same as the specific embodiments of the task control management method described above, and details are not described herein.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a task control management program is stored on the computer-readable storage medium, and when executed by a processor, the task control management program implements the following steps:
when a task configuration request is detected, acquiring task configuration information from the task configuration request, and acquiring a task to be executed, a strategy to be executed and a server to be executed from the task configuration information;
transmitting the task to be executed and the strategy to be executed to the server to be executed so that the server to be executed executes the task to be executed based on the strategy to be executed;
and receiving the execution result information of the task to be executed returned by the server to be executed, and storing the execution result information.
Further, the task control manager, when executed by the processor, implements the steps of:
acquiring task configuration information from a database at preset time intervals, and detecting whether the task configuration information is updated;
and when the task configuration information is detected to be updated, acquiring the task to be executed, the strategy to be executed and the server to be executed from the task configuration information.
Further, the task control manager, when executed by the processor, implements the steps of:
acquiring the configuration time of the task configuration information, and judging whether the configuration time is the same as the historical configuration time;
if the configuration time is different from the historical configuration time, judging that the task configuration information is updated;
and if the configuration time is the same as the historical configuration time, judging that the task configuration information is not updated.
Further, the task control manager, when executed by the processor, implements the steps of:
judging whether the task to be executed is executed successfully or not according to the execution result information;
and when the execution of the task to be executed fails, acquiring the reason of the execution failure from the execution result information, and displaying the reason of the execution failure.
Further, the task control manager, when executed by the processor, implements the steps of:
judging whether a success label exists in the execution result information;
if the execution result information contains a success label, judging that the task to be executed is successfully executed;
and if the successful label does not exist in the execution result information, judging that the task to be executed fails to be executed.
Further, the task control manager, when executed by the processor, implements the steps of:
when the execution of the task to be executed fails, judging whether the reason of the execution failure in the execution result information is the same as the preset reason of the failure;
and when the execution failure reason in the execution result information is the same as a preset failure reason, retransmitting the task to be executed and the strategy to be executed to the server to be executed.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the specific embodiments of the task control management method described above, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A task control management method is characterized by comprising the following steps:
when a task configuration request is detected, acquiring task configuration information from the task configuration request, and acquiring a task to be executed, a strategy to be executed and a server to be executed from the task configuration information, wherein the execution strategy is to execute the task to be executed once or for multiple times at a preset time point, or execute the task to be executed once or for multiple times at a preset time interval, or immediately execute the task to be executed once or for multiple times;
transmitting the task to be executed and the strategy to be executed to the server to be executed so that the server to be executed executes the task to be executed based on the strategy to be executed;
receiving execution result information of the task to be executed returned by the server to be executed, and storing the execution result information;
judging whether the task to be executed is executed successfully or not according to the execution result information;
when the execution of the task to be executed fails, judging whether the reason of the execution failure in the execution result information is the same as the preset reason of the failure;
and when the execution failure reason in the execution result information is the same as a preset failure reason, retransmitting the task to be executed and the strategy to be executed to the server to be executed.
2. The task control management method according to claim 1, wherein before the step of transmitting the to-be-executed task and the to-be-executed policy to the to-be-executed server, the task control management method further comprises:
acquiring task configuration information from a database at preset time intervals, and detecting whether the task configuration information is updated;
and when the task configuration information is detected to be updated, acquiring the task to be executed, the strategy to be executed and the server to be executed from the task configuration information.
3. The task control management method according to claim 2, wherein the step of detecting whether the task configuration information is updated includes:
acquiring the configuration time of the task configuration information, and judging whether the configuration time is the same as the historical configuration time;
if the configuration time is different from the historical configuration time, judging that the task configuration information is updated;
and if the configuration time is the same as the historical configuration time, judging that the task configuration information is not updated.
4. The task control management method according to any one of claims 1 to 3, wherein after the step of determining whether the task to be executed is successfully executed according to the execution result information, the task control management method further comprises:
and when the execution of the task to be executed fails, acquiring the reason of the execution failure from the execution result information, and displaying the reason of the execution failure.
5. The task control management method according to claim 4, wherein the step of determining whether the task to be executed is successfully executed according to the execution result information comprises:
judging whether a success label exists in the execution result information;
if the execution result information contains a success label, judging that the task to be executed is successfully executed;
and if the successful label does not exist in the execution result information, judging that the task to be executed fails to be executed.
6. A task control management apparatus, characterized in that the task control management apparatus comprises:
the system comprises a detection acquisition module, a task configuration module and a task configuration module, wherein the detection acquisition module is used for acquiring task configuration information from a task configuration request when the task configuration request is detected, and acquiring a task to be executed, a strategy to be executed and a server to be executed from the task configuration information;
the transmission module is used for transmitting the to-be-executed task and the to-be-executed strategy to the to-be-executed server so that the to-be-executed server executes the to-be-executed task based on the to-be-executed strategy, wherein the execution strategy is to execute the to-be-executed task once or for multiple times at a preset time point, or execute the to-be-executed task once or for multiple times at intervals of a preset time, or immediately execute the to-be-executed task once or for multiple times;
the receiving and storing module is used for receiving the execution result information of the task to be executed returned by the server to be executed and storing the execution result information;
the judging module is used for judging whether the task to be executed is executed successfully according to the execution result information;
the judging module is further configured to judge whether an execution failure reason in the execution result information is the same as a preset failure reason when the execution of the task to be executed fails;
the transmission module is further configured to retransmit the to-be-executed task and the to-be-executed policy to the to-be-executed server when an execution failure reason in the execution result information is the same as a preset failure reason.
7. The task control management device according to claim 6, wherein the detection acquisition module is further configured to:
acquiring task configuration information from a database at preset time intervals, and detecting whether the task configuration information is updated;
and when the task configuration information is detected to be updated, acquiring the task to be executed, the strategy to be executed and the server to be executed from the task configuration information.
8. A task control management device characterized by comprising: a memory, a processor, and a task control manager stored on the memory and executable on the processor, the task control manager when executed by the processor implementing the steps of:
when a task configuration request is detected, acquiring task configuration information from the task configuration request, and acquiring a task to be executed, a strategy to be executed and a server to be executed from the task configuration information, wherein the execution strategy is to execute the task to be executed once or for multiple times at a preset time point, or execute the task to be executed once or for multiple times at a preset time interval, or immediately execute the task to be executed once or for multiple times;
transmitting the task to be executed and the strategy to be executed to the server to be executed so that the server to be executed executes the task to be executed based on the strategy to be executed;
receiving execution result information of the task to be executed returned by the server to be executed, and storing the execution result information;
judging whether the task to be executed is executed successfully or not according to the execution result information;
when the execution of the task to be executed fails, judging whether the reason of the execution failure in the execution result information is the same as the preset reason of the failure;
and when the execution failure reason in the execution result information is the same as a preset failure reason, retransmitting the task to be executed and the strategy to be executed to the server to be executed.
9. A computer-readable storage medium having a task control management program stored thereon, the task control management program when executed by a processor implementing the steps of:
when a task configuration request is detected, acquiring task configuration information from the task configuration request, and acquiring a task to be executed, a strategy to be executed and a server to be executed from the task configuration information, wherein the execution strategy is to execute the task to be executed once or for multiple times at a preset time point, or execute the task to be executed once or for multiple times at a preset time interval, or immediately execute the task to be executed once or for multiple times;
transmitting the task to be executed and the strategy to be executed to the server to be executed so that the server to be executed executes the task to be executed based on the strategy to be executed;
receiving execution result information of the task to be executed returned by the server to be executed, and storing the execution result information;
judging whether the task to be executed is executed successfully or not according to the execution result information;
when the execution of the task to be executed fails, judging whether the reason of the execution failure in the execution result information is the same as the preset reason of the failure;
and when the execution failure reason in the execution result information is the same as a preset failure reason, retransmitting the task to be executed and the strategy to be executed to the server to be executed.
CN201711101604.5A 2017-11-08 2017-11-08 Task control management method, device and equipment and computer readable storage medium Active CN107908487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711101604.5A CN107908487B (en) 2017-11-08 2017-11-08 Task control management method, device and equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711101604.5A CN107908487B (en) 2017-11-08 2017-11-08 Task control management method, device and equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107908487A CN107908487A (en) 2018-04-13
CN107908487B true CN107908487B (en) 2020-11-24

Family

ID=61844483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711101604.5A Active CN107908487B (en) 2017-11-08 2017-11-08 Task control management method, device and equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107908487B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542591A (en) * 2018-10-17 2019-03-29 深圳壹账通智能科技有限公司 Task compensation deals method, apparatus, computer equipment and storage medium
CN109684095B (en) * 2018-12-26 2021-03-23 北京奇艺世纪科技有限公司 Task processing method and task distribution equipment
CN110009381A (en) * 2018-12-27 2019-07-12 香港乐蜜有限公司 A kind of active configuration method, apparatus, electronic equipment and storage medium
CN109814995A (en) * 2019-01-04 2019-05-28 深圳壹账通智能科技有限公司 Method for scheduling task, device, computer equipment and storage medium
CN110347492A (en) * 2019-07-15 2019-10-18 深圳前海乘势科技有限公司 Distributed task dispatching method and apparatus based on time parameter method
CN111694671B (en) * 2020-06-12 2023-09-01 北京金山云网络技术有限公司 Big data component management method, device, server, electronic equipment and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006338197A (en) * 2005-05-31 2006-12-14 Fujitsu Ltd Transaction control program, transaction control method, and transaction processing system
CN101009583A (en) * 2006-01-24 2007-08-01 华为技术有限公司 Execution method of the scheduled task and execution task of management task, and its terminal device
CN101707543A (en) * 2009-11-30 2010-05-12 北京中科大洋科技发展股份有限公司 Enterprise media bus system supporting multi-task type and enterprise media bus method supporting multi-task type
CN106681810A (en) * 2016-12-08 2017-05-17 乐视控股(北京)有限公司 Task docking processing customized management method, device and electronic equipment
CN107291547A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of task scheduling processing method, apparatus and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7412701B1 (en) * 2002-04-22 2008-08-12 Cisco Technology, Inc. Method for network management using a virtual machine in a network device
CN102567106B (en) * 2010-12-30 2014-10-01 中国移动通信集团云南有限公司 Task scheduling method, system and device
CN106557356B (en) * 2015-09-25 2020-06-19 阿里巴巴集团控股有限公司 Task processing method and device
CN107203814A (en) * 2017-04-26 2017-09-26 消检通(深圳)科技有限公司 A kind of management of fire fighting equipment method, device and readable storage medium storing program for executing
CN107330771A (en) * 2017-07-24 2017-11-07 杨润丁 Task management method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006338197A (en) * 2005-05-31 2006-12-14 Fujitsu Ltd Transaction control program, transaction control method, and transaction processing system
CN101009583A (en) * 2006-01-24 2007-08-01 华为技术有限公司 Execution method of the scheduled task and execution task of management task, and its terminal device
CN101707543A (en) * 2009-11-30 2010-05-12 北京中科大洋科技发展股份有限公司 Enterprise media bus system supporting multi-task type and enterprise media bus method supporting multi-task type
CN107291547A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of task scheduling processing method, apparatus and system
CN106681810A (en) * 2016-12-08 2017-05-17 乐视控股(北京)有限公司 Task docking processing customized management method, device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任务和调度:理解批量处理的关键设计;晚来风急;《https://yq.aliyun.com/articles/219570》;20170904;第1-7页 *

Also Published As

Publication number Publication date
CN107908487A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
CN107908487B (en) Task control management method, device and equipment and computer readable storage medium
CN108959000B (en) Server pressure testing method, system and terminal
US11659098B2 (en) Information reminding method and apparatus, and electronic terminal
CN108234171B (en) Data processing method, system and device
US8626937B2 (en) Server device in thin-client system
US9942164B2 (en) Mobile information terminal and program thereof
US20160080219A1 (en) Monitoring system, facility management device, monitoring method, and program
CN109885323B (en) Application program upgrading method, mobile terminal and readable storage medium
CN111179461A (en) BIM (building information modeling) -based routing inspection record generation method and equipment and storage medium
CN110647739A (en) Software installation detection method, device, terminal and storage medium
CN110650051A (en) Self-service terminal monitoring method and system and computer readable storage medium
CN105739758A (en) Display control method and device of Android device
KR20150074415A (en) Method for controlling an use of sim card and an electronic device thereof
CN109428871B (en) Defense strategy determination method and device
US10643252B2 (en) Banner display method of electronic device and electronic device thereof
KR101895843B1 (en) Alarm verification system and method thereof
CN111443847B (en) Push message processing method and electronic equipment
CN107819938A (en) Footmark collocation method, device, mobile terminal and server
CN109145182B (en) Data acquisition method and device, computer equipment and system
CN113542424B (en) Data processing method, device, equipment and readable storage medium
US20170054699A1 (en) Information processing apparatus, information processing method, program, storage medium, and password entry apparatus
CN111339196B (en) Data processing method and system based on block chain and computer readable storage medium
KR102170520B1 (en) Apparatas and method for improving a loading time in an electronic device
CN112363852A (en) Popup message processing method, device, equipment and computer readable storage medium
CN112486573A (en) Data processing method, data processing device and storage medium of monitoring system

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
GR01 Patent grant
GR01 Patent grant