CN115185765A - Task management method and device, electronic equipment and storage medium - Google Patents

Task management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115185765A
CN115185765A CN202210597356.2A CN202210597356A CN115185765A CN 115185765 A CN115185765 A CN 115185765A CN 202210597356 A CN202210597356 A CN 202210597356A CN 115185765 A CN115185765 A CN 115185765A
Authority
CN
China
Prior art keywords
target
task
state information
user
running state
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
CN202210597356.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.)
Shenzhen Coocaa Network Technology Co Ltd
Original Assignee
Shenzhen Coocaa Network Technology 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 Shenzhen Coocaa Network Technology Co Ltd filed Critical Shenzhen Coocaa Network Technology Co Ltd
Priority to CN202210597356.2A priority Critical patent/CN115185765A/en
Publication of CN115185765A publication Critical patent/CN115185765A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3017Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is implementing multitasking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention relates to a task management method, a task management device, electronic equipment and a storage medium, wherein the method comprises the following steps: when a target monitoring period is reached, acquiring running state information of each task in a target task list; for each piece of running state information, when the running state information meets a target preset condition, generating target alarm information of a target task corresponding to the running state information, wherein the target preset condition is any one of a plurality of preset conditions; determining a first target user corresponding to each target task; and aiming at each target task, sending the target alarm information to a terminal where the first target user is located so as to alarm. Therefore, in the target monitoring period, the running condition of the task is monitored by acquiring the running state information of the task, corresponding warning information is generated when the abnormal running of the task is monitored, and the warning information is sent to the terminal where the user corresponding to the task is located to give a warning, so that the user can timely handle the task with abnormal running.

Description

