CN114265741A - Task monitoring method and device - Google Patents

Task monitoring method and device Download PDF

Info

Publication number
CN114265741A
CN114265741A CN202111545064.6A CN202111545064A CN114265741A CN 114265741 A CN114265741 A CN 114265741A CN 202111545064 A CN202111545064 A CN 202111545064A CN 114265741 A CN114265741 A CN 114265741A
Authority
CN
China
Prior art keywords
task
monitored
information
abnormal
dimensional array
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
CN202111545064.6A
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.)
Beijing Aerospace Measurement and Control Technology Co Ltd
Original Assignee
Beijing Aerospace Measurement and Control 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 Beijing Aerospace Measurement and Control Technology Co Ltd filed Critical Beijing Aerospace Measurement and Control Technology Co Ltd
Priority to CN202111545064.6A priority Critical patent/CN114265741A/en
Publication of CN114265741A publication Critical patent/CN114265741A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application relates to a task monitoring method and device, and belongs to the technical field of task monitoring. The task monitoring method comprises the following steps: acquiring task information of a task to be monitored, and registering the task to be monitored according to the task information to obtain registration information of the task to be monitored; updating the registration information of the task to be monitored to a two-dimensional array; monitoring the tasks to be monitored in the two-dimensional array by taking preset time as a period; when the task to be monitored in the two-dimensional array is monitored to be in an abnormal state, stopping monitoring the task to be monitored, recording abnormal task information, and taking the equipment corresponding to the task to be monitored off line. By monitoring the task to be monitored in real time and offline the equipment corresponding to the task to be monitored after identifying the abnormality of the task to be monitored, the technical problem that the abnormal machine works because part of tasks fail abnormally and are not identified in the long-term power-on process of the test equipment is solved, and the reliability of the system in the long-term operation process is improved.

Description

