Asynchronous inspection method, device and equipment

By using an asynchronous inspection method and a thread pool to execute inspection tasks in parallel, the problems of low resource utilization and long task execution time in the traditional serial inspection method are solved, achieving high inspection efficiency and improved system stability.

CN121833281APending Publication Date: 2026-04-10JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
JINAN INSPUR DATA TECH CO LTD
Filing Date
2025-12-31
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Traditional serial inspection methods result in low system resource utilization and long task execution time, making it difficult to meet the inspection needs of large-scale systems and affecting the system's real-time performance and stability.

Method used

An asynchronous inspection method is adopted, which utilizes multiple threads in a preset thread pool to execute inspection tasks in parallel and sorts them according to task priority to achieve asynchronous concurrent inspection.

Benefits of technology

It reduced inspection time, improved inspection efficiency, and enhanced the real-time performance and stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121833281A_ABST
    Figure CN121833281A_ABST
Patent Text Reader

Abstract

The invention discloses an asynchronous inspection method, device and equipment, and relates to the technical field of cloud computing, and the method comprises the steps: obtaining an inspection task request sent by client equipment; generating an inspection task corresponding to the inspection task request; idle threads in a preset thread pool are utilized to execute respective corresponding inspection tasks, and inspection results of the inspection tasks are obtained and fed back to the client device; wherein the number of threads in the preset thread pool is greater than or equal to 2; according to the invention, through the setting of the preset thread pool, the idle threads in the preset thread pool can be utilized to execute the corresponding inspection tasks and obtain and feed back the inspection results of the inspection tasks to the client device, so that asynchronous concurrent inspection is realized, the inspection time consumption can be reduced, the inspection efficiency can be improved, and the real-time performance and stability of the system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cloud computing technology, and in particular to an asynchronous inspection method, apparatus, and equipment. Background Technology

[0002] In related technologies, traditional inspection solutions mainly adopt a serial inspection method, that is, executing each inspection task sequentially through a script. In recent years, with the rapid development of information technology, enterprises have increasingly higher requirements for the reliability, stability, and speed of systems. Due to its sequential execution characteristic, the traditional serial inspection method has the following problems: First, the traditional serial inspection method leads to low system resource utilization, as serial tasks only occupy a single CPU core and limited I / O bandwidth, resulting in wasted computing power; second, the task execution time is long, affecting the real-time performance of the system; third, it is difficult to meet the inspection needs of large-scale systems.

[0003] With the rise of technologies such as cloud computing and the Internet of Things, the complexity and scale of systems are constantly increasing, and traditional inspection methods can no longer meet current needs. Therefore, how to reduce inspection time, improve inspection efficiency, and enhance the real-time performance and stability of the system are urgent problems to be solved. Summary of the Invention

[0004] The purpose of this invention is to provide an asynchronous inspection method, apparatus, and equipment to reduce inspection time, improve inspection efficiency, and enhance the real-time performance and stability of the system, which is an urgent problem to be solved today.

[0005] To solve the above-mentioned technical problems, the present invention provides an asynchronous inspection method, comprising:

[0006] Obtain the inspection task request sent by the client device;

[0007] Generate the inspection task corresponding to the inspection task request;

[0008] Using idle threads in a preset thread pool, each thread executes its corresponding inspection task, obtains and reports the inspection results of each inspection task to the client device; wherein the number of threads in the preset thread pool is greater than or equal to 2.

[0009] On the other hand, after generating the inspection task corresponding to the inspection task request, the method further includes:

[0010] Each of the inspection tasks is added to the task queue to be executed, and the inspection tasks in the task queue are sorted according to the priority information of each inspection task.

[0011] Correspondingly, the step of utilizing idle threads in a preset thread pool to execute their respective inspection tasks, obtaining and feeding back the inspection results of each inspection task to the client device includes:

[0012] Using idle threads in the preset thread pool, the inspection tasks in the task queue are executed sequentially according to their sorting order, and the inspection results of each inspection task are obtained and fed back to the client device.

[0013] On the other hand, adding the inspection task to the task queue and sorting the inspection tasks in the task queue according to their priority information includes:

[0014] Add each of the aforementioned inspection tasks to the queue of tasks to be executed;

[0015] Based on the priority information of each inspection task in the queue of tasks to be executed, the inspection tasks in the queue of tasks to be executed are sorted; wherein, if the priority information of the first inspection task in the queue of tasks to be executed is higher than the priority information of the second inspection task, then the sorting position of the first inspection task is before the sorting position of the second inspection task, and the first inspection task and the second inspection task are any two inspection tasks in the queue of tasks to be executed.

[0016] On the other hand, the step of utilizing idle threads in the preset thread pool to sequentially execute the inspection tasks in the task queue according to their sorting order, and obtaining and feeding back the inspection results of each inspection task to the client device, includes:

[0017] Using the currently idle thread, execute the target inspection task in the task queue to be executed, obtain and report the inspection result of the target inspection task to the client device; wherein, the currently idle thread is any idle thread in the preset thread pool, and the target inspection task is the first unexecuted inspection task in the task queue to be executed.

[0018] On the other hand, the step of utilizing the currently idle thread to execute the target inspection task in the task queue, and obtaining and feeding back the inspection result of the target inspection task to the client device, includes:

[0019] Using the currently idle thread, lock the target inspection task in the queue of tasks to be executed; wherein, the target inspection task is the first unlocked inspection task in the queue of tasks to be executed.

[0020] Utilize the currently idle thread to execute the target inspection task and obtain the inspection results of the target inspection task;

[0021] The target inspection task is removed from the queue of tasks to be executed, and the inspection result of the target inspection task is fed back to the client device.

[0022] On the other hand, the method also includes:

[0023] Initialize the inspection database based on the inspection request sent by the client device;

[0024] Correspondingly, after utilizing idle threads in a preset thread pool to execute their respective inspection tasks, obtaining and feeding back the inspection results of each inspection task to the client device, the process further includes:

[0025] The inspection results of each of the aforementioned inspection tasks are stored in the inspection database;

[0026] Based on the inspection report request sent by the client device, and using the inspection results in the inspection database, an inspection report corresponding to the inspection report request is generated and sent back to the client device.

[0027] On the other hand, after generating the inspection task corresponding to the inspection task request, the method further includes:

[0028] Send the task identifier of the inspection task to the client device;

[0029] The target deletion task is deleted according to the task deletion request sent by the client device; wherein, the target deletion task is the inspection task corresponding to the task identifier in the task deletion request.

[0030] On the other hand, the method also includes:

[0031] Based on the task query request sent by the client device, the task progress information of the target query task is fed back to the client device; wherein, the target query task is the inspection task corresponding to the task identifier in the task query request.

[0032] The present invention also provides an asynchronous inspection device, comprising:

[0033] The acquisition module is used to acquire inspection task requests sent by client devices;

[0034] The generation module is used to generate the inspection task corresponding to the inspection task request;

[0035] The execution module is used to utilize idle threads in a preset thread pool to execute their respective inspection tasks, obtain and report the inspection results of each inspection task to the client device; wherein the number of threads in the preset thread pool is greater than or equal to 2.

[0036] In addition, the present invention also provides an asynchronous inspection device, comprising:

[0037] Memory, used to store computer programs;

[0038] A processor is used to implement the steps of the asynchronous inspection method as described above when executing the computer program.

[0039] The present invention provides an asynchronous inspection method, comprising: obtaining an inspection task request sent by a client device; generating an inspection task corresponding to the inspection task request; using idle threads in a preset thread pool to execute their respective inspection tasks, obtaining and feeding back the inspection results of each inspection task to the client device; wherein the number of threads in the preset thread pool is greater than or equal to 2.