Task management method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of big data, in particular to a task management method and device, electronic equipment and a storage medium.
Background
At present, with the arrival of a big data era, more and more companies are correspondingly provided with data departments, thousands of tasks run on a data platform constructed by the data departments, and blood-related dependency relationships may exist among different tasks. When an important task running in the data platform is abnormal and the related technical personnel do not repair the task in time, the operation of other tasks which have blood-related dependency relationship with the important task can be directly influenced.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a task management method and apparatus, an electronic device, and a storage medium to solve the above technical problems or some technical problems.
In a first aspect, an embodiment of the present invention provides a task management method, including:
when a target monitoring period is reached, acquiring running state information of each task in a target task list;
for each piece of running state information, when the running state information meets a target preset condition, generating target alarm information of a target task corresponding to the running state information, wherein the target preset condition is any one preset condition in a plurality of preset conditions;
determining a first target user corresponding to each target task;
and aiming at each target task, sending the target warning information to a terminal where the first target user is located so as to carry out warning.
In a possible implementation manner, the running state information includes a task running time, a task execution result and a task name;
the target preset condition at least comprises one of the following conditions:
the task running time exceeds a preset time threshold; or the like, or, alternatively,
the task execution result is a task execution failure; or the like, or, alternatively,
the format of the task name does not match a preset format.
In a possible implementation manner, the generating target alarm information of the target task corresponding to the running state information includes:
determining a target alarm template corresponding to the target preset condition from a first incidence relation, wherein the first incidence relation stores the corresponding relation between a plurality of preset conditions and alarm templates;
and generating target alarm information of the target task corresponding to the running state information according to the target alarm template.
In a possible implementation manner, the sending the target warning information to the terminal where the first target user is located includes:
determining a target message channel corresponding to the target task from a second incidence relation, wherein the second incidence relation stores the corresponding relation between a plurality of tasks and message channels;
and sending the target warning information to a terminal where the first target user is located through the target message channel.
In one possible embodiment, the method further comprises:
determining a target operation result of each application according to a third association relation and the operation state information of each task, wherein the third association relation comprises the corresponding relation between a plurality of applications and the tasks;
and displaying a first visual billboard of each target operation result.
In one possible embodiment, the method further comprises:
determining a first judgment result meeting the preset conditions aiming at each preset condition;
determining second judgment results which do not meet a plurality of preset conditions;
and the second visual billboard displays each first judgment result, and the third visual billboard displays each second judgment result.
In a possible implementation manner, the sending the target warning information to the terminal where the first target user is located includes:
determining a target identifier corresponding to the first target user;
when the first target user corresponding to the target identification is stored in a first user list, determining a second target user corresponding to the first target user from a second user list;
and sending the target alarm information to a terminal where the second target user is located.
In a second aspect, an embodiment of the present invention provides a task management apparatus, including:
the acquisition module is used for acquiring the running state information of each task in the target task list when the target monitoring period is reached;
the generating module is used for generating target warning information of a target task corresponding to the running state information when the running state information meets a target preset condition aiming at each running state information, wherein the target preset condition is any one preset condition in a plurality of preset conditions;
the determining module is used for determining a first target user corresponding to each target task;
and the warning module is used for sending the target warning information to a terminal where the first target user is located for warning aiming at each target task.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory, the processor being configured to execute a task management program stored in the memory to implement the task management method as described above.
In a fourth aspect, an embodiment of the present invention provides a storage medium storing one or more programs, which are executable by one or more processors to implement the task management method as described above.
The task management method provided by the embodiment of the invention comprises the following steps: when a target monitoring period is reached, acquiring running state information of each task in a target task list; for each piece of running state information, when the running state information meets a target preset condition, generating target alarm information of a target task corresponding to the running state information, wherein the target preset condition is any one of a plurality of preset conditions; determining a first target user corresponding to each target task; and aiming at each target task, sending the target alarm information to a terminal where the first target user is located so as to alarm. Through the mode, the embodiment of the invention monitors the running condition of the task by acquiring the running state information of the task in the target monitoring period, generates corresponding alarm information when monitoring that the task runs abnormally, and sends the alarm information to the terminal of the user corresponding to the task to alarm, so that the user can process the task running abnormally in time.
Drawings
Fig. 1 is a schematic flowchart of a task management method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another task management method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of step S206 according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a task management device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
in the drawings above:
10. an acquisition module; 20. a generation module; 30. a determining module; 40. an alarm module;
400. an electronic device; 401. a processor; 402. a memory; 4021. an operating system; 4022. an application program; 403. a user interface; 404. a network interface; 405. a bus system.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a task management method according to an embodiment of the present invention. The task management method provided by the embodiment of the invention comprises the following steps:
s101: and when the target monitoring period is reached, acquiring the running state information of each task in the target task list.
The target monitoring period may be set according to actual needs, and this embodiment is not specifically limited herein, for example, the target monitoring period may be 5 minutes, 4 minutes, and the like. As will be appreciated by those skilled in the art, the target monitoring period, i.e., the time period between the last monitoring time and the current monitoring time, is, for example, 5 minutes, the last monitoring time is 14/11/1/2021: 00, current time 2021, 11 month, 1 day 14:02, the time length between the last monitoring time and the current time is 2 minutes (which is less than the target monitoring period), so the current time has not yet reached the monitoring time. As another example, the current time is 14/11/1/2021: 05, the time length between the last monitoring time and the current time is 5 minutes (which is equal to the target monitoring period), so that when the current time reaches the monitoring time, the step of obtaining the running state information of each task in the target task list can be executed.
In this embodiment, a large number of tasks run on a Resource coordinator (YARN), and a target task list is formed by the running tasks on the YARN, and according to the target task list, the running state information of each task in the target task list can be obtained through a YARN interface. The YARN interface specifically refers to a Representational State Transfer application interface (REST API) provided by a Hadoop YARN Web service, and is used for acquiring information of clusters, nodes and applications of a distributed system based on the YARN. The YARN-based distributed system comprises a Hadhoop cluster and a YARN for managing cluster resources, all tasks submitted to the YARN-based distributed system are finally operated in the cluster in the form of Application programs (Application), and therefore the operation state information of each task in a target task list is obtained through a YARN interface. It should be noted that the target task list is updated according to the different tasks running on YARN.
In this embodiment, the running state information includes a task running time, a task execution result, and a task name. Each application on YARN includes a task with a fixed-format name, wherein the task name format includes the name of the application to which the task belongs and a preset task name. For example, if the default task name of a User picture is tag _ up _ and _ down and the name of the application of the User picture is User _ port, the name of the User picture is User _ port _ tag _ up _ and _ down. The status of all tasks on YARN is recorded in the database, wherein the task status includes the name of the task, the description of the task, the developer of the task, etc. Wherein the running state information of each task can be obtained from a database.
S102: and aiming at each piece of running state information, when the running state information meets a target preset condition, generating target alarm information of a target task corresponding to the running state information, wherein the target preset condition is any one of a plurality of preset conditions.
After the running state information of each task is acquired, the running state information is respectively judged with a plurality of pre-stored preset conditions, and when the running state information meets one of the preset conditions, a target task corresponding to the running information can be determined to be an abnormal task; and when the running state information does not meet a plurality of preset conditions, determining that the target task corresponding to the running information is a normal task.
In this embodiment, the target preset condition at least includes one of the following conditions:
the task running time exceeds a preset time threshold; or the like, or a combination thereof,
the task execution result is a task execution failure; or the like, or, alternatively,
the format of the task name does not match the preset format.
When a target monitoring period is reached, after task running time, a task execution result and a task name of a task are obtained, comparing the task running time with a preset time threshold, and when the task running time exceeds the preset time threshold, generating target alarm information of the target task corresponding to running state information; when the task running time does not exceed the preset time threshold, judging a task execution result, and when the task execution result is a task execution failure, generating target alarm information of a target task corresponding to the running state information; when the task execution result is that the task is successfully executed, judging the format of the task name, and when the format of the task name is not matched with the preset format, generating target alarm information of a target task corresponding to the running state information; and when the format of the task name is matched with the preset format, determining that the task is a normal task. In this embodiment, the task running time, the task execution result, the task name, and the determination sequence of the corresponding preset condition may be set according to actual needs, and this embodiment is not specifically limited herein.
In this embodiment, the value of the preset duration threshold may be 2 hours, and of course, the specific value of the preset duration threshold may also be set according to actual needs, which is not specifically limited in this embodiment.
S103: and determining a first target user corresponding to each target task.
The first target user is a manager of the target task, namely a developer for performing repair optimization on the target task. In this embodiment, the first target user may be determined in the following manner, specifically as follows;
determining a first target user corresponding to each target task from the fourth incidence relation; the fourth incidence relation stores the corresponding relation between a plurality of tasks and the user.
S104: and aiming at each target task, sending the target alarm information to a terminal where a first target user is located so as to alarm.
The target warning information may be sent to the terminal where the first target user is located through a corresponding message channel, and a method for determining the message channel is described below, which is not described herein in detail in this embodiment.
In the task management method provided by this embodiment, in a target monitoring period, the running condition of a task is monitored by obtaining running state information of the task, when the task is monitored to be abnormal in running, corresponding warning information is generated, and the warning information is sent to a terminal where a user corresponding to the task is located, so as to give a warning, and the user can handle the task with abnormal running in time.
Referring to fig. 2, fig. 2 is a schematic flowchart of another task management method according to an embodiment of the present invention. The task management method provided by the embodiment of the invention comprises the following steps:
s201: and when the target monitoring period is reached, acquiring the running state information of each task in the target task list.
The step S201 is the same as the step S101, and reference may be made to the above description, which is not repeated herein.
S202: and for each piece of operation state information, when the operation state information meets the target preset condition, determining a target alarm template corresponding to the target preset condition from the first association relation.
In this embodiment, the first association relationship stores a corresponding relationship between a plurality of preset conditions and the alarm template. The task execution method comprises the steps that a preset condition that the task operation time exceeds a preset time threshold corresponds to an overtime alarm template, a preset condition that the task execution result is the task execution failure corresponds to an execution result alarm template, and a preset condition that the format of the task name is not matched with the preset format corresponds to a format alarm template. Different alarm templates represent the specific conditions of different abnormal tasks. Each alarm template is provided with an ID number, an executive user, a task name and a developer of the abnormal task, and meanwhile, each alarm template is also provided with an abnormal reason (corresponding to a preset condition), wherein the abnormal reason specifically can refer to overtime of task running time, failure in task execution and form mismatching. Therefore, after the target preset condition met by the running state information is determined, the target alarm template corresponding to the target preset condition can be determined from the first association relation.
S203: and generating target alarm information of the target task corresponding to the running state information according to the target alarm module.
After the target alarm template is determined, the target ID number, the target execution user, the target task name and the target developer corresponding to the target task are obtained, and the target ID number, the target execution user, the target task name and the target developer are filled in corresponding positions of the target alarm template, so that target alarm information of the target task corresponding to the running state information is generated.
S204: and determining a first target user corresponding to each target task.
In this embodiment, the step S204 is the same as the step S103, and reference may be specifically made to the above description, which is not repeated herein.
S205: and determining a target message channel corresponding to the target task from the second association relation aiming at each target task.
And the second incidence relation stores the corresponding relation between a plurality of tasks and the message channel. The message channel comprises at least one of a short message channel, an email message channel, a Payment treasure message channel, a WeChat message channel, an APP notification message channel, a WeChat applet message channel, a voice short message channel, an enterprise WeChat message channel or a flybook message channel. In this embodiment, one task may correspond to one message channel, and one task may also correspond to at least two message channels, where the correspondence between the task and the message channel is preset, and when a certain task needs to add a new message channel, the second association relationship is updated.
S206: and sending the target alarm information to a terminal where the first target user is located through a target message channel so as to alarm.
The target warning information is generated by the target warning template, and when the terminal where the user is located receives the target warning information, the user can determine the abnormal reason of the task, so that the user can repair the abnormal task in a targeted manner according to the abnormal reason, and the working efficiency is improved.
In order to ensure that a user handling an abnormal task can accurately receive target warning information, referring to fig. 3, the step S206 specifically includes:
s2061: determining a target identification corresponding to a first target user;
s2062: judging whether a first target user corresponding to the target identification is stored in the first user list or not;
s2063: when the first target user corresponding to the target identification is not stored in the first user list, sending target alarm information to a terminal where the first target user is located through a target message channel so as to alarm;
s2064: when a first target user corresponding to the target identification is stored in the first user list, determining a second target user corresponding to the first target user from a second user list;
s2065: and sending the target alarm information to a terminal where a second target user is located through a target message channel so as to alarm.
In this embodiment, for the steps S2061 to S2065, the target identifier is a unique identifier of the first target user, for example, the target identifier may be a mobile phone number, an identity card number, or the like, where a specific form of the target identifier may be set according to an actual need, and this embodiment is not specifically limited herein. The first user list is formed by developers who are no longer responsible for the processing work of the corresponding task, and the second user list is formed by developers who are no longer responsible for the processing work of the task handing over the processing work of the task to other developers. The first user name list comprises a plurality of corresponding relations between the first target users and the target identifications. The second user name list comprises a plurality of corresponding relations among the first target users, the second target users and the target identifications. And determining whether the first user list comprises a first target user or not by matching the target identifier with the first user name list, and determining a second target user corresponding to the first target user in the second user list by matching the target identifier with the second user name list.
For example, for one target task1, the first target user is user1, the first target user1 is no longer responsible for the processing work of the target task1, and the first target user1 hands over the processing work of the target task1 to the second target user2, the target identifier of the first target user is ID1, when the first target user1 is determined to be stored in the first user list through the target identification ID1, the second target user2 corresponding to the first target user1 can be determined from the second user list through the target identification ID1, so that the target alarm information can be timely and accurately sent to corresponding developers, and the developers can conveniently process abnormal tasks in time.
The task management method provided by the embodiment of the invention further comprises the following steps:
s207: and determining a target operation result of each application according to the third correlation and the operation state information of each task.
S208: and displaying a first visual billboard of each target operation result.
Wherein the format of the first visual billboard comprises: at least one of a picture billboard, a text billboard, a digital billboard, a progress bar billboard, a graphical billboard and a list billboard; the graphical billboard comprises: at least one of a scatter chart billboard, a graph billboard, and a histogram billboard. The third association relationship includes a corresponding relationship between the plurality of applications and the tasks. An application may include one task, and an application may also include at least two tasks. In this embodiment, the step S207 and the step S208 may be executed between the step S201 and the step S202, or may be executed between the step S202 and the step S203, and a specific execution sequence of the step S207 and the step S208 may be set according to actual needs, and the specific execution sequence is not specifically limited in this embodiment.
For example, when the step S207 and the step S208 are executed between the step S201 and the step S202, after the task running time of each task in the target task list is obtained, the task whose task running time exceeds the preset time threshold is determined, the task which exceeds the preset time threshold and is included in each application is determined according to the third correlation and the task which exceeds the preset time threshold, and after the tasks are sorted according to the task running times, the list signboard of the sorted task running times is displayed, as shown in table 1, and table 1 is a task running time list signboard. In this embodiment, the preset duration threshold may be 1 hour, and the preset duration threshold may be set according to actual needs, which is not specifically limited herein.
TABLE 1 List of task running time
Serial number Application classification Task name Run time (minutes) Date
1 Data access Data_access_001 100 2022-05-05
2 Data access Data_access_002 98 2022-05-05
3 Data access Data_access_003 97 2022-05-05
...... ...... ...... ...... ......
For example, when the steps S207 and S208 are executed between the steps S202 and S203, after determining whether any preset condition is satisfied according to the operation state information, the success rate and/or the failure rate of each application may be determined according to the third association relationship, and the success rate and the failure rate of one application may be determined according to the number of tasks included in the application and the operation condition of the tasks (whether the task is an abnormal task or a normal task, and if the operation state information of the task satisfies any preset condition, the task may be determined to be an abnormal task). For example, an application includes 30 tasks, where 2 tasks are exception tasks, and the success rate of the application is equal to (30-2)/30 =93.33%. And after the success rate and/or the failure rate of each application is obtained, displaying a list billboard of the success rate and/or the failure rate of each application, referring to table 2, wherein table 2 is an application success rate list billboard.
TABLE 2 List of task running time
Serial number Application classification Success rate Date
1 Data access 100% 2022-05-05
2 Data warehouse 97.20% 2022-05-05
3 User representation 98% 2022-05-05
...... ...... ...... ......
In this embodiment, the first visual bulletin board displaying the target operation result of each application can help a developer to know the operation condition of the application in real time, so that the developer optimizes the corresponding task according to the data in the first visual bulletin board.
S209: and determining a first judgment result meeting the preset conditions aiming at each preset condition.
S210: and determining second judgment results which do not meet a plurality of preset conditions.
S211: and the second visual billboard displays each first judgment result, and the third visual billboard displays each second judgment result.
Wherein, the format of the second visual billboard and the third visual billboard includes: at least one of a picture billboard, a text billboard, a digital billboard, a progress bar billboard, a graphical billboard and a list billboard; the graphical billboard comprises: at least one of a scatter chart billboard, a graph billboard, and a histogram billboard. In this embodiment, the first determination result includes the number of tasks and the task list that satisfy the preset condition, and the second determination result includes the number of tasks and the task list that do not satisfy the plurality of preset conditions, a digital signboard that shows the number of tasks, and a list signboard that shows the task list. In this embodiment, the steps S209 to S211 can be executed between the steps S202 to S203.
In this embodiment, the second visual bulletin board for displaying each first determination result and the third visual bulletin board for displaying each second determination result can help the developer to know the overall operation condition of the task in real time, and the developer can perform specialized processing on the abnormal task according to the data in the second visual bulletin board.
In the task management method provided by this embodiment, in a target monitoring period, the running condition of a task is monitored by obtaining running state information of the task, when the task is monitored to be abnormal in running, corresponding warning information is generated, and the warning information is sent to a terminal where a user corresponding to the task is located, so as to give a warning, and the user can handle the task with abnormal running in time.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a task management device according to an embodiment of the present invention. An embodiment of the present invention provides a task management device, including: the system comprises an acquisition module 10, a generation module 20, a determination module 30 and an alarm module 40, wherein the acquisition module 10 is used for acquiring running state information of each task in a target task list when a target monitoring period is reached; the generating module 20 is configured to, for each piece of running state information, generate target warning information of a target task corresponding to the running state information when the running state information meets a target preset condition, where the target preset condition is any preset condition of multiple preset conditions; the determining module 30 is configured to determine a first target user corresponding to each target task; the warning module 40 is configured to send target warning information to a terminal where the first target user is located for each target task to perform warning.
In this embodiment, the running state information includes a task running time, a task execution result, and a task name;
the target preset condition includes at least one of:
the task running time exceeds a preset time threshold; or the like, or a combination thereof,
the task execution result is the task execution failure; or the like, or, alternatively,
the format of the task name does not match the preset format.
In this embodiment, the generating module 20 is further configured to:
the corresponding target warning information of the target task comprises the following steps:
determining a target alarm template corresponding to a target preset condition from a first association relationship, wherein the first association relationship stores the corresponding relationship between a plurality of preset conditions and the alarm template;
and generating target alarm information of the target task corresponding to the running state information according to the target alarm template.
In this embodiment, the warning module 40 is further configured to:
determining a target message channel corresponding to the target task from a second incidence relation, wherein the second incidence relation stores the corresponding relation between a plurality of tasks and the message channel;
and sending the target alarm information to the terminal of the first target user through the target message channel.
In this embodiment, the determining module 30 is further configured to:
and determining a target operation result of each application according to a third association relation and the operation state information of each task, wherein the third association relation comprises the corresponding relation between a plurality of applications and the tasks.
The task management device provided by the embodiment further comprises a display module, and the display module is used for displaying the first visual billboard of each target operation result.
In this embodiment, the determining module 30 is further configured to:
determining a first judgment result meeting the preset conditions aiming at each preset condition;
and determining second judgment results which do not meet a plurality of preset conditions.
In this embodiment, the display module is further configured to:
a second visual billboard displaying each first judgment result, and a third visual billboard displaying the second judgment result.
In this embodiment, the alarm module 40 is further configured to:
determining a target identification corresponding to a first target user;
when a first target user corresponding to the target identification is stored in the first user list, determining a second target user corresponding to the first target user from a second user list;
and sending the target alarm information to a terminal where a second target user is located.
The task management device provided by the embodiment comprises: the system comprises an acquisition module, a generation module, a determination module and an alarm module, wherein the acquisition module is used for acquiring the running state information of each task in a target task list when a target monitoring period is reached; the generating module is used for generating target alarm information of a target task corresponding to the running state information when the running state information meets a target preset condition aiming at each running state information, wherein the target preset condition is any preset condition in a plurality of preset conditions; the determining module is used for determining a first target user corresponding to each target task; and the alarm module is used for sending the target alarm information to the terminal of the first target user for alarming aiming at each target task. Through the above manner, in the target monitoring period, the running condition of the task is monitored by acquiring the running state information of the task, when the abnormal running of the task is monitored, the corresponding warning information is generated, and the warning information is sent to the terminal where the user corresponding to the task is located, so as to give a warning, and the user can timely handle the task with abnormal running.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 400 shown in fig. 5 includes: at least one processor 401, memory 402, at least one network interface 404, and other user interfaces 403. The various components in the electronic device 400 are coupled together by a bus system 405. It is understood that the bus system 405 is used to enable connection communication between these components. The bus system 405 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 405 in fig. 5.
The user interface 403 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that memory 402 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), enhanced Synchronous SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 402 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 402 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 4021 and application programs 4022.
The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is configured to implement various basic services and process hardware-based tasks. The application programs 4022 include various application programs, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program for implementing the method according to the embodiment of the present invention may be included in the application 4022.
In this embodiment of the present invention, by calling a program or an instruction stored in the memory 402, specifically, a program or an instruction stored in the application 4022, the processor 401 is configured to execute the method steps provided by the method embodiments, for example, including: when a target monitoring period is reached, acquiring running state information of each task in a target task list; for each piece of running state information, when the running state information meets a target preset condition, generating target alarm information of a target task corresponding to the running state information, wherein the target preset condition is any one of a plurality of preset conditions; determining a first target user corresponding to each target task; and aiming at each target task, sending the target alarm information to a terminal where a first target user is located so as to alarm.
The method disclosed in the above embodiments of the present invention may be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 401. The Processor 401 may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The electronic device provided in this embodiment may be the electronic device shown in fig. 5, and may execute all the steps of the task management method shown in fig. 1 to 3, so as to achieve the technical effect of the task management method shown in fig. 1 to 3, and for brevity, it is not described herein again.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When one or more programs in the storage medium are executable by one or more processors, the task management method executed on the task management device side is implemented.
The processor is used for executing the task management program stored in the memory to realize the following steps of the task management method executed on the task management device side: when a target monitoring period is reached, acquiring running state information of each task in a target task list; for each piece of running state information, when the running state information meets a target preset condition, generating target alarm information of a target task corresponding to the running state information, wherein the target preset condition is any one of a plurality of preset conditions; determining a first target user corresponding to each target task; and aiming at each target task, sending the target alarm information to a terminal where the first target user is located so as to alarm.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for task management, comprising:
when a target monitoring period is reached, acquiring running state information of each task in a target task list;
for each piece of running state information, when the running state information meets a target preset condition, generating target alarm information of a target task corresponding to the running state information, wherein the target preset condition is any one preset condition in a plurality of preset conditions;
determining a first target user corresponding to each target task;
and aiming at each target task, sending the target warning information to a terminal where the first target user is located so as to carry out warning.
2. The method of claim 1, wherein the operating state information includes a task running duration, a task execution result, and a task name;
the target preset condition at least comprises one of the following conditions:
the task running time exceeds a preset time threshold; or the like, or, alternatively,
the task execution result is a task execution failure; or the like, or, alternatively,
the format of the task name is not matched with a preset format.
3. The method according to claim 1, wherein the generating target alarm information of the target task corresponding to the running state information includes:
determining a target alarm template corresponding to the target preset condition from a first incidence relation, wherein the first incidence relation stores the corresponding relation between a plurality of preset conditions and alarm templates;
and generating target alarm information of the target task corresponding to the running state information according to the target alarm template.
4. The method according to claim 1, wherein the sending the target alert information to the terminal where the first target user is located comprises:
determining a target message channel corresponding to the target task from a second incidence relation, wherein the second incidence relation stores the corresponding relation between a plurality of tasks and message channels;
and sending the target warning information to the terminal of the first target user through the target message channel.
5. The method of claim 1, further comprising:
determining a target operation result of each application according to a third association relation and the operation state information of each task, wherein the third association relation comprises the corresponding relation between a plurality of applications and the tasks;
and displaying a first visual billboard of each target operation result.
6. The method of claim 5, further comprising:
aiming at each preset condition, determining a first judgment result meeting the preset condition;
determining second judgment results which do not meet a plurality of preset conditions;
and the second visual billboard displays each first judgment result, and the third visual billboard displays each second judgment result.
7. The method according to claim 1, wherein the sending the target alert information to the terminal where the first target user is located comprises:
determining a target identifier corresponding to the first target user;
when the first target user corresponding to the target identification is stored in a first user list, determining a second target user corresponding to the first target user from a second user list;
and sending the target alarm information to a terminal where the second target user is located.
8. A task management apparatus, comprising:
the acquisition module is used for acquiring the running state information of each task in the target task list when the target monitoring period is reached;
the generating module is used for generating target alarm information of a target task corresponding to the running state information when the running state information meets a target preset condition aiming at each running state information, wherein the target preset condition is any preset condition in a plurality of preset conditions;
the determining module is used for determining a first target user corresponding to each target task;
and the warning module is used for sending the target warning information to the terminal of the first target user aiming at each target task so as to carry out warning.
9. An electronic device, comprising: a processor and a memory, the processor being configured to execute a task management program stored in the memory to implement the task management method of any one of claims 1 to 7.
10. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the task management method according to any one of claims 1 to 7.
CN202210597356.2A 2022-05-27 2022-05-27 Task management method and device, electronic equipment and storage medium Pending CN115185765A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210597356.2A CN115185765A (en) 2022-05-27 2022-05-27 Task management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210597356.2A CN115185765A (en) 2022-05-27 2022-05-27 Task management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115185765A true CN115185765A (en) 2022-10-14