Task monitoring method and device
Technical Field
The present application relates to the field of task monitoring technologies, and in particular, to a task monitoring method and device.
Background
In the standby process of an aircraft of a certain type, in order to ensure that the target is successfully completed, double-machine hot standby is required. Therefore, the ground test equipment of the aircraft needs to be electrified for a long time to monitor the state of the aircraft, in the process, part of tasks are not identified and a leak that the two machines are not switched exists, so that abnormal machines work on duty, and the normal use of the ground test system is influenced.
Disclosure of Invention
In order to solve the technical problem that abnormal machine work is caused because abnormal failure of part of tasks is not identified in the long-term power-on process of test equipment, the application provides a task monitoring method and a task monitoring device.
In a first aspect, the present application provides a task monitoring method, including:
acquiring task information of a task to be monitored, and registering the task to be monitored according to the task information to obtain registration information of the task to be monitored;
updating the registration information of the task to be monitored to a two-dimensional array;
monitoring the tasks to be monitored in the two-dimensional array by taking preset time as a period;
when the task to be monitored in the two-dimensional array is monitored to be in an abnormal state, stopping monitoring the task to be monitored, recording abnormal task information, and taking off the equipment corresponding to the task to be monitored;
further, before the task information of the task to be monitored is obtained, the method further includes:
acquiring initialization information;
generating the two-dimensional array according to the initialization information;
further, the acquiring task information of the task to be monitored, and registering the task to be monitored according to the task information to obtain registration information of the task to be monitored includes:
acquiring the task name and identification information of the task to be monitored;
registering the task to be monitored according to the task name, and taking the task name and the identification information as registration information of the task to be monitored;
further, the updating the registration information of the task to be monitored to the two-dimensional array includes:
judging whether the task name of the task to be monitored has the same-name task in the two-dimensional array;
if yes, updating the identification information of the task to be monitored to any empty column of the row where the task with the same name is located;
if the task name of the task to be monitored does not exist, updating the task name of the task to be monitored to any empty row of the two-dimensional array, and updating the identification information to any empty column in any empty row;
further, when it is monitored that the task to be monitored in the two-dimensional array is in an abnormal state, stopping monitoring the task to be monitored, recording abnormal task information, and taking the device corresponding to the task to be monitored off-line, including:
acquiring that the task to be monitored is in an abnormal state;
generating abnormal task information and recording the abnormal task information, wherein the abnormal information comprises a task name, identification information and fault information of the task to be monitored in an abnormal state;
stopping feeding dogs for the equipment corresponding to the task to be monitored according to the abnormal task information, and marking the equipment as fault equipment;
further, the acquiring that the task to be monitored is in an abnormal state includes:
acquiring alarm information;
confirming that the task to be monitored corresponding to the alarm information is in an abnormal state;
further, the alarm information includes: at least one of a task stop state, a task suspend state, a task block state, and a task delay state;
and confirming that the task to be monitored corresponding to the alarm information is in an abnormal state, including:
confirming that the task to be monitored corresponding to the alarm information containing the task stop state is in an abnormal state;
further, the preset time period is 16.67 ms.
In a second aspect, the present application provides a task monitoring device, comprising:
the registration module is used for acquiring task information of a task to be monitored, and registering the task to be monitored according to the task information to obtain registration information of the task to be monitored;
the updating module is used for updating the registration information of the task to be monitored to a two-dimensional array;
the monitoring module is used for monitoring the tasks to be monitored in the two-dimensional array by taking preset time as a period;
the abnormal processing module is used for stopping monitoring the task to be monitored when the task to be monitored in the two-dimensional array is monitored to be in an abnormal state, recording abnormal task information and taking the equipment corresponding to the task to be monitored off line;
further, the exception handling module is to: acquiring that the task to be monitored is in an abnormal state; generating abnormal task information and recording the abnormal task information, wherein the abnormal task information comprises a task name, identification information and fault information of the task to be monitored in an abnormal state; and stopping feeding the dog to the equipment corresponding to the task to be monitored according to the abnormal task information, and calibrating the equipment as fault equipment.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor, configured to implement the steps of the task monitoring method according to any embodiment of the first aspect when executing the program stored in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the task monitoring method according to any one of the embodiments of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the method provided by the embodiment of the application comprises the steps of obtaining task information of a task to be monitored, and registering the task to be monitored according to the task information to obtain registration information of the task to be monitored; updating the registration information of the task to be monitored to a two-dimensional array; monitoring the tasks to be monitored in the two-dimensional array by taking preset time as a period; when the task to be monitored in the two-dimensional array is monitored to be in an abnormal state, stopping monitoring the task to be monitored, recording abnormal task information, and taking the equipment corresponding to the task to be monitored off line. By using the method, the tasks to be monitored registered in the two-dimensional array are monitored in real time, and the equipment corresponding to the tasks to be monitored is shut down and offline after the abnormal tasks to be monitored are identified, so that the technical problem that the abnormal machine works because part of the abnormal tasks fail to be identified in the long-term power-on process of the test equipment is solved, and the reliability of the system in the long-term operation process is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a system architecture diagram of a task monitoring method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a task monitoring method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating another task monitoring method according to an embodiment of the present application;
FIG. 4 is a schematic flow chart diagram illustrating another task monitoring method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a task monitoring device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The first embodiment of the present application provides a task monitoring method, which may be applied to a system architecture as shown in fig. 1, where the system architecture includes an aircraft 100 and at least two testing devices 101, the aircraft 100 and the testing devices 101 establish a communication connection, and the testing devices 101 establish a communication connection. The test equipment 101 tests the aircraft 100, the method is particularly applied to the test equipment 101, when the monitoring system monitors that a task to be monitored of the test equipment 101 is in an abnormal state, the monitoring system stops monitoring the task to be monitored, the test equipment 101 is offline, and the test equipment with faults is prevented from executing the test task.
In one embodiment, a task monitoring method, as shown in fig. 2, includes:
step 201, acquiring task information of a task to be monitored, and registering the task to be monitored according to the task information to obtain registration information of the task to be monitored.
Step 202, updating the registration information of the task to be monitored to the two-dimensional array.
Step 203, taking the preset time length as a period to monitor the task to be monitored in the two-dimensional array.
And 204, when the task to be monitored in the two-dimensional array is monitored to be in an abnormal state, stopping monitoring the task to be monitored, recording abnormal task information, and taking the equipment corresponding to the task to be monitored off line.
In this embodiment, task information of a task to be monitored is obtained, and the task to be monitored is registered according to the task information, so as to obtain registration information of the task to be monitored, where the task information may include a task name and task ID information. And updating the registration information to the two-dimensional array, and monitoring the two-dimensional array by taking the preset time length as a period. And when the task to be monitored in the two-dimensional array is monitored to be in an abnormal state, stopping monitoring the task to be monitored, and taking the equipment corresponding to the task to be monitored off line.
For the scenario of dual-computer hot standby, the main device is on duty, and the standby device is in standby state. When the task to be monitored of the main equipment is in an abnormal state, the main equipment is off-line, correspondingly, the standby equipment is switched to the on-duty equipment, the dual-machine state is switched to the single-machine state temporarily, when the equipment in the abnormal state is cleared, the standby state is entered, and the system is switched to the dual-machine hot-standby state again. According to the method, the two-dimensional array is established, the set of tasks to be monitored is established, and the two-dimensional array is monitored, namely only the registered tasks to be monitored are monitored, so that all tasks included in the monitoring system are avoided, the system overhead can be reduced, the technical problem that part of tasks are abnormal and fail and are not identified in the long-term power-on process of the testing equipment, so that the abnormal machine works is solved, and the reliability of the system in the long-term operation process is improved.
In one embodiment, before acquiring task information of a task to be monitored, the method further includes:
acquiring initialization information; and generating a two-dimensional array according to the initialization information.
And generating a two-dimensional array during initialization, wherein the two-dimensional array is used for storing task names and task ID information. And after the monitoring task is registered, updating the registration information to the two-dimensional array, and scanning the two-dimensional array according to a period of preset time. By establishing the two-dimensional array and establishing a set of tasks to be monitored, the two-dimensional array is monitored (namely only the registered tasks to be monitored are monitored), all tasks included in the monitoring system are avoided, the system overhead can be reduced, the situation that when all tasks are monitored, part of tasks are abnormal and fail and are not identified is avoided, and the reliability of the system in the long-term operation process is improved.
In one embodiment, acquiring task information of a task to be monitored, and registering the task to be monitored according to the task information to obtain registration information of the task to be monitored, the method includes:
and acquiring the task name and the identification information of the task to be monitored.
And registering the task to be monitored according to the task name, and taking the task name and the identification information as registration information of the task to be monitored.
In this embodiment, each task to be monitored is registered, and the registration information is updated to the two-dimensional array, so that the tasks to be monitored can be monitored conveniently.
In one embodiment, updating the registration information of the task to be monitored to the two-dimensional array includes:
judging whether the task name of the task to be monitored has the same-name task in the two-dimensional array;
if yes, updating the identification information of the task to be monitored to any empty column of the row where the task with the same name is located;
and if not, updating the task name of the task to be monitored to any empty row of the two-dimensional array, and updating the identification information to any empty column in any empty row.
In this embodiment, in the two-dimensional array, different task names may be placed in different rows of one row respectively, tasks with the same task name are distinguished by the identification information, and placed in different rows of the row where the task name is located, and the same task name is placed in one row, so that the tasks to be monitored are conveniently monitored. The identification information is information having a unique identification function and may be task ID information. The task ID information is obtained by querying a task list by a task name at the time of initial registration, and the task ID is unique within the operating system.
Specifically, whether the task name of the task to be monitored has the same-name task in the two-dimensional array is judged, if yes, the identification information of the task to be monitored is updated to the position where the column number of the tail row of the same-name task is added with 1, and the position is used as a new row tail; and if not, updating the task name of the task to be monitored to the position of the two-dimensional array where the original column tail row number for storing the task name is added with 1 to serve as a new column tail, and updating the identification information to the first column in the row for storing the identification information. For example, the existing task names "0", "1", and "2" (stored in the first row, the second row, and the third row of the stored task name, respectively) in the two-dimensional array, the task name "0" includes one task, the ID is 0x12 (stored in the first column of the stored identification information of the row where the task "0" is located), the task name "1" includes two tasks, the ID is 0x13 and 0x14 (stored in the first column and the second column of the stored identification information of the row where the task "1" is located, respectively), the task name "2" includes three tasks, the IDs are 0x15, 0x16, and 0x17 (stored in the first column, the second column, and the third column of the stored identification information of the row where the task "2" is located, respectively), at this time, if a task with the name "2" and the ID of 0x18 is added, the task is updated to the row where the task "2" is located (i.e., the third row), and 1 is added to the original column number of the original row tail 0x17, i.e. the position of the fourth column. If a task with a task name of "3" and an ID of 0x19 is added, the task is updated to the position where the row number of the original column tail (task "2", third row) is added with 1, that is, the fourth row, and 0x19 is placed in the first column for storing the identification information. The above task names ("0", "1", and "2") and IDs are illustrative and do not represent only the names and IDs.
Specifically, the task name may be set in a code during programming, and the task ID is automatically generated when a task is created inside the operating system, that is, after the software is started, the system has the task name and the task ID. And after the registration is finished, the corresponding ID number is searched by comparing the registered task name with the started and existing task in the system, and is finally stored in the two-dimensional array, if the same task name exists in the two-dimensional array, the corresponding ID number is stored in the same row of the task name with the same name, if the same task name does not exist, the task name is updated to an empty row of the two-dimensional array for storing the task name, and meanwhile, the task ID is updated to the row where the task name exists.
In one embodiment, when it is monitored that a task to be monitored in a two-dimensional array is in an abnormal state, stopping monitoring the task to be monitored, and taking a device corresponding to the task to be monitored off-line, includes:
and acquiring that the task to be monitored is in an abnormal state.
And generating abnormal task information and recording the abnormal task information, wherein the abnormal task information comprises the task name, the identification information and the fault information of the task to be monitored in an abnormal state.
And stopping the dog feeding operation of the equipment corresponding to the task to be monitored according to the abnormal task information, and calibrating the equipment as fault equipment.
In this embodiment, the task to be monitored is acquired in an abnormal state, which may be acquiring indication information that the task to be monitored is in the abnormal state, abnormal task information is generated according to the indication information, the abnormal task information includes a task name in the abnormal state, task ID information, and fault information, and according to the abnormal task information, the device corresponding to the task to be monitored is stopped from performing dog feeding operation and is calibrated as a faulty device.
In one embodiment, acquiring that the task to be monitored is in an abnormal state includes:
acquiring alarm information; and confirming that the task to be monitored corresponding to the alarm information is in an abnormal state.
In one embodiment, the alert information includes: at least one of a task stop state, a task suspend state, a task block state, and a task delay state;
confirming that the task to be monitored corresponding to the alarm information is in an abnormal state, including:
and confirming that the task to be monitored corresponding to the alarm information containing the task stop state is in an abnormal state.
In the VxWorks embedded real-time operating system, "STOP" represents task STOP, "S" represents SUSPEND, namely task SUSPEND, "P" represents PEND, namely task block, "T" represents TaskDelay, namely task delay. Except the STOP state, other states are switchable, and when the task enters the STOP state, the task is indicated to be abnormally incapable of working. One or more alarm information may appear simultaneously, and as long as the STOP state is included in the alarm information, the task to be monitored is in an abnormal state.
In one embodiment, a task monitoring method, as shown in fig. 3, includes:
step 301, task list registration.
Step 302, the task dynamically initiates a delete refresh.
Step 303, start task monitoring.
Step 304, acquiring all task lists (including task id and task state) of the current system.
Step 305, mapping the mission critical information into a list.
Step 306, identify task status.
Step 307, identify exception task handling.
The system firstly registers a task list, a new task can be dynamically started according to application requirements, a newly added task name and an ID are dynamically added into the two-dimensional array by the dynamic adding and refreshing module of the task list, and the task list is synchronously monitored and processed by the task monitoring module, or part of unneeded monitored tasks are deleted from the two-dimensional array.
The task monitoring module mainly scans according to the registered task list and stores the task ID information of the task monitored by the current system into the two-dimensional array. The monitoring module periodically scans the state of the tasks registered by the current system, and executes the task exception processing module after identifying that the tasks are abnormal (STOP ', ' STOP + T ', ' STOP + S ', ' STOP + P + T ', ' STOP + S + T ' or ' STOP + P + S + T '), namely, the tasks are considered to be abnormal as long as the ' STOP ' state is included. The STOP + S indicates that the alarm information includes two states of task STOP and task suspension, and the STOP state indicates that the task is abnormal and cannot work normally.
The method adopts a task real-time monitoring and identifying algorithm based on a VxWorks embedded real-time operating system, has strong dynamic monitoring and identifying capability, a two-dimensional array can also be called as a task query matrix, the constructed task query matrix can accurately record task information, the state of the task query matrix can be periodically confirmed, and after the task to be monitored is identified to be abnormal, fault information and the current task abnormal sequence are recorded and reported to an application layer for recording for follow-up fault troubleshooting. The method periodically scans and processes the task query matrix in real time by establishing the task identification matrix, improves the system error early warning capability, and is suitable for application occasions sensitive to task state abnormity.
In one embodiment, the preset duration is 16.67ms, as shown in fig. 4, and includes:
step 401, acquiring all task lists of the current system, including task id and task state.
Step 402, mapping the mission critical information to form a list.
Step 403, scanning the key task list to determine whether an abnormal state exists. If yes, go to step 405, otherwise, go to step 404.
Step 404, delaying for 16.67ms, and then repeating step 403.
And 405, setting a dog feeding stop flag udWthDog to be 0, recording abnormal task information, and reporting a callback function to an application layer.
And step 406, driving the redundant board card to switch to a single machine state for the machine millisecond time, and reporting the local state of the application layer.
In this embodiment, the scanning period is set to 16.67ms, when the main device is abnormal, the standby machine can be switched in time, and certainly, the scanning period can also be set to a shorter time, but the designed scanning period is shorter, the calculation pressure of the system can be obviously increased, and the system response time and the processing speed can be considered when the 16.67ms period is used in the Vxworks system.
When the abnormal state is confirmed, the dog feeding stop flag is set, abnormal task information is recorded, the abnormal task information is reported to an application layer, equipment corresponding to a task to be monitored is offline, a redundant board card is driven to switch a standby machine into main equipment, if the abnormal state does not exist, scanning is repeated every 16.67ms, the state of the main equipment on duty is normal, the standby machine can be rapidly switched when the abnormal state exists, and the running stability of the whole system is guaranteed.
The task monitoring method based on the VxWorks embedded real-time operating system effectively supplements the problem of switching leak caused by part of abnormal tasks of the dual-computer hot standby to the sensitive task state of the long-term operating system, adopts a mechanism of dynamic loading and dynamic deleting of the task to be monitored, completes dynamic monitoring of the task to be monitored, acquires the state of the task to be monitored in real time, completes state interpretation and the like, starts or deletes the dynamic task, updates a monitoring list in real time, reports fault task information and the like, is particularly suitable for application scenes with real-time monitoring on the task state of the real-time operating system, and can recognize and process abnormal tasks in real time. The task abnormity can be identified in real time, and the operations such as fault isolation processing and the like are driven according to the task abnormity, so that the normal work of the dual-computer redundancy framework is ensured, and the unattended requirement of the equipment for long-term power-up stable operation is further ensured.
Based on the same concept, a second embodiment of the present application further provides a task monitoring device, as shown in fig. 5, including:
the registration module 501 is configured to obtain task information of a task to be monitored, and register the task to be monitored according to the task information to obtain registration information of the task to be monitored;
an updating module 502, configured to update registration information of a task to be monitored to a two-dimensional array;
the monitoring module 503 is configured to monitor the tasks to be monitored in the two-dimensional array with a preset time period as a period;
and the exception handling module 504 is configured to, when it is monitored that the task to be monitored in the two-dimensional array is in an abnormal state, stop monitoring the task to be monitored, record information of the abnormal task, and take an apparatus corresponding to the task to be monitored off-line.
By adopting the task monitoring device, the tasks to be monitored are registered through the registration module, the monitoring module only needs to monitor the state of the tasks to be monitored in the two-dimensional array, and does not need to monitor all the tasks in the system, so that the technical problem that part of tasks are abnormal and invalid and cause abnormal machine work in the long-term power-on process of the testing equipment is solved, and the reliability of the system in the long-term operation process is improved.
In one embodiment, the exception handling module 504 is configured to: acquiring that a task to be monitored is in an abnormal state; generating abnormal task information and recording the abnormal task information, wherein the abnormal task information comprises a task name, identification information and fault information of a task to be monitored in an abnormal state; and stopping the dog feeding operation of the equipment corresponding to the task to be monitored according to the abnormal task information, and calibrating the equipment as fault equipment.
As shown in fig. 6, the third embodiment of the present application provides an electronic device, which includes a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 complete mutual communication via the communication bus 114,
a memory 113 for storing a computer program;
in this embodiment, when the processor 111 is configured to execute the program stored in the memory 113, the method for monitoring a task provided in any one of the foregoing method embodiments includes:
acquiring task information of a task to be monitored, and registering the task to be monitored according to the task information to obtain registration information of the task to be monitored;
updating the registration information of the task to be monitored to a two-dimensional array;
monitoring the tasks to be monitored in the two-dimensional array by taking preset time as a period;
when the task to be monitored in the two-dimensional array is monitored to be in an abnormal state, stopping monitoring the task to be monitored, recording abnormal task information, and taking the equipment corresponding to the task to be monitored off line.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
A fourth embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the task monitoring method provided in any one of the method embodiments described above, including:
acquiring task information of a task to be monitored, and registering the task to be monitored according to the task information to obtain registration information of the task to be monitored;
updating the registration information of the task to be monitored to a two-dimensional array;
monitoring the tasks to be monitored in the two-dimensional array by taking preset time as a period;
when the task to be monitored in the two-dimensional array is monitored to be in an abnormal state, stopping monitoring the task to be monitored, recording abnormal task information, and taking the equipment corresponding to the task to be monitored off line.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A task monitoring method, comprising:
acquiring task information of a task to be monitored, and registering the task to be monitored according to the task information to obtain registration information of the task to be monitored;
updating the registration information of the task to be monitored to a two-dimensional array;
monitoring the tasks to be monitored in the two-dimensional array by taking preset time as a period;
when the task to be monitored in the two-dimensional array is monitored to be in an abnormal state, stopping monitoring the task to be monitored, recording abnormal task information, and taking the equipment corresponding to the task to be monitored off line.
2. The task monitoring method according to claim 1, wherein before the obtaining task information of a task to be monitored, the method further comprises:
acquiring initialization information;
and generating the two-dimensional array according to the initialization information.
3. The task monitoring method according to claim 1, wherein the acquiring task information of the task to be monitored, and registering the task to be monitored according to the task information to obtain registration information of the task to be monitored comprises:
acquiring the task name and identification information of the task to be monitored;
and registering the task to be monitored according to the task name, and taking the task name and the identification information as registration information of the task to be monitored.
4. The task monitoring method according to claim 3, wherein the updating the registration information of the task to be monitored to a two-dimensional array comprises:
judging whether the task name of the task to be monitored has the same-name task in the two-dimensional array;
if yes, updating the identification information of the task to be monitored to any empty column of the row where the task with the same name is located;
and if not, updating the task name of the task to be monitored to any empty row of the two-dimensional array, and updating the identification information to any empty column in any empty row.
5. The task monitoring method according to claim 1, wherein when it is monitored that the task to be monitored in the two-dimensional array is in an abnormal state, stopping monitoring the task to be monitored, recording abnormal task information, and taking an apparatus corresponding to the task to be monitored off-line, includes:
acquiring that the task to be monitored is in an abnormal state;
generating abnormal task information and recording the abnormal task information, wherein the abnormal information comprises a task name, identification information and fault information of the task to be monitored in an abnormal state;
and stopping feeding the dog to the equipment corresponding to the task to be monitored according to the abnormal task information, and calibrating the equipment as fault equipment.
6. The task monitoring method according to claim 5, wherein the acquiring that the task to be monitored is in an abnormal state comprises:
acquiring alarm information;
and confirming that the task to be monitored corresponding to the alarm information is in an abnormal state.
7. The task monitoring method of claim 6, wherein the alert information comprises: at least one of a task stop state, a task suspend state, a task block state, and a task delay state;
and confirming that the task to be monitored corresponding to the alarm information is in an abnormal state, including:
and confirming that the task to be monitored corresponding to the alarm information containing the task stop state is in an abnormal state.
8. The task monitoring method according to claim 1, wherein the preset duration is 16.67 ms.
9. A task monitoring device, comprising:
the registration module is used for acquiring task information of a task to be monitored, and registering the task to be monitored according to the task information to obtain registration information of the task to be monitored;
the updating module is used for updating the registration information of the task to be monitored to a two-dimensional array;
the monitoring module is used for monitoring the tasks to be monitored in the two-dimensional array by taking preset time as a period;
and the exception handling module is used for stopping monitoring the task to be monitored when the task to be monitored in the two-dimensional array is monitored to be in an abnormal state, recording abnormal task information and taking the equipment corresponding to the task to be monitored off line.
10. The task monitoring device of claim 9, wherein the exception handling module is configured to: acquiring that the task to be monitored is in an abnormal state; generating abnormal task information and recording the abnormal task information, wherein the abnormal task information comprises a task name, identification information and fault information of the task to be monitored in an abnormal state; and stopping feeding the dog to the equipment corresponding to the task to be monitored according to the abnormal task information, and calibrating the equipment as fault equipment.
CN202111545064.6A 2021-12-16 2021-12-16 Task monitoring method and device Pending CN114265741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111545064.6A CN114265741A (en) 2021-12-16 2021-12-16 Task monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111545064.6A CN114265741A (en) 2021-12-16 2021-12-16 Task monitoring method and device

Publications (1)

Publication Number Publication Date
CN114265741A true CN114265741A (en) 2022-04-01

Family

ID=80827573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111545064.6A Pending CN114265741A (en) 2021-12-16 2021-12-16 Task monitoring method and device

Country Status (1)

Country Link
CN (1) CN114265741A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117614880A (en) * 2024-01-22 2024-02-27 广东广宇科技发展有限公司 Communication line real-time monitoring method based on dynamic array

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117614880A (en) * 2024-01-22 2024-02-27 广东广宇科技发展有限公司 Communication line real-time monitoring method based on dynamic array
CN117614880B (en) * 2024-01-22 2024-04-19 广东广宇科技发展有限公司 Communication line real-time monitoring method based on dynamic array

Similar Documents

Publication Publication Date Title
US20130311836A1 (en) System, method, apparatus, and computer program product for providing mobile device support services
CN114265741A (en) Task monitoring method and device
CN112988439A (en) Server fault discovery method and device, electronic equipment and storage medium
CN110618853B (en) Detection method, device and equipment for zombie container
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
CN111966461A (en) Virtual machine cluster node guarding method, device, equipment and storage medium
CN114500249B (en) Root cause positioning method and device
CN110968456B (en) Method and device for processing fault disk in distributed storage system
CN116719657A (en) Firmware fault log generation method, device, server and readable medium
CN113778763B (en) Intelligent switching method and system for three-way interface service faults
CN113205485B (en) Elevator fault self-diagnosis image display method, device, computer and storage medium
CN107273291B (en) Processor debugging method and system
JP2000056823A (en) Data monitoring system
JP2021006970A (en) Information processing device, anomaly detection method and program
CN114356617B (en) Error injection testing method, device, system and computing equipment
CN114253846B (en) Automatic test abnormality positioning method, device, equipment and readable storage medium
CN112905195B (en) Touch screen drive configuration method, device, computer equipment and storage medium
CN115484267A (en) Multi-cluster deployment processing method and device, electronic equipment and storage medium
CN114647546A (en) Case abnormity processing method and device, electronic equipment and storage medium
CN118550758A (en) Fault processing method and computing device
CN117407282A (en) Application program warning method, device, equipment, storage medium and program product
CN115858224A (en) Method, apparatus, device, medium and product for triggering watchdog reset
CN118312567A (en) Database data synchronization method, equipment, medium and product
CN114625596A (en) Database state service method and device
CN116107821A (en) Method, device, equipment and medium for testing switching on and switching off of whole 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