[0040] As can be seen, by setting up a preset thread pool, this invention can utilize idle threads in the preset thread pool to execute their respective inspection tasks, obtain and feed back the inspection results of each inspection task to the client device, thus achieving asynchronous concurrent inspection. This reduces inspection time, improves inspection efficiency, and enhances the real-time performance and stability of the system. Furthermore, this invention also provides an asynchronous inspection device and equipment, which also possesses the aforementioned beneficial effects. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0042] Figure 1 A flowchart of an asynchronous inspection method provided in an embodiment of the present invention;

[0043] Figure 2 This is a schematic diagram of the architecture of another asynchronous inspection method provided in an embodiment of the present invention;

[0044] Figure 3 This is a structural block diagram of an asynchronous inspection device provided in an embodiment of the present invention;

[0045] Figure 4 This is a schematic diagram of the structure of an asynchronous inspection device provided in an embodiment of the present invention. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0047] Please refer to Figure 1 , Figure 1 A flowchart illustrating an asynchronous inspection method provided in an embodiment of the present invention. The method may include:

[0048] Step 101: Obtain the inspection task request sent by the client device.

[0049] In this embodiment, the client device can be a terminal device running a client program, such as a computer or mobile phone. The asynchronous inspection method provided in this embodiment can be applied to server devices, such as servers, for example, servers of a cloud computing platform.

[0050] Correspondingly, the inspection task request in this step can be a request to execute a corresponding inspection task, such as a user sending an inspection task request to a server device through a client device to trigger the server device to create and execute the corresponding inspection task. For example, in this embodiment, the inspection task request can be a request sent to the server of a cloud computing platform to execute inspection tasks for resources such as storage resources, network resources, and computing resources.

[0051] Accordingly, the specific content of the inspection task request in this step, that is, the relevant information of the inspection task to be executed by the server device, can be set by the designer according to the practical scenario and user needs. For example, the inspection task request may include task type, such as storage resources, network resources and computing resources; it may also include task parameters, such as the parameters of computing resources that need to be inspected (such as CPU utilization); the inspection task request may also include task priority to facilitate the sorting of the execution of inspection tasks. This embodiment does not impose any restrictions on this.

[0052] It should be noted that the specific method by which the server device obtains the inspection task requests sent by the client device in this step can be set by the designer according to the practical scenario and user needs. For example, the server device can obtain one or more inspection task requests sent by a certain client device; in other embodiments, the server device can obtain the respective inspection task requests sent by each client device, and accordingly, the inspection results of each inspection task can be fed back to the corresponding client device in step 103. This embodiment does not impose any restrictions on this.

[0053] Step 102: Generate the inspection task corresponding to the inspection task request.

[0054] In this step, the server-side device can create and generate corresponding inspection tasks based on the received inspection task requests, such as... Figure 2 Step 2 in the process.

[0055] Correspondingly, in this embodiment, after generating the inspection task corresponding to the inspection task request, the task identifier (such as code id) of the inspection task can also be sent to the client device, so that the client device can manage the inspection tasks in the server device (such as deletion and query) based on the task identifier of the inspection task, thereby improving the maintainability and scalability of the system.

[0056] Accordingly, the method provided in this embodiment may also include a process for deleting inspection tasks, such as deleting the target deletion task according to the task deletion request sent by the client device, such as deleting the target deletion task in the queue of tasks to be executed, so that the inspection supports the cancellation function; wherein, the target deletion task is the inspection task corresponding to the task identifier in the task deletion request.

[0057] Furthermore, the method provided in this embodiment may also include a query process for inspection tasks, such as feeding back task progress information (e.g., whether it is currently being executed, its sorting position in the queue of tasks to be executed, or its estimated execution time) to the client device based on a task query request sent by the client device. Figure 2 Step 4 in the process allows the client device to obtain the task execution progress through the task identifier (such as task id) during task execution; where the target query task is the inspection task corresponding to the task identifier in the task query request.