Family

ID=83513886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210597356.2A Pending CN115185765A (en) 2022-05-27 2022-05-27 Task management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115185765A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115797001A (en) * 2022-11-14 2023-03-14 首约科技(北京)有限公司 Alarm method, alarm device, electronic equipment and storage medium
CN115987756A (en) * 2022-12-19 2023-04-18 北京自如信息科技有限公司 Alarm information processing method and device, electronic equipment and storage medium
CN117170981A (en) * 2023-11-01 2023-12-05 中国电子科技集团公司第十五研究所 Multitasking process monitoring method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115797001A (en) * 2022-11-14 2023-03-14 首约科技(北京)有限公司 Alarm method, alarm device, electronic equipment and storage medium
CN115797001B (en) * 2022-11-14 2024-01-26 首约科技(北京)有限公司 Alarm method, alarm device, electronic equipment and storage medium
CN115987756A (en) * 2022-12-19 2023-04-18 北京自如信息科技有限公司 Alarm information processing method and device, electronic equipment and storage medium
CN117170981A (en) * 2023-11-01 2023-12-05 中国电子科技集团公司第十五研究所 Multitasking process monitoring method and system

Similar Documents

Publication Publication Date Title
CN115185765A (en) Task management method and device, electronic equipment and storage medium
CN108399101B (en) Method, device and system for scheduling resources
US9112777B1 (en) Tag-based resource configuration control
US11756404B2 (en) Adaptive severity functions for alerts
US8019845B2 (en) Service delivery using profile based management
CN108492005B (en) Project data processing method and device, computer equipment and storage medium
US20050198390A1 (en) Adaptive dispatch of received messages to code using inter-positioned message modification
CN111768097B (en) Task execution state monitoring method, device, system and storage medium
CN110704097A (en) Data collection method and device, electronic equipment and storage medium
US11733996B2 (en) Intelligent software patch management
CN108733536B (en) Monitoring management system and method
WO2019062020A1 (en) Asynchronous task unified processing method and apparatus, and storage medium
CN112949969A (en) Supply and demand matching method and device, electronic equipment and storage medium
CN112231039A (en) Work order information statistical method and device, computer equipment and storage medium
CN109600250B (en) Service system fault notification method, device, electronic device and storage medium
CN116149824A (en) Task re-running processing method, device, equipment and storage medium
KR102464688B1 (en) Method and apparatus for detrmining event level of monitoring result
CN114928603A (en) Client software upgrading method and device, electronic equipment and medium
CN114399319A (en) False enterprise identification method, device, equipment and medium based on prediction model
CN114186976A (en) Workflow transfer method and device, computer equipment and storage medium
CN111080250B (en) Flow backspacing compensation method and device, storage medium and electronic equipment
CN109634636B (en) Application processing method, device, equipment and medium
CN112686742A (en) Sales invoice risk early warning method and device, storage medium and electronic equipment
JP6528285B2 (en) Crisis response management device
CN111784174A (en) Method and device for managing risk policy based on user portrait and electronic equipment

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