Customer service quality inspection method, device, electronic device and storage medium
By identifying the master node in the customer service quality inspection system and allocating quality inspection tasks according to the node load, the problem of uneven resource utilization in existing technologies is solved, thereby improving quality inspection efficiency and balancing node load.
Patent Information
- Application Number
- CN202210156503.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-21
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2042-02-21
AI Technical Summary
The existing customer service quality inspection method fails to make full use of resources, resulting in low quality inspection efficiency, with some nodes overloaded while others are idle, making it impossible to balance the load.
By identifying the primary node, obtaining load information from multiple secondary nodes, and allocating quality inspection tasks based on load conditions, the node load is balanced, thereby improving resource utilization.
This enabled full utilization of customer service quality inspection resources, improved inspection efficiency, balanced node load, and enhanced service quality.
Smart Images

Figure CN114461402B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of quality inspection technologies, and more particularly, to a customer service quality inspection method, apparatus, electronic device, and storage medium. Background Art
[0002] To solve various problems of customers, customer service is often provided to customers for consultation, answering questions, etc. The service quality of customer service has a great impact on the image of shopping malls or stores, the conversion rate, the repeat purchase rate, etc. To ensure the quality of customer service, it is necessary to inspect the voice, text, and other messages of customer service during work. Currently, the methods for inspecting customer service cannot make full use of resources, resulting in low efficiency of customer service quality inspection. Summary of the Invention
[0003] In view of the above problems, this application proposes a customer service quality inspection method, apparatus, electronic device, and storage medium, which can solve the above problems.
[0004] In a first aspect, an embodiment of this application provides a customer service quality inspection method, which is applied to a first node, and the first node is connected to a plurality of second nodes, including: when the first node is determined to be the master node, receiving a creation request for a quality inspection task, where the creation request is forwarded by a second node that receives the creation request among the plurality of second nodes determined to be slave nodes; in response to the creation request, obtaining the respective load information of the plurality of second nodes; based on the respective load information of the plurality of second nodes, determining a target second node from the plurality of second nodes; and sending the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request.
[0005] Optionally, the load information includes a load rate, and based on the load information, determining a target second node from the plurality of second nodes includes: determining the target second node from the plurality of second nodes in ascending order of the load rate.
[0006] Optionally, receiving a creation request for a quality inspection task includes: the first node sending its address information to the plurality of second nodes respectively; and receiving the creation request for the quality inspection task forwarded by the second node that receives the creation request based on the address information of the first node.
[0007] Optionally, sending the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request includes: receiving the respective address information sent by the plurality of second nodes; and based on the address information of the target second node, sending the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request.
[0008] Optionally, after sending the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request, the method further includes: monitoring the current quality inspection task status of the target second node; and updating the recorded quality inspection task status of the target second node based on the current quality inspection task status of the target second node.
[0009] Optionally, after sending the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request, the method further includes: receiving a control request sent by the target second node; and controlling the progress of the target second node in executing the quality inspection task based on the control request.
[0010] Optionally, the method further includes: obtaining the duration for which the first node is determined to be the master node; and when the duration reaches a preset duration, re-determining the master node from the first node and the multiple second nodes.
[0011] In a second aspect, an embodiment of the present application provides a customer service quality inspection device applied to a first node, where the first node is connected to multiple second nodes, and includes: a creation request acquisition module, configured to receive a creation request for a quality inspection task when the first node is determined to be the master node, where the creation request is forwarded by a second node that receives the creation request among the multiple second nodes determined to be slave nodes; a load information acquisition module, configured to obtain the respective load information of the multiple second nodes in response to the creation request; a target second node determination module, configured to determine a target second node from the multiple second nodes based on the respective load information of the multiple second nodes; and a quality inspection task execution module, configured to send the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; and one or more application programs, where the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to execute the above method.
[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where program code is stored in the computer-readable storage medium, and the program code can be called by a processor to execute the above method.
[0014] The customer service quality inspection method, device, electronic device, and storage medium provided by this application, when the first node is determined to be the master node, receive a creation request for a quality inspection task. In response to the creation request, obtain the load information of each of multiple second nodes. Based on the load information of each of the multiple second nodes, determine a target second node from the multiple second nodes, and send the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request. By having the master node allocate quality inspection tasks to the second nodes according to the load conditions of the multiple second nodes, the load of the multiple second nodes can be balanced, thereby realizing the quality inspection of customer service, making full use of resources, and improving the efficiency of customer service quality inspection.
[0015] These aspects or other aspects of this application will be more clearly understood in the following description of the embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of this application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0017] Figure 1 FIG. 1 shows a schematic diagram of an application environment of a customer service quality inspection method provided by an embodiment of this application;
[0018] Figure 2 FIG. 2 shows a flowchart of a customer service quality inspection method provided by an embodiment of this application;
[0019] Figure 3 FIG. 3 shows a flowchart of a customer service quality inspection method provided by an embodiment of this application;
[0020] Figure 4 FIG. 4 shows a flowchart of a customer service quality inspection method provided by an embodiment of this application;
[0021] Figure 5 FIG. 5 shows a flowchart of a customer service quality inspection method provided by an embodiment of this application;
[0022] Figure 6 FIG. 6 shows a block diagram of a customer service quality inspection device provided by an embodiment of this application;
[0023] Figure 7 FIG. 7 shows a block diagram of an electronic device for executing the customer service quality inspection method according to an embodiment of this application;
[0024] Figure 8 FIG. 8 shows a storage unit for storing or carrying program codes for implementing the customer service quality inspection method according to an embodiment of this application. Detailed implementation manners
[0025] The following details the implementation manners of the present application. Examples of the implementation manners are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The implementation manners described below with reference to the accompanying drawings are exemplary only for explaining the present application and should not be construed as a limitation of the present application.
[0026] To solve various problems of customers, customer service usually provides services such as consultation and answering questions for customers. The service quality of customer service has a great impact on the image of shopping malls or stores, the conversion rate, the repeat purchase rate, etc. To ensure the quality of customer service, it is necessary to conduct quality inspections on the voice, text and other messages of customer service during work. The customer service quality inspection system can be used to conduct quality inspections on customer service. The customer service quality inspection system is usually deployed in multiple nodes, and a service runs on each node. At the same time, the customer service quality inspection system runs a large number of offline quality inspection tasks. In the prior art, after the service of each machine receives a request to create a quality inspection task, a quality inspection task will be immediately created on the current node and run offline later. However, the inventor found that the number of quality inspection tasks running on each node may be very unbalanced. It is possible that some machines are overloaded, while some machines are too idle. Therefore, resources cannot be fully utilized, resulting in low efficiency of customer service quality inspection.
[0027] To better understand a customer service quality inspection method, device, electronic device and storage medium provided by an embodiment of the present application, when it is determined that the first node is determined as the master node, the master node distributes quality inspection tasks to the second nodes according to the load conditions of the multiple second nodes. Therefore, the loads of the multiple second nodes can be balanced, so as to implement quality inspection on customer service, fully utilize resources, and improve the efficiency of customer service quality inspection. First, the application environment applicable to the embodiment of the present application will be described below.
[0028] Please refer to Figure 1 , Figure 1 which shows a schematic diagram of an application environment of a customer service quality inspection method provided by an embodiment of the present application. The customer service quality inspection method, device, electronic device and storage medium provided by an embodiment of the present application can be applied to an interaction system 300 as shown in Figure 1 . The interaction system 300 includes an intelligent terminal 301, a server 302A and a server 302B. The server 302A is communicatively connected to the intelligent terminal 301, the server 302B is communicatively connected to the intelligent terminal 301, and the server 302A is communicatively connected to the server 302B. Among them, the server 302 can be implemented by an independent server or a server cluster composed of multiple servers. In addition, the server can be a cloud server or a traditional computer room server, which is not specifically limited herein.
[0029] In some embodiments, the server 302A can be the first node, and the server 302A can be the second node. Herein, the number of the servers 302A can be one or multiple, which is not limited herein. After the service of each node is started, each node will participate in the selection of the master node, and then the master node can be selected from the first node (server 302A) and multiple second nodes (servers 302B). Among them, the first node (server 302A) can be connected to multiple second nodes (servers 302B) through Bluetooth, WIFI, ZigBee network, 2G / 3G / 4G / 5G, so as to facilitate data transmission between the first node (server 302A) and multiple second nodes (servers 302B). Among them, the data can include the address information of the nodes, the creation request of the customer service quality inspection task, and the control request of the customer service quality inspection task, which is not limited herein.
[0030] In some embodiments, the intelligent terminal 301 can be various electronic devices with a display screen and supporting data input, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, wearable electronic devices, etc. Specifically, the data input can be inputting voice based on the voice module configured in the intelligent terminal 301, inputting characters based on the character input module, inputting images based on the image input module, inputting videos based on the video input module, etc., and can also be based on the gesture recognition module configured in the intelligent terminal 301, enabling the user to implement interactive methods such as gesture input.
[0031] Among them, a client application can be installed on the intelligent terminal 301, and the user can communicate with the server 302 based on the client application (such as applications like WeChat, WeChat mini-programs, etc.). Specifically, a corresponding server application is installed on the server 302. The user can register a user account on the server 302 based on the client application and communicate with the server 302 based on this user account. For example, the user logs in to the user account in the client application and can input through the client application based on this user account. The input can be text information, voice information, image information, video information, etc. After the client application receives the user input information, it sends the input information corresponding to the communication protocol of the client to the electronic device. The electronic device converts the input information into the input information corresponding to the communication protocol of the server 302 and then forwards it to the server 302, so that the server 302 can receive the information, process and store it. The server 302 can also receive the information and return the corresponding output information to the intelligent terminal 301 after being converted by the protocol of the electronic device, and the intelligent terminal 301 outputs and displays the information.
[0032] In some embodiments, the server 302 can be used to receive information input by a user, generate a screen of a simulated robot customer service or a human customer service based on the information, and send the screen to the intelligent terminal 301 after conversion by an electronic device, so as to provide customer service to the intelligent terminal 301 and communicate with the user for customer service. Specifically, the intelligent terminal 301 can receive the information input by the user and present the screen of the simulated robot customer service or the human customer service sent by the server 302 to the intelligent terminal 301. Among them, the simulated robot customer service is a software program based on visual graphics. After the software program is executed, it can present a robot form that simulates biological behaviors or thoughts to the user. The simulated robot customer service can be a simulated human-like robot, such as a human-like simulated robot established according to the user's own form or the form of other natural persons, or it can be an animated effect simulated robot, such as a simulated robot in the form of an animal or a cartoon character.
[0033] In some embodiments, such as Figure 1 shown, after the intelligent terminal 301 obtains the reply information corresponding to the information input by the user, it can display the image of the simulated robot customer service or the human customer service corresponding to the reply information on the display screen of the intelligent terminal 301 or other image output devices connected thereto. As an implementation manner, while playing the image of the simulated robot customer service or the human customer service, the audio corresponding to the image of the simulated robot customer service or the human customer service can be played through the speaker of the intelligent terminal 301 or other audio output devices connected thereto, and the text or graphics corresponding to the reply information can also be displayed on the display screen of the intelligent terminal 301, so as to achieve multi-modal interaction with the user in multiple aspects such as images, voices, texts, and numbers.
[0034] The above application environment is only an example for easy understanding. It can be understood that the embodiments of the present application are not limited to the above application environment.
[0035] Figure 2 The flowchart of the customer service quality inspection method provided by an embodiment of the present application is shown. When it is determined that the first node is determined as the main node, the main node allocates quality inspection tasks to the second nodes according to the load conditions of the multiple second nodes. Therefore, the loads of the multiple second nodes can be balanced, so as to implement quality inspection of the customer service, make full use of resources, and improve the efficiency of customer service quality inspection. In a specific embodiment, the customer service quality inspection method is applied to such as Figure 1 shown server 302, such as Figure 6 shown customer service quality inspection device 100, such as Figure 7 shown electronic device 200 configured with the customer service quality inspection device 100, and such as Figure 8 shown computer-readable storage medium 400. This embodiment will take the application of the customer service quality inspection method to Figure 7Taking the electronic device 200 shown as an example to illustrate the specific process of this embodiment. Among them, the electronic device 200 can be, but is not limited to, a mobile terminal, a desktop computer, a tablet computer, a robot device, a server, etc. The following will be directed to Figure 2 The process shown will be elaborated in detail. The customer service quality inspection method may specifically include the following steps:
[0036] Step S110: When the first node is determined as the master node, receive a creation request for a quality inspection task, where the creation request is forwarded by the second node that receives the creation request among the multiple second nodes determined as slave nodes.
[0037] In some embodiments, after the services of multiple nodes are started, they will all participate in selecting the master node. The master node is selected from the first node and multiple second nodes. The process of selecting the master node is that each node reads redis. If the value of a pre-agreed Key is empty, and the first node among the multiple nodes writes the value first, then the first node is determined as the master node, and an expiration time is set. It should be noted that Redis (Remote Dictionary Server), that is, the remote dictionary service, is an open-source log-type, Key-Value database written in ANSI C language, supporting the network, and can be based on memory or persistent, and provides application program interfaces (Application Program Interface, API) in multiple languages.
[0038] In this embodiment, multiple second nodes are determined as slave nodes. When it is necessary to conduct quality inspection on the customer service, the server sends a creation request for a quality inspection task to the multiple second nodes. The multiple second nodes can forward the second node that receives the creation request to the master node. The master node receives the creation request for the quality inspection task sent by this second node. Among them, the number of creation requests can be one or multiple, which is not limited here. For example, the multiple second nodes include the second node 1, the second node 2, and the second node 3. The second node 2 receives the creation request and forwards the creation request to the master node. The master node receives the creation request forwarded by the second node 2.
[0039] In some embodiments, the master node can directly receive a creation request for a quality inspection task. As a method, the master node can preset and store a master node load threshold. When the current load of the master node is less than the load threshold, it receives the creation request for the quality inspection task; when the current load of the master node is greater than the load threshold, it does not receive the creation request for the quality inspection task. For example, the master node load threshold is 85%. When the current load of the master node is 50%, the current load of the master node is less than the master node load threshold, and it receives the creation request for the quality inspection task; when the current load of the master node is 90%, the current load of the master node is greater than the master node load threshold, and it does not receive the creation request for the quality inspection task.
[0040] In some embodiments, the first node can receive the creation request forwarded by the second node that has received the creation request. As a method, the first node can send the address information of the first node to multiple second nodes, and the first node can receive the creation request for the quality inspection task forwarded by the second node that has received the creation request according to the address information of the first node. As another method, the first node can send the code of the first node to multiple second nodes, and the first node can receive the creation request for the quality inspection task forwarded by the second node that has received the creation request according to the code of the first node. For example, the multiple nodes include the second node 1, the second node 2, and the second node 3, and the first node code is A. Then the code A of the first node is sent to multiple second nodes. When the second node 1 receives the creation request, it forwards the creation request to the first node with the code A.
[0041] Step S120: In response to the creation request, obtain the load information of each of the multiple second nodes.
[0042] In some embodiments, the master node can, according to the received creation request, respond to the creation request and obtain the load information of each of the multiple second nodes for allocating the creation request. For example, in response to the creation request, the first node can obtain the load information of multiple second nodes. The multiple second nodes can include the second node 1, the second node 2, the second node 3, the second node 4, the second node 5, and the second node 6. The load information of the second node 1 is 50%, the load information of the second node 2 is 55%, the load information of the second node 3 is 60%, the load information of the second node 4 is 65%, the load information of the second node 5 is 70%, and the load information of the second node 6 is 75%. Obtain the load information of the second node 1, the second node 2, the second node 3, the second node 4, the second node 5, and the second node 6.
[0043] Step S130: Based on the load information of each of the multiple second nodes, determine a target second node from the multiple second nodes.
[0044] In this embodiment, the target second node can be determined from multiple second nodes according to the respective load information of the multiple second nodes.
[0045] In some embodiments, the load information may include a load rate, which is not limited herein. The target second node can be determined from the multiple second nodes in ascending order of the load rate.
[0046] In some embodiments, the respective running speeds of the multiple second nodes can be obtained, and the second node with the fastest running speed and the smallest load information among the multiple second nodes is determined as the target second node. For example, the multiple second nodes include Second Node 1, Second Node 2, and Second Node 3. The running speed of Second Node 1 is 3 MHz and the load information is 50%, the running speed of Second Node 2 is 2 MHz and the load information is 55%, and the running speed of Second Node 3 is 1 MHz and the load information is 60%. Then, Second Node 1 is selected and determined as the target second node.
[0047] As a way, when the running speeds of the multiple second nodes are the same, the second node with smaller load information is determined as the target second node. For example, the multiple second nodes include Second Node 1, Second Node 2, and Second Node 3. The running speed of Second Node 1 is 3 MHz and the load information is 50%, the running speed of Second Node 2 is 3 MHz and the load information is 55%, and the running speed of Second Node 3 is 1 MHz and the load information is 60%. Among them, the running speeds of Second Node 1 and Second Node 2 are the same, and the load information of Second Node 1 is smaller. Then, Second Node 1 is selected and determined as the target second node.
[0048] As another way, with the load information as the first priority, that is, among the second nodes with faster running speed and larger load information and the second nodes with slower running speed and smaller load information among the multiple second nodes, the second node with slower running speed and smaller load information is determined as the target second node. For example, the multiple second nodes include Second Node 1 and Second Node 2. The running speed of Second Node 1 is 1 MHz and the load information is 50%, the running speed of Second Node 2 is 3 MHz and the load information is 55%, and the running speed of Second Node 3 is 3 MHz and the load information is 60%. Among them, Second Node 1 has a slower running speed and smaller load information. Then, Second Node 1 is selected and determined as the target second node.
[0049] Step S140: Send the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request.
[0050] In this embodiment, the creation request can be sent to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request.
[0051] In some embodiments, when the server restarts and the load information of the first node and the multiple second nodes is the same value, a polling strategy can be used for load balancing to the multiple second nodes identified as slave nodes. It should be noted that load balancing is to pass the creation request through a load balancer and evenly distribute the traffic to multiple servers at the back end according to a certain load balancing algorithm. The master node that receives the request can independently respond to the request and execute it by sharing it among the multiple second nodes according to the desired rules, achieving the purpose of load sharing, and horizontal expansion can be achieved through load balancing, giving full play to the redundant function for high availability.
[0052] In the field of load balancing, the polling strategy can include methods such as sequential polling, which is not limited here. In some cases, sequential polling means sending creation requests in turn according to the order of the second nodes, that is, the slave nodes. Among them, the order of the multiple second nodes is the order in which the multiple second nodes are identified as slave nodes. For example, the creation requests include creation request 1, creation request 2, creation request 3, creation request 4, creation request 5, and creation request 6, and the multiple second nodes include second node 1, second node 2, and second node 3. Then the order of the second nodes is second node 1, second node 2, and second node 3. As shown in Table 1, the 6 creation requests are regarded as 6 steps.
[0053] Table 1
[0054] Step Create Request Execute Node 1 Create Request 1 Second Node 1 2 Create Request 2 Second Node 2 3 Create Request 3 Second Node 3 4 Create Request 4 Second Node 1 5 Create Request 5 Second Node 2 6 Create Request 6 Second Node 3
[0055] For the customer service quality inspection method provided in this application, when the first node is determined as the master node, it receives the creation request of the quality inspection task, and in response to the creation request, obtains the load information of each of the multiple second nodes; based on the load information of each of the multiple second nodes, determines the target second node from the multiple second nodes; sends the creation request to the target second node to instruct the target second node to create and execute the quality inspection task based on the creation request. By the master node allocating the quality inspection task to the second nodes according to the load conditions of the multiple second nodes, the load of the multiple second nodes can be balanced, so as to realize the quality inspection of the customer service, make full use of resources, and improve the efficiency of customer service quality inspection.
[0056] Optionally, on the basis of the previous embodiment, this embodiment provides a customer service quality inspection method. In this embodiment, the load information includes the load rate. Figure 3 The flowchart of the customer service quality inspection method provided by another embodiment of this application is shown. Please refer to Figure 3 , and the customer service quality inspection method may specifically include the following steps:
[0057] Step S210: When the first node is determined as the master node, the first node sends its address information to the multiple second nodes respectively.
[0058] In this embodiment, when the first node is determined to be the master node, the first node may send the address information of the first node to multiple second nodes respectively. It can be understood that the first node sends the address information of the first node to multiple second nodes respectively, so that the second nodes can send data such as creation requests to the first node according to the address information of the first node.
[0059] Step S220: Receive the creation request of the quality inspection task forwarded by the second node that has received the creation request based on the address information of the first node.
[0060] In this embodiment, the first node may receive the creation request of the quality inspection task forwarded by the second node that has received the creation request according to the address information of the first node.
[0061] Step S230: In response to the creation request, obtain the load information of each of the multiple second nodes.
[0062] For the specific description of step S230, please refer to step S120 and will not be elaborated here.
[0063] Step S240: Determine the target second node from the multiple second nodes in ascending order of the load rate.
[0064] In this embodiment, the load rates of multiple second nodes can be sorted, and the target second node is determined from the multiple second nodes in ascending order of the load rate. For example, the multiple second nodes include the second node 1, the second node 2, and the second node 3. The load rate of the second node 1 is 50%, the load rate of the second node 2 is 55%, and the load rate of the second node 3 is 60%. Then the second node 1 is determined as the first target second node, the second node 2 is determined as the second target second node, and the second node 3 is determined as the third target second node.
[0065] Step S250: Receive the address information sent by each of the multiple second nodes.
[0066] In some embodiments, the first node may receive the address information sent by each of the multiple second nodes. As a way, the multiple second nodes may send the address information of each of the multiple second nodes to the first node according to the saved address information of the first node, and the first node may receive the address information sent by each of the multiple second nodes according to the address information of the first node.
[0067] Step S260: Based on the address information of the target second node, send the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request.
[0068] In this embodiment, the first node can determine the address information of the target second node from the respective address information of multiple second nodes according to the determined target second node, and send a creation request to the target second node according to the address information of the target second node to instruct the target second node to create and execute the quality inspection task based on the creation request.
[0069] In this embodiment, multiple second nodes can receive and save the address information of the first node, the first node can receive the address information of each of the multiple second nodes, and the first node and the multiple second nodes can communicate based on the address information, so the creation request can be sent to the target second node faster, thereby improving the processing efficiency of the customer service quality inspection task, and the target second node can be determined according to the load rate of the multiple second nodes, which can make more full use of resources, so as to balance the load of the multiple second nodes and execute the customer service quality inspection task faster.
[0070] Optionally, Figure 4 A flow chart showing a customer service quality inspection method provided by another embodiment of the present application is shown. Figure 4 The customer service quality inspection method may specifically include the following steps:
[0071] Step S310: When the first node is determined as the master node, a creation request for a quality inspection task is received, wherein the creation request is forwarded by a second node that receives the creation request among the plurality of second nodes determined as slave nodes.
[0072] Step S320: In response to the creation request, obtain load information of each of the multiple second nodes.
[0073] Step S330: Determine a target second node from the plurality of second nodes based on the load information of each of the plurality of second nodes.
[0074] Step S340: Send the creation request to the target second node to instruct the target second node to create and execute the quality inspection task based on the creation request.
[0075] For the detailed description of steps S310 to S340 , please refer to steps S110 to S140 , which will not be repeated here.
[0076] Step S350: monitoring the current quality inspection task status of the target second node.
[0077] In this embodiment, after the second node receives the creation request, it starts to execute the task in between, and at the same time monitors and maintains the current quality inspection task status of the target second node. It can be understood that the first node monitors the current quality inspection task status of the target second node so that the first node can manage the target second node according to the current quality inspection task status of the second node.
[0078] Step S360: Update the recorded quality inspection task status of the target second node based on the current quality inspection task status of the target second node.
[0079] In this embodiment, the recorded quality inspection task status of the target second node can be updated according to the current quality inspection task status of the target second node.
[0080] Step S370: Obtain the duration for which the first node is determined to be the master node.
[0081] Among them, the position of step S370 is not restricted by the serial number.
[0082] In some embodiments, the duration for which the first node is determined to be the master node can be obtained. As a way, each node includes a timer. When the first node is determined to be the master node, the timer of the first node starts timing to obtain the duration for which the first node is determined to be the master node.
[0083] Step S380: When the duration reaches the preset duration, re-determine the master node from the first node and the multiple second nodes.
[0084] In this embodiment, the first node can pre-store and set the preset duration, and the preset duration can be set when the first node is determined to be the master node. When the duration for which the first node is determined to be the master node reaches the preset duration, re-determine the master node from the first node and the multiple second nodes. That is to say, the node that writes the value first from the first node and the multiple second nodes is the re-determined master node. For example, the preset duration is 5s. When the duration for which the first node is determined to be the master node is 5s, then re-determine the master node from the first node and the multiple second nodes.
[0085] In this embodiment, the status of the quality inspection task executed by the target second node can be monitored to obtain the current quality inspection task status of the target second node, and the recorded status of the quality inspection task of the target second node can be updated according to the current quality inspection task status of the target second node. Therefore, according to the current quality inspection task status of the target second node, the creation request can be sent to multiple second nodes more flexibly and reasonably, so as to implement the quality inspection of the customer service and make full use of resources to improve the efficiency of the customer service quality inspection.
[0086] Optionally, Figure 5The flowchart of the customer service quality inspection method provided by another embodiment of the present application is shown. Please refer to Figure 5 , and the customer service quality inspection method may specifically include the following steps:
[0087] Step S410: When the first node is determined as the master node, receive a creation request for a quality inspection task, where the creation request is forwarded by the second node that receives the creation request among the multiple second nodes determined as slave nodes.
[0088] Step S420: In response to the creation request, obtain the load information of each of the multiple second nodes.
[0089] Step S430: Based on the load information of each of the multiple second nodes, determine a target second node from the multiple second nodes.
[0090] Step S440: Send the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request.
[0091] For the specific descriptions of steps S410 - S440, please refer to steps S110 - S140, which will not be elaborated here.
[0092] Step S450: Receive a control request sent by the target second node.
[0093] In this embodiment, a control request sent by the target second node can be received. The control request may include a request to pause a quality inspection task, a request to resume a quality inspection task, a request to delay a task, etc., which are not limited here.
[0094] In some embodiments, the target second node sends a control request to the first node. The first node can find the corresponding target second node according to the location information of the target second node corresponding to the quality inspection task included in the control request, and send the control request to the target second node. If it is necessary to pause the quality inspection task, after receiving the request to pause the quality inspection task, the target second node forwards the request to pause the quality inspection task to the first node. The first node finds the corresponding target second node according to the location information of the target second node corresponding to the quality inspection task included in the request to pause the quality inspection task, and then forwards the request to pause the quality inspection task to the target second node to stop the execution of the quality inspection task of the target second node. If it is necessary to resume the quality inspection task, after receiving the request to resume the quality inspection task, the target second node forwards the request to resume the quality inspection task to the first node. The first node finds the corresponding target second node according to the location information of the target second node corresponding to the quality inspection task included in the request to resume the quality inspection task, and then forwards the request to resume the quality inspection task to the target second node to resume the execution of the quality inspection task of the target second node.
[0095] Step S460: Based on the control request, control the progress of the quality inspection task executed by the target second node.
[0096] In this embodiment, the first node can control the progress of the quality inspection task executed by the target second node according to the control request sent by the target second node. For example, if the control request of the target second node is a request to pause the quality inspection task, the first node controls the target second node to pause the execution of the quality inspection task according to the request to pause the quality inspection task sent by the target second node; if the control request of the target second node is a request to resume the quality inspection task, the first node controls the target second node to resume the execution of the quality inspection task according to the request to resume the quality inspection task sent by the target second node.
[0097] In this embodiment, the first node can obtain the control request of the target second node. Therefore, the first node can uniformly control the quality inspection tasks of all target second nodes according to the control request of the target second node, so as to perform quality inspection on customer service, make full use of resources, and improve the efficiency of customer service quality inspection.
[0098] To implement the above method embodiments, this embodiment provides a customer service quality inspection device. Figure 6 The block diagram of the customer service quality inspection device provided by an embodiment of the present application is shown. Please refer to Figure 6 , the customer service quality inspection device 100 includes: a creation request acquisition module 110, a load information acquisition module 120, a target second node determination module 130, and a quality inspection task execution module 140.
[0099] The creation request acquisition module 110 is configured to receive a creation request for a quality inspection task when the first node is determined to be the master node, where the creation request is forwarded by the second node that receives the creation request among the multiple second nodes determined to be slave nodes.
[0100] Optionally, the creation request acquisition module 110 includes: an address information sending sub-module and a creation request receiving sub-module.
[0101] The address information sending sub-module is configured to send the address information of the first node to the multiple second nodes respectively.
[0102] The creation request receiving sub-module is configured to receive the creation request for the quality inspection task forwarded by the second node that receives the creation request based on the address information of the first node.
[0103] The load information acquisition module 120 is configured to obtain the respective load information of the multiple second nodes in response to the creation request.
[0104] A target second node determination module 130, configured to determine a target second node from the multiple second nodes based on the load information of each of the multiple second nodes.
[0105] Optionally, the target second node determination module 130 includes: a target second node sequence determination sub-module.
[0106] The target second node sequence determination sub-module is configured to determine the target second node from the multiple second nodes in ascending order of the load rate.
[0107] A quality inspection task execution module 140, configured to send the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request.
[0108] Optionally, the quality inspection task execution module 140 includes: an address receiving sub-module and a first quality inspection task execution sub-module.
[0109] The address receiving sub-module is configured to receive the address information sent by each of the multiple second nodes.
[0110] The first quality inspection task execution sub-module is configured to send the creation request to the target second node based on the address information of the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request.
[0111] Optionally, the customer service quality inspection device 100 further includes: a quality inspection task status monitoring module and a quality inspection task status update module.
[0112] The quality inspection task status monitoring module is configured to monitor the current quality inspection task status of the target second node;
[0113] The quality inspection task status update module is configured to update the recorded quality inspection task status of the target second node based on the current quality inspection task status of the target second node.
[0114] Optionally, the customer service quality inspection device 100 further includes: a control request receiving module and a quality inspection task progress control module.
[0115] The control request receiving module is configured to receive a control request sent by the target second node.
[0116] The quality inspection task progress control module is configured to control the progress of the target second node executing the quality inspection task based on the control request.
[0117] Optionally, the customer service quality inspection device 100 further includes: a duration acquisition module determined as the master node and a master node re-determination module.
[0118] The duration acquisition module determined as the master node is used to acquire the duration for which the first node is determined as the master node.
[0119] The master node re-determination module is used to re-determine the master node from the first node and the multiple second nodes when the duration reaches a preset duration.
[0120] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the modules / units / sub-units / components in the above-described device can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.
[0121] In several embodiments provided in the present application, the coupling or direct coupling or communication connection between the displayed or discussed modules may be through some interfaces, and the indirect coupling or communication connection of the device or module may be in electrical, mechanical or other forms.
[0122] In addition, in each embodiment of the present application, the various functional modules may be integrated in a processing module, or each module may exist physically alone, or two or more modules may be integrated in one module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0123] Figure 7 The block diagram of the electronic device for executing the customer service quality inspection method according to the embodiment of the present application is shown. Please refer to Figure 7 , which shows an electronic device provided by an embodiment of the present application. The electronic device 200 may include a processor 231, a communication module 232, a memory 233, and a bus. The bus may be an ISA bus, a PCI bus, an EISA bus, a CAN bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. Among them:
[0124] The memory 233 is used to store programs. Specifically, the memory 233 can be used to store software programs and various data. The memory 233 may mainly include a program storage area and a data storage area. Among them, the program storage area can store programs required for operating at least one function, which may include program codes, and the program codes include computer operation instructions. In addition to storing programs, the memory 233 can also temporarily store messages to be sent by the communication module 232, etc. The memory 233 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one solid-state disk (SSD for short).
[0125] The processor 231 is used to execute the programs stored in the memory 233. When the programs are executed by the processor, the steps of the customer service quality inspection method in the above embodiments are implemented.
[0126] The embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements each process of the customer service quality inspection method in the above embodiments and can achieve the same technical effects. To avoid repetition, it will not be elaborated here. Among them, the computer-readable storage medium includes, for example, a read-only memory (ROM), a random access memory (RAM), an SSD, an electrically erasable programmable read-only memory (EEPROM), or a flash memory (Flash).
[0127] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article, or device including that element.
[0128] Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, SSD, Flash) and includes several instructions for causing a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of the various embodiments of the present application.
[0129] Figure 8 Fig. 8 shows a storage unit for storing or carrying the program code for implementing the customer service quality inspection method according to the embodiments of the present application. Please refer to Fig. 8, which shows a structural block diagram of a computer-readable storage medium provided by the embodiments of the present application. The computer-readable medium 400 stores program code, and the program code can be called by a processor to execute the method described in the above method embodiments.
[0130] The computer-readable storage medium 400 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 400 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 400 has a storage space for the program code 410 that executes any of the method steps in the above-described method. These program codes can be read from or written into one or more computer program products. The program code 410 can be compressed in a suitable form, for example.
[0131] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above steps.
[0132] In summary, for a customer service quality inspection method, device, electronic device, and storage medium provided in this application, when the first node is determined to be the master node, a creation request for a quality inspection task is received. In response to the creation request, the load information of each of the multiple second nodes is obtained. Based on the load information of each of the multiple second nodes, a target second node is determined from the multiple second nodes, and the creation request is sent to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request. By having the master node allocate quality inspection tasks to the second nodes according to the load conditions of the multiple second nodes, the loads of the multiple second nodes can be balanced, thereby realizing the quality inspection of customer service, making full use of resources, and improving the efficiency of customer service quality inspection.
[0133] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of this application.
Claims
1. A customer service quality inspection method, characterized in that, Including: Each of the first node and the multiple second nodes reads the remote dictionary service Redis. If the first node preferentially writes a value to a key in Redis, the first node is determined as the master node, and the multiple second nodes are determined as slave nodes. When the duration for which the first node is determined as the master node reaches a preset duration, the first node and the multiple second nodes reread Redis and perform value writing to re-determine the master node. When the first node is determined as the master node, the first node performs the following processing: Sends the address information of the first node to the multiple second nodes, and receives the address information of the second nodes sent by each of the second nodes according to the received address information of the first node. Receives a creation request for a quality inspection task, where the creation request is forwarded by the second node that receives the creation request among the multiple second nodes determined as slave nodes. In response to the creation request, obtains the load information of each of the multiple second nodes. Based on the address information of the second nodes and the load information of each of the multiple second nodes, determines a target second node from the multiple second nodes. Sends the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request.
2. The method according to claim 1, characterized in that, The load information includes a load rate. Determining a target second node from the multiple second nodes based on the load information includes: Determining the target second node from the multiple second nodes in ascending order of the load rate.
3. The method according to claim 1, characterized in that Receiving the creation request for the quality inspection task includes: Receiving the creation request for the quality inspection task forwarded by the second node that receives the creation request based on the address information of the first node.
4. The method according to claim 1, characterized in that Sending the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request includes: Based on the address information of the target second node, sends the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request.
5. The method according to claim 1, characterized in that, After sending the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request, it further includes: Monitoring the current quality inspection task status of the target second node. Updating the recorded quality inspection task status of the target second node based on the current quality inspection task status of the target second node.
6. The method according to claim 1, characterized in that, After sending the creation request to the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request, it further includes: Receiving a control request sent by the target second node. Based on the control request, controlling the progress of the target second node in executing the quality inspection task.
7. A customer service quality inspection device, characterized in that, Including: A master node re - determination module, which is used to read the Remote Dictionary Service (Redis) for each of the first node and multiple second nodes. If the first node preferentially writes a value for a key in the Redis, the first node is determined as the master node, and the multiple second nodes are determined as slave nodes; When the duration for which the first node is determined as the master node reaches a preset duration, the first node and the multiple second nodes re - read the Redis and perform value writing to re - determine the master node; An address information sending sub - module, which is used to, when the first node is determined as the master node, the first node performs the following processing: sending the address information of the first node to the multiple second nodes; An address receiving sub - module, which is used to receive the address information of the first node received by each of the second nodes; A creation request receiving module, which is used to receive a creation request for a quality inspection task, where the creation request is forwarded by the second node that receives the creation request among the multiple second nodes determined as slave nodes; A load information obtaining module, which is used to, in response to the creation request, obtain the respective load information of the multiple second nodes; A target second node determination module, which is used to determine a target second node from the multiple second nodes based on the respective load information of the multiple second nodes; A quality inspection task execution module, which is used to send the creation request to the target second node based on the address information of the target second node to instruct the target second node to create and execute a quality inspection task based on the creation request.
8. An electronic device, characterized in that, Comprising: One or more processors; A memory; One or more applications, where the one or more applications are stored in the memory and are configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1 - 6.
9. A computer-readable storage medium, characterized in that, Program code is stored in the computer - readable storage medium, and the program code can be called by the processor to execute the method according to any one of claims 1 - 6.
Citation Information
Patent Citations
Distributed task scheduling method and system
CN104253850A
Data processing method and distributed data processing system
CN104320433A