[0058] Step 103: Utilize the idle threads in the preset thread pool to execute their respective inspection tasks, obtain and report the inspection results of each inspection task to the client device; wherein, the number of threads in the preset thread pool is greater than or equal to 2.

[0059] It is understood that the preset thread pool in this embodiment can be a pre-set thread pool (such as...). Figure 2The task execution thread pool (in the example) can have at least two threads configured to execute inspection tasks. In this embodiment, idle threads from the thread pool can be used to execute their respective inspection tasks, achieving asynchronous concurrent execution of inspection tasks. This introduces an asynchronous callback mechanism, allowing the client device to immediately release its inspection task request after submission and perform other operations without waiting for the inspection results. Inspection results can be obtained asynchronously via the task identifier. Normally, each inspection task corresponds to one thread; that is, one inspection task is executed by one idle thread. Multiple idle threads can asynchronously execute their respective inspection tasks in parallel.

[0060] Correspondingly, in this embodiment, a queue of tasks to be executed (such as...) can be used. Figure 2 The inspection task queue stores the inspection tasks to be executed. The server device can utilize idle threads from a preset thread pool to execute the inspection tasks in the queue according to their sorting order, and obtain and report the inspection results (such as actual CPU utilization) of each task to the client device. Correspondingly, in this embodiment, the execution order of inspection tasks can be adjusted by sorting the inspection tasks in the queue. For example, after generating the inspection task corresponding to the inspection task request in step 102, the process can further include: adding each inspection task to the queue and sorting the inspection tasks in the queue according to their priority information, so that the execution order of the inspection tasks can be associated with their priority information, such as allowing inspection tasks with higher priority to be executed first.

[0061] In this embodiment, the specific method of obtaining the priority information of each inspection task is not limited. For example, the priority information can be the information in the inspection task request (such as the task priority mentioned above); it can also be the information automatically generated by the server device. For example, when generating an inspection task, the server device can generate the priority information of the inspection task according to the task type and / or task parameters in the inspection task request. For example, according to the task parameters in the inspection task request, the priority information of the inspection task can be generated according to the preset correspondence between task parameters and priorities.

[0062] Correspondingly, the specific method for adding each inspection task to the pending task queue and sorting the inspection tasks in the pending task queue according to their priority information can be set by the designer according to the practical scenario and user needs. For example, each inspection task can be added to the pending task queue; and the inspection tasks in the pending task queue can be sorted according to their priority information. If the priority information of the first inspection task in the pending task queue is higher than that of the second inspection task, then the first inspection task will be sorted before the second inspection task. The first and second inspection tasks can be any two inspection tasks in the pending task queue. In other words, inspection tasks can be added to the pending task queue first, and then the pending task queue can be used to automatically sort the inspection tasks in the queue according to their priority information, so that high-priority inspection tasks will be preferentially acquired by idle threads in the preset thread pool. In other embodiments, each inspection task can also be sorted according to its priority information; and the sorted inspection tasks can be added to the pending task queue sequentially. In other words, the inspection tasks in this batch can be sorted first, and then the sorted inspection tasks in this batch can be added to the task queue to be executed, so that the inspection tasks with higher priority in the same batch will be obtained by idle threads in the preset thread pool first.

[0063] Correspondingly, the specific process of utilizing idle threads in the preset thread pool to execute inspection tasks sequentially according to their sorting order in the task queue, and obtaining and reporting the inspection results of each inspection task to the client device, can be customized by the designer. For example, a currently idle thread can be used to execute a target inspection task in the task queue, obtain and report the target inspection task's inspection result to the client device. Here, the currently idle thread is any idle thread in the preset thread pool, and the target inspection task is the first unexecuted inspection task in the task queue. For instance, when there are idle threads in the preset thread pool, an inspection task (i.e., the target inspection task) will be automatically obtained from the task queue and executed asynchronously by the idle thread.

[0064] Furthermore, in this embodiment, a locking mechanism can be introduced when an idle thread executes an inspection task, so that an inspection task can only be acquired and executed by one thread. For example, the process of using the current idle thread to execute the target inspection task in the task queue, and obtaining and feeding back the inspection result of the target inspection task to the client device can include: using the current idle thread to lock the target inspection task in the task queue; wherein, the target inspection task is the first unlocked inspection task in the task queue; using the current idle thread to execute the target inspection task and obtain the inspection result of the target inspection task; removing the target inspection task from the task queue and feeding back the inspection result of the target inspection task to the client device.

[0065] Furthermore, the method provided in this embodiment may also include a feedback process for inspection reports. For example, the server device can initialize the inspection database based on the inspection request sent by the client device. Correspondingly, after step 103 uses idle threads in a preset thread pool to execute their respective inspection tasks, obtains and feeds back the inspection results of each inspection task to the client device, it may further include: storing the inspection results of each inspection task in the inspection database; and generating and feeding back the inspection report corresponding to the inspection report request to the client device based on the inspection results in the inspection database according to the inspection report request sent by the client device. In other words, the client device can submit an inspection request at the beginning to initialize the inspection database for this operation. Figure 2 The process is described in step 1; afterwards, the inspection results are stored in the inspection database. The client device can submit an inspection report request, and based on the inspection results in the database, a corresponding inspection report is generated, such as... Figure 2 Step 5 of the process.

[0066] Correspondingly, the inspection request sent by the aforementioned client device can be a separate request sent by the client device before step 101 to initialize the inspection database, or it can be the first inspection task request sent by the new client device in step 101. This embodiment does not impose any restrictions on this.

[0067] In this embodiment, the present invention, through the setting of a preset thread pool, can utilize the idle threads in the preset thread pool to execute their respective inspection tasks, obtain and feed back the inspection results of each inspection task to the client device, thereby realizing asynchronous concurrent inspection, reducing inspection time, improving inspection efficiency, and enhancing the real-time performance and stability of the system.

[0068] Corresponding to the above method embodiments, this invention also provides an asynchronous inspection device. The asynchronous inspection device described below and the asynchronous inspection method described above can be referred to each other.

[0069] Please refer to Figure 3 , Figure 3 This is a structural block diagram of an asynchronous inspection device provided in an embodiment of the present invention. The device may include:

[0070] The acquisition module 10 is used to acquire inspection task requests sent by the client device;

[0071] Generation module 20 is used to generate inspection tasks corresponding to inspection task requests;

[0072] The execution module 30 is used to utilize idle threads in a preset thread pool to execute their respective inspection tasks, obtain and report the inspection results of each inspection task to the client device; wherein, the number of threads in the preset thread pool is greater than or equal to 2.

[0073] In some embodiments, the device may further include:

[0074] The sorting module is used to add each inspection task to the queue of tasks to be executed, and sort the inspection tasks in the queue of tasks to be executed according to the priority information of each inspection task.

[0075] Correspondingly, the execution module 30 can be specifically used to utilize idle threads in the preset thread pool to execute the inspection tasks in the task queue in sequence according to the sorting order of the inspection tasks in the task queue, and obtain and report the inspection results of each inspection task to the client device.

[0076] In some embodiments, the sorting module may include:

[0077] Add a submodule to add each inspection task to the task queue to be executed;

[0078] The sorting submodule is used to sort the inspection tasks in the task queue according to the priority information of each inspection task in the task queue to be executed; wherein, if the priority information of the first inspection task in the task queue to be executed is higher than the priority information of the second inspection task, then the sorting position of the first inspection task is before the sorting position of the second inspection task, and the first inspection task and the second inspection task are any two inspection tasks in the task queue to be executed.

[0079] In some embodiments, the execution module 30 may be specifically used to use the currently idle thread to execute the target inspection task in the task queue to be executed, and to obtain and report the inspection result of the target inspection task to the client device; wherein, the currently idle thread is any idle thread in the preset thread pool, and the target inspection task is the unexecuted inspection task at the top of the sorted position in the task queue to be executed.

[0080] In some embodiments, the execution module 30 may include:

[0081] The locking submodule is used to lock the target inspection task in the queue of tasks to be executed using the currently idle thread; the target inspection task is the first unlocked inspection task in the queue of tasks to be executed.

[0082] The execution submodule is used to execute the target inspection task using the currently idle thread and obtain the inspection results of the target inspection task.

[0083] The feedback submodule is used to remove the target inspection task from the task queue and to send the inspection results of the target inspection task back to the client device.

[0084] In some embodiments, the device further includes:

[0085] The initialization module is used to initialize the inspection database based on the inspection request sent by the client device.

[0086] Correspondingly, the device may also include:

[0087] The storage module is used to store the inspection results of each inspection task into the inspection database;

[0088] The reporting module is used to generate and send the corresponding inspection report to the client device based on the inspection report request sent by the client device and the inspection results in the inspection database.

[0089] In some embodiments, the device may further include:

[0090] The identification feedback module is used to send the task identification of the inspection task to the client device;

[0091] The task deletion module is used to delete the target task according to the task deletion request sent by the client device; the target task is the inspection task corresponding to the task identifier in the task deletion request.

[0092] In some embodiments, the device may further include:

[0093] The task query module is used to provide the client device with the task progress information of the target query task based on the task query request sent by the client device; the target query task is the inspection task corresponding to the task identifier in the task query request.

[0094] In this embodiment, the present invention enables asynchronous concurrent inspection by setting a preset thread pool. The execution module 30 can utilize idle threads in the preset thread pool to execute their respective inspection tasks, obtain and feed back the inspection results of each inspection task to the client device, thereby achieving asynchronous concurrent inspection, reducing inspection time, improving inspection efficiency, and enhancing the real-time performance and stability of the system.

[0095] Corresponding to the above method embodiments, this invention also provides an asynchronous inspection device. The asynchronous inspection device described below and the asynchronous inspection method described above can be referred to each other.

[0096] Please refer to Figure 4 , Figure 4 This is a schematic diagram of an asynchronous inspection device provided in an embodiment of the present invention. The device may include:

[0097] Memory D1 is used to store computer programs;

[0098] Processor D2 is used to implement the steps of the asynchronous inspection method provided in the above method embodiments when executing a computer program.

[0099] In this embodiment, the asynchronous inspection device can be specifically a server-side device, such as a cloud computing platform server.

[0100] Corresponding to the above method embodiments, this invention also provides a computer program product. The computer program product described below can be referred to in correspondence with the asynchronous inspection method described above.

[0101] A computer program product includes a computer program / instructions that, when executed by a processor, implement the steps of the asynchronous inspection method provided in the above-described method embodiments.

[0102] Corresponding to the above method embodiments, this invention also provides a computer-readable storage medium. The computer-readable storage medium described below can be referred to in conjunction with the asynchronous inspection method described above.

[0103] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the asynchronous inspection method provided in the above-described method embodiments.

[0104] The computer-readable storage medium can specifically be a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or any other readable storage medium capable of storing program code.

[0105] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatuses, devices, computer-readable storage media, and computer program products disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.

[0106] The asynchronous inspection method, apparatus, and device provided by this invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this invention. It should be noted that those skilled in the art can make various improvements and modifications to this invention without departing from its principles, and these improvements and modifications also fall within the protection scope of this invention.

Claims

1. An asynchronous inspection method, characterized in that, include: Obtain the inspection task request sent by the client device; Generate the inspection task corresponding to the inspection task request; Using idle threads in a preset thread pool, each thread executes its corresponding inspection task, obtains and reports the inspection results of each inspection task to the client device; wherein the number of threads in the preset thread pool is greater than or equal to 2.

2. The asynchronous inspection method according to claim 1, characterized in that, After generating the inspection task corresponding to the inspection task request, the process further includes: Each of the inspection tasks is added to the task queue to be executed, and the inspection tasks in the task queue are sorted according to the priority information of each inspection task. Correspondingly, the step of utilizing idle threads in a preset thread pool to execute their respective inspection tasks, obtaining and feeding back the inspection results of each inspection task to the client device includes: Using idle threads in the preset thread pool, the inspection tasks in the task queue are executed sequentially according to their sorting order, and the inspection results of each inspection task are obtained and fed back to the client device.

3. The asynchronous inspection method according to claim 2, characterized in that, The step of adding the inspection task to the task queue and sorting the inspection tasks in the task queue according to their priority information includes: Add each of the aforementioned inspection tasks to the queue of tasks to be executed; Based on the priority information of each inspection task in the queue of tasks to be executed, the inspection tasks in the queue of tasks to be executed are sorted; wherein, if the priority information of the first inspection task in the queue of tasks to be executed is higher than the priority information of the second inspection task, then the sorting position of the first inspection task is before the sorting position of the second inspection task, and the first inspection task and the second inspection task are any two inspection tasks in the queue of tasks to be executed.

4. The asynchronous inspection method according to claim 2, characterized in that, The step of utilizing idle threads in the preset thread pool to sequentially execute inspection tasks in the task queue according to their sorting order, and obtaining and feeding back the inspection results of each inspection task to the client device includes: Using the currently idle thread, execute the target inspection task in the task queue to be executed, obtain and report the inspection result of the target inspection task to the client device; wherein, the currently idle thread is any idle thread in the preset thread pool, and the target inspection task is the first unexecuted inspection task in the task queue to be executed.

5. The asynchronous inspection method according to claim 4, characterized in that, The step of utilizing the currently idle thread to execute the target inspection task in the task queue, and obtaining and feeding back the inspection result of the target inspection task to the client device includes: Using the currently idle thread, lock the target inspection task in the queue of tasks to be executed; wherein, the target inspection task is the first unlocked inspection task in the queue of tasks to be executed. Utilize the currently idle thread to execute the target inspection task and obtain the inspection results of the target inspection task; The target inspection task is removed from the queue of tasks to be executed, and the inspection result of the target inspection task is fed back to the client device.

6. The asynchronous inspection method according to claim 1, characterized in that, Also includes: Initialize the inspection database based on the inspection request sent by the client device; Correspondingly, after utilizing idle threads in a preset thread pool to execute their respective inspection tasks, obtaining and feeding back the inspection results of each inspection task to the client device, the process further includes: The inspection results of each of the aforementioned inspection tasks are stored in the inspection database; Based on the inspection report request sent by the client device, and using the inspection results in the inspection database, an inspection report corresponding to the inspection report request is generated and sent back to the client device.

7. The asynchronous inspection method according to any one of claims 1 to 6, characterized in that, After generating the inspection task corresponding to the inspection task request, the process further includes: Send the task identifier of the inspection task to the client device; The target deletion task is deleted according to the task deletion request sent by the client device; wherein, the target deletion task is the inspection task corresponding to the task identifier in the task deletion request.

8. The asynchronous inspection method according to claim 7, characterized in that, Also includes: Based on the task query request sent by the client device, the task progress information of the target query task is fed back to the client device; wherein, the target query task is the inspection task corresponding to the task identifier in the task query request.

9. An asynchronous inspection device, characterized in that, include: The acquisition module is used to acquire inspection task requests sent by client devices; The generation module is used to generate the inspection task corresponding to the inspection task request; The execution module is used to utilize idle threads in a preset thread pool to execute their respective inspection tasks, obtain and report the inspection results of each inspection task to the client device; wherein the number of threads in the preset thread pool is greater than or equal to 2.

10. An asynchronous inspection device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the asynchronous inspection method as described in any one of claims 1 to 8 when executing the computer program.