WO2022262253A1 - 任务分配方法和装置、电子设备、计算机可读介质 - Google Patents

任务分配方法和装置、电子设备、计算机可读介质 Download PDF

Info

Publication number
WO2022262253A1
WO2022262253A1 PCT/CN2021/143052 CN2021143052W WO2022262253A1 WO 2022262253 A1 WO2022262253 A1 WO 2022262253A1 CN 2021143052 W CN2021143052 W CN 2021143052W WO 2022262253 A1 WO2022262253 A1 WO 2022262253A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
test
terminals
tasks
task
Prior art date
Application number
PCT/CN2021/143052
Other languages
English (en)
French (fr)
Inventor
刘华丽
黄琦
张沛
沈惠玲
Original Assignee
北京百度网讯科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京百度网讯科技有限公司 filed Critical 北京百度网讯科技有限公司
Priority to JP2022552966A priority Critical patent/JP7489478B2/ja
Priority to EP21928339.7A priority patent/EP4167096A4/en
Priority to KR1020227033552A priority patent/KR20220139407A/ko
Priority to US17/938,439 priority patent/US20230062632A1/en
Publication of WO2022262253A1 publication Critical patent/WO2022262253A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Definitions

  • the present disclosure relates to the technical field of task assignment, in particular to online testing, cloud computing and other technical fields, and in particular to a task assignment method and device, electronic equipment, computer-readable media, and computer program products.
  • test tasks for testing mobile phones may often reach hundreds or even thousands. If manual testing is used, the cost is high and the efficiency is relatively low, which cannot achieve the purpose of evenly distributing test tasks for each mobile phone.
  • a task allocation method and device electronic equipment, a computer readable medium, and a computer program product.
  • a task allocation method comprising: generating a test task list based on a received test task request, the test task list including at least one test task; acquiring currently assigned tasks of at least one terminal; responding Based on the calculation of the load information of all terminals executing the currently assigned tasks, based on the load information, different task assignment rules are used to assign the test tasks in the test task list to each terminal, wherein the load information includes the estimated time-consuming and the amount of data generated.
  • a task allocation device comprising: a generation unit configured to generate a test task list based on a received test task request, the test task list including at least one test task; an acquisition unit configured To obtain the currently assigned tasks of at least one terminal; the execution unit is configured to respond to the load information calculated to execute the currently assigned tasks of all terminals, and based on the load information, use different task assignment rules to assign test tasks to each terminal in the test task list
  • the test tasks of wherein the load information includes the estimated time-consuming and the amount of data generated by each terminal to execute the currently allocated tasks.
  • an electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by Execution by at least one processor, so that at least one processor can execute the method described in any implementation manner of the first aspect.
  • a non-transitory computer-readable storage medium storing computer instructions, the computer instructions are used to cause a computer to execute the method described in any implementation manner of the first aspect.
  • a computer program product including a computer program, and when the computer program is executed by a processor, the method described in any implementation manner of the first aspect is implemented.
  • a test task list is generated, and the test task list includes at least one test task; thirdly, the currently assigned task of at least one terminal is obtained; finally , in response to the calculated load information of all terminals executing currently assigned tasks, based on the load information, different task allocation rules are used to allocate test tasks in the test task list to each terminal. Therefore, when the load information of all terminals executing the currently assigned tasks can be calculated, the test tasks are allocated to each terminal based on different task allocation rules, which ensures the load balance of each terminal in all terminals when performing test tasks; compared with artificial Allocation of test tasks improves the efficiency of task allocation.
  • FIG. 1 is a flowchart of an embodiment of a method for assigning tasks according to the present disclosure
  • Fig. 2 is a flow chart according to another embodiment of the task allocation method of the present disclosure.
  • Fig. 3 is a schematic structural diagram of an embodiment of a task allocation device according to the present disclosure.
  • FIG. 4 is a block diagram of an electronic device for implementing the task allocation method of the embodiment of the present disclosure.
  • FIG. 1 shows a process 100 according to an embodiment of the task allocation method of the present disclosure.
  • the above task allocation method includes the following steps:
  • Step 101 generate a test task list based on the received test task request.
  • the electronic device on which the task allocation method runs may receive the task request sent by the server through a wired connection or a wireless connection.
  • the task request may be, for example, a request to test the display resolution of the terminal, or a request to acquire the refresh frequency of the terminal, and the like.
  • the above task request may be one request or multiple requests.
  • the electronic device After receiving the task request, the electronic device generates a test task list based on the task request. After the above-mentioned electronic device sends the test task to the terminal, the terminal executes the test task and feeds back the result of executing the test task to the above-mentioned electronic device.
  • test tasks in the generated test task list are tasks that have not been assigned to any terminal based on the test task request, and all the test tasks of the above electronic device combination are to be assigned to existing online terminals.
  • Step 102 acquiring currently assigned tasks of at least one terminal.
  • a terminal (Terminal) is also referred to as a terminal device, which is the most peripheral device in the computer network, and is mainly used for inputting user information and outputting processing results.
  • the terminal device can be a mobile terminal, a device terminal, etc., and the terminal can also be a mobile terminal combined with cloud computing technology, such as a cloud phone (Cloud phone), which uses cloud computing technology for network terminal services.
  • cloud phone a cloud phone
  • Cloud phones make full use of mobile broadband networks, the online features of mobile phones, and the characteristics of cloud technology to connect mobile phones with the entire network system.
  • At least one terminal is an online terminal in the current network, and each terminal is executing a currently assigned task or has completed all currently assigned tasks. task load, so as to determine whether to assign test tasks to the terminal.
  • the tasks currently assigned to each terminal may be test tasks or tasks that other terminals need to perform, which is not limited in this disclosure.
  • Step 103 in response to the calculated load information of all terminals executing currently allocated tasks, based on the load information, different task allocation rules are used to allocate test tasks in the test task list to each terminal.
  • the load information includes the estimated time-consuming and the amount of data generated by each terminal to execute the currently allocated tasks.
  • all terminals are a general term for all of the above at least one terminal, that is, all terminals are also equal to at least one terminal.
  • the load information of the terminal executing the currently assigned tasks can be calculated or cannot be calculated, and whether the load information of the terminal executing the currently assigned tasks can be calculated depends on whether the terminal has historical operating data for executing the currently assigned tasks .
  • the currently assigned task When the currently assigned task has historical running data, even if the currently assigned task has not been executed, it can also determine the historical time-consuming and historical data volume of the currently assigned task through historical running data, and estimate all historical time-consuming and historical data The average value of the volume estimates the load information of the currently assigned tasks.
  • the at least two task allocation rules may include: an average task allocation rule and a real-time task allocation rule.
  • the above-mentioned real-time task allocation rule includes: allocating test tasks in the test task list to each terminal in real time.
  • the real-time task allocation rule can sequentially allocate test tasks in the test task list to the multiple terminals in real time when multiple terminals among all the terminals are in an idle state.
  • the above-mentioned average task distribution rule includes: calculating the number of tasks of the test tasks in the test task list and the number of terminals of all terminals; when the number of tasks is greater than the number of terminals and the remainder of the two is not zero, the Each terminal of the first remaining number of terminals is assigned M test tasks in the test task list, and N test tasks in the test task list are assigned to each terminal except the first remaining number of terminals in all terminals, where M is the number of tasks and The number obtained by adding one to the quotient of the number of terminals, N is the quotient of the number of tasks and the number of terminals; when the number of tasks is less than or equal to the number of terminals, assign one of the test task lists to each terminal of the previous task number of all terminals test task.
  • different task assignment rules are used to assign test tasks in the test task list to each terminal, which may include:
  • the real-time task allocation rule is used to assign test tasks in the test task list to each terminal.
  • the estimated time for each terminal to execute the currently assigned task is less than or equal to the set time, or the amount of data generated is less than or equal to the set data amount
  • the average task allocation rule is used to assign each terminal in the test task list test task.
  • the set time or the set data amount is the time or amount calculated according to information such as the type of the assigned task.
  • different task assignment rules are used to assign test tasks in the test task list to each terminal, which may also include:
  • the real-time task allocation rule is used to allocate some test tasks in the test task list for this part of the terminal; and the average task allocation rule is used for all terminals Terminals other than this part of terminals in the test task list are assigned test tasks other than this part of test tasks.
  • each terminal when all terminals have finished running all the test tasks in the test task list, each terminal outputs the test results of the respective test tasks to the above-mentioned electronic device to generate a test report, and the whole test process ends.
  • a test task list is generated, and the test task list includes at least one test task; again, the currently assigned task of at least one terminal is obtained; finally, the response
  • different task allocation rules are used to assign test tasks in the test task list to each terminal. Therefore, when the load information of all terminals executing the currently assigned tasks can be calculated, the test tasks are allocated to each terminal based on different task allocation rules, which ensures the load balance of each terminal in all terminals when performing test tasks; compared with artificial Allocation of test tasks improves the efficiency of task allocation.
  • each terminal in response to the fact that it is impossible to calculate the load information of all terminals executing the currently assigned tasks and the test tasks in the test task list are greater than the preset number, each terminal is allocated in real time in the test task list. test task.
  • the operation steps in the currently assigned tasks of the terminal may require the participation of the operator, and the operation time and reaction time of the operator vary from person to person.
  • the load information of the assigned task cannot be estimated; further, whether the load information of the terminal executing the currently assigned task can be estimated is also based on whether the currently assigned task has historical operation data.
  • the currently assigned task does not have any historical operation data, it needs to be
  • Each terminal allocates test tasks in real time, that is, executes real-time task allocation rules.
  • the above-mentioned based on load information, using different task allocation rules to assign test tasks in the test task list to each terminal includes:
  • a light-loaded terminal refers to a terminal whose time-consuming of currently assigned tasks among at least one terminal is less than or equal to the time threshold
  • a heavy-loaded terminal refers to a terminal whose time-consuming of currently assigned tasks among at least one terminal is greater than the time threshold
  • the time threshold may be an average value of historical execution time of assigned tasks
  • the proportion of light-load terminals and heavy-load terminals in all terminals refers to the content of light-load terminals and heavy-load terminals in at least one terminal respectively. For example, if at least one terminal is all light-load terminals, then light-load terminals If at least one terminal is a heavy-duty terminal, then the heavy-duty terminal accounts for all of the terminals.
  • using different task allocation rules to assign test tasks in the test task list to each terminal may include:
  • test task in the test task list is assigned to each terminal by using the real-time task allocation rule.
  • test task in the test task list is allocated to each terminal by using the average task allocation rule.
  • all terminals are divided into light-load terminals and heavy-load terminals. The balance of tasks for terminals and heavy-duty terminals.
  • different task assignment rules are used to assign test tasks in the test task list to each terminal, including: responding Since at least one terminal includes a light-load terminal and a heavy-load terminal, assign a part of the test tasks in the test task list to the light-load terminal in turn until the load information of the light-load terminal is the same as the load information of the heavy-load terminal; in response to determining the test task list There are remaining test tasks in , and the remaining test tasks are allocated to all terminals in real time.
  • the task amount of the test task is allocated sequentially to reach the test task equivalent to the average time-consuming of the heavy-loaded terminal; when the execution of this round of assigned tasks is completed, more terminals, the rest of the test tasks in the test list are allocated to all terminals using real-time task allocation rules.
  • test task when it is detected that there is no remaining test task in the test task list, no test task needs to be assigned to any terminal.
  • different task assignment rules are used to assign test tasks in the test task list to each terminal, including: responding To determine that all terminals are light-loaded terminals, calculate the number of tasks of the test tasks in the test task list and the number of terminals of all terminals; Each terminal of the remaining terminals is assigned M test tasks in the test task list, and each terminal except the first remaining terminals is assigned N test tasks in the test task list, where M is the number of tasks and the number of terminals The quantity obtained by adding one to the quantity quotient, N is the quotient of the task quantity and the terminal quantity.
  • the task allocation rule adopted in this optional implementation is an average task allocation rule, and when all terminals are light-loaded terminals, the proportion of heavy-loaded terminals in all terminals is zero.
  • each terminal in at least one terminal can execute the test tasks in the test list.
  • the current first test task is sent to the first terminal to run, and the first test task in another task test list It may be sent to the second terminal for execution, where both the first terminal and the second terminal are terminals in at least one terminal.
  • the electronic device distributes M test tasks to N cloud mobile phones (the N cloud mobile phones are all light-loaded terminals).
  • the above task allocation rules are used to allocate test tasks to each terminal.
  • the allocation method is relatively direct and saves time in task allocation.
  • different task assignment rules are used to assign test tasks in the test task list to each terminal, which also includes: In response to the number of tasks being less than or equal to the number of terminals, a test task in the test task list is assigned to each terminal of the previous task number of all terminals.
  • electronic devices are also used to assign M test tasks to N cloud mobile phones (the N cloud mobile phones are all light-loaded terminals).
  • the N cloud mobile phones are all light-loaded terminals.
  • each of the first M devices is assigned one Test tasks; the above allocation rules also belong to the average task allocation rule.
  • all terminals are light-loaded terminals, it is relatively straightforward to use the average task allocation rule to allocate test tasks, but because the time of each test task may not be fixed or the same, Therefore the efficiency may not be optimal.
  • a direct assignment rule is used to assign a test task to each terminal, which ensures the effectiveness of the implementation of the test task.
  • different task assignment rules are used to assign test tasks in the test task list to each terminal, including: responding To determine that all terminals are heavy-duty terminals, assign test tasks in the test task list to each terminal in real time.
  • the task allocation rule adopted in this optional implementation is a real-time task allocation rule, and when all terminals are heavy-loaded terminals, the proportion of light-loaded terminals in all terminals is zero.
  • the real-time task assignment rule is adopted to assign the test tasks in the test task list to each terminal in real time.
  • the real-time task assignment rule the first round of task assignment is performed first, and each terminal is assigned a test task;
  • the execution of a test task of a terminal is completed (through the above-mentioned electronic equipment and the terminal to communicate with the terminal to run the test task, this running process is blocked, after the terminal runs the test task, it returns the running result to the above-mentioned electronic equipment to determine whether the terminal has completed the execution ), if there is still a test task to be run in the test task list at this time, then assign a test task to the terminal where the task is completed, until all the test tasks in the test task list are all assigned.
  • test tasks are allocated to each terminal in real time, which can improve the efficiency of each terminal in running test tasks.
  • FIG. 2 shows a flow chart of another embodiment of the task allocation method according to the present disclosure.
  • the above task allocation method includes the following steps:
  • step 201 a test task list is generated based on the received test task request, and then step 202 is executed.
  • step 202 currently assigned tasks of at least one terminal are obtained, and then step 203 is performed.
  • Step 203 judge whether it is possible to calculate the load information of all terminals executing the currently assigned tasks; if the load information of all terminals executing the currently assigned tasks can be calculated, execute step 204; otherwise, execute step 208.
  • the load information of the terminal executing the currently assigned task can be calculated. Specifically, when there is no historical data of the terminal executing the currently assigned task, it is determined that the load information of the terminal executing the currently assigned task cannot be calculated. When there is historical data of the terminal executing the currently assigned task, it is determined that the load information of the terminal executing the currently assigned task can be calculated.
  • Step 204 determine light-load terminals and heavy-load terminals in at least one terminal, and calculate the ratio of light-load terminals and heavy-load terminals in all terminals, and then perform step 205.
  • At least one terminal may all be light-loaded terminals, all may be heavy-loaded terminals, or include both light-loaded terminals and heavy-loaded terminals.
  • Step 205 based on the proportion, judge whether all terminals are light-loaded terminals, if all terminals are light-loaded terminals, perform step 206; if not all terminals are light-loaded terminals, perform step 209.
  • step 206 the test tasks in the test task list are allocated to each terminal by using the average task allocation rule, and then step 207 is executed.
  • the above-mentioned average task distribution rule includes: calculating the number of tasks of the test tasks in the test task list and the number of terminals of all terminals; when the number of tasks is greater than the number of terminals and the remainder of the two is not zero, the Each terminal of the first remaining terminals is assigned M test tasks in the test task list, and each terminal except the first remaining terminals is assigned N test tasks in the test task list, where M is the number of tasks and the number of terminals The number obtained by adding one to the quotient of the number, N is the quotient of the number of tasks and the number of terminals; when the number of tasks is less than or equal to the number of terminals, assign a test in the test task list to each terminal of the previous task number of all terminals Task.
  • Step 207 end.
  • Step 208 using the real-time task assignment rule to distribute the test tasks in the test task list for each terminal, after that, execute step 207.
  • the real-time task allocation rule includes: allocating test tasks in the test task list to each terminal in real time.
  • the real-time task allocation rule can sequentially allocate test tasks in the test task list to the multiple terminals in real time when multiple terminals among all the terminals are in an idle state.
  • the real-time task allocation rules may also include: firstly carry out the first round of task allocation, each terminal is allocated a test task; whenever the execution of a test task of a terminal is completed (through the above-mentioned electronic device and the terminal to communicate with the terminal to run the test task, this The running process is blocked. After the terminal runs the test task, it returns the running result to the above-mentioned electronic device to determine whether the terminal has completed the execution). If there are still test tasks to be run in the test task list at this time, assign a test task to The terminal where the task is completed, until all the test tasks in the test task list are all assigned.
  • Step 209 judge whether all the terminals are heavy-duty terminals, if all the terminals are heavy-duty terminals, perform step 208; if not all terminals are heavy-duty terminals, perform step 210.
  • Step 210 using the balanced task assignment rule to assign test tasks in the test task list to each terminal, and then execute step 207.
  • the above balanced task allocation rule includes: when all terminals include light-load terminals and heavy-load terminals, assign a part of test tasks in the test task list to light-load terminals in sequence until the load information of light-load terminals and heavy-load terminals The load information of all terminals is the same; in response to determining that there are remaining test tasks in the test task list, assigning the remaining test tasks to all terminals in real time.
  • three different task allocation rules namely balanced task allocation rules, average task allocation rules, and real-time task allocation rules, are used to assign test tasks in the test task list to each terminal, ensuring test task allocation. balance and rationality.
  • the present disclosure provides an embodiment of a task allocation device.
  • This device embodiment corresponds to the method embodiment shown in FIG. 1 , and this device can be specifically applied to in various electronic devices.
  • the task allocation apparatus 300 includes: a generation unit 301 , an acquisition unit 302 , and an execution unit 303 .
  • the generating unit 301 may be configured to generate a test task list based on the received test task request, and the test task list includes at least one test task.
  • the above execution unit 302 may be configured to obtain the currently assigned tasks of at least one terminal.
  • the above extracting unit 303 may be configured to respond to the calculated load information of all terminals executing the currently assigned tasks, and based on the load information, use different task allocation rules to assign test tasks in the test task list to each terminal, wherein the load information Including the estimated time-consuming and the amount of data generated by each terminal to execute the currently assigned tasks.
  • the generation unit 301 the acquisition unit 302
  • the specific processing of the execution unit 303 and the technical effects brought by them can refer to the steps 101, 102, Relevant descriptions of step 103 will not be repeated here.
  • the foregoing apparatus 300 further includes: an allocation unit (not shown in the figure).
  • the allocation unit is configured to allocate the test tasks in the test task list to each terminal in real time in response to the fact that the load information of all terminals executing the currently allocated tasks cannot be calculated and the test tasks in the test task list are greater than a preset number.
  • the execution unit 303 includes: a determination module (not shown in the figure), and an execution module (not shown in the figure).
  • the determining module is configured to determine a light-loaded terminal and a heavy-loaded terminal in at least one terminal based on the load information.
  • the above execution module is configured to assign test tasks in the test task list to each terminal by using different task allocation rules based on the proportion of light-load terminals and heavy-load terminals in all terminals.
  • the execution module includes: a two-terminal module (not shown in the figure), and a test sub-module (not shown in the figure).
  • the above-mentioned two-terminal module is configured to respond to at least one terminal including a light-load terminal and a heavy-load terminal, and sequentially assign a part of test tasks in the test task list to the light-load terminal until the load information of the light-load terminal and the heavy-load terminal The load information is the same.
  • the above-mentioned testing submodule is configured to, in response to determining that there are remaining testing tasks in the testing task list, allocate remaining testing tasks to all terminals in real time.
  • the above execution model includes: a light terminal module (not shown in the figure), and a first distribution sub-module (not shown in the figure).
  • the above-mentioned light terminal module is configured to, in response to determining that all terminals are light-load terminals, calculate the task quantity of the test task and the terminal quantity of all terminals in the test task list.
  • the above-mentioned first allocation submodule is configured to assign M test tasks in the test task list to each terminal of the first remainder terminals of all terminals in response to the number of tasks being greater than the number of terminals and the remainder of the two is not zero, and All terminals except the first remaining terminals are assigned N test tasks in the test task list, where M is the number obtained by adding one to the quotient of the number of tasks and the number of terminals, and N is the quotient of the number of tasks and the number of terminals .
  • the execution module further includes: a second allocation submodule (not shown in the figure).
  • the above-mentioned second assigning sub-module is configured to assign a test task in the test task list to each terminal of the number of previous tasks of all terminals in response to the number of tasks being less than or equal to the number of terminals.
  • the execution module includes: a heavy terminal module (not shown in the figure).
  • the heavy terminal module is configured to assign test tasks in the test task list to each terminal in real time in response to determining that all terminals are heavy load terminals.
  • the generation unit 301 generates a test task list based on the received test task request, and the test task list includes at least one test task; again, the acquisition unit 302 acquires at least one terminal. The currently assigned tasks; finally, the execution unit 303 responds to the calculated load information of all terminals executing the currently assigned tasks, and based on the load information, adopts different task assignment rules to assign test tasks in the test task list to each terminal.
  • test tasks are allocated to each terminal based on different task allocation rules, which ensures the load balance of each terminal in all terminals when performing test tasks; compared with artificial Allocation of test tasks improves the efficiency of task allocation.
  • the acquisition, storage and application of the user's personal information involved are in compliance with relevant laws and regulations, and do not violate public order and good customs.
  • the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
  • FIG. 4 shows a schematic block diagram of an example electronic device 400 that may be used to implement embodiments of the present disclosure.
  • Electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers.
  • Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smart phones, wearable devices, and other similar computing devices.
  • the components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and claimed herein.
  • the device 400 includes a computing unit 401 that can execute according to a computer program stored in a read-only memory (ROM) 402 or loaded from a storage unit 408 into a random access memory (RAM) 403. Various appropriate actions and treatments. In the RAM 403, various programs and data necessary for the operation of the device 400 can also be stored.
  • the computing unit 401, ROM 402 and RAM 403 are connected to each other through a bus 404.
  • An input/output (I/O) interface 405 is also connected to bus 404 .
  • the I/O interface 405 includes: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a magnetic disk, an optical disk, etc. ; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, and the like.
  • the communication unit 409 allows the device 400 to exchange information/data with other devices through a computer network such as the Internet and various telecommunication networks.
  • Computing unit 401 may be various general and special purpose processing components with processing and computing capabilities. Some examples of computing units 401 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc.
  • the calculation unit 401 executes various methods and processes described above, such as a task allocation method.
  • the task allocation method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 408 .
  • part or all of the computer program can be loaded and installed on the device 400 via the ROM 402 and the communication unit 409.
  • the computing unit 401 When the computer program is loaded into RAM 403 and executed by computing unit 401, one or more steps of the task allocation method described above may be performed.
  • the computing unit 401 may be configured in any other appropriate way (for example, by means of firmware) to execute the task allocation method.
  • programmable processor capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device device.
  • Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to processors or controllers of general-purpose computers, special-purpose computers, or other programmable task distribution devices, so that when the program codes are executed by the processors or controllers, the functions/operations specified in the flowcharts and block diagrams are executed implement.
  • the program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user. ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer.
  • a display device e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor
  • a keyboard and pointing device eg, a mouse or a trackball
  • Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.
  • the systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system.
  • the components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
  • a computer system may include clients and servers.
  • Clients and servers are generally remote from each other and typically interact through a communication network.
  • the relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.
  • the server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.
  • steps may be reordered, added or deleted using the various forms of flow shown above.
  • each step described in the present disclosure may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Telephone Function (AREA)

Abstract

一种任务分配方法和装置,涉及在线测试、云计算等技术领域。具体实现方案为:基于接收到的测试任务请求,生成测试任务列表,测试任务列表包括至少一个测试任务;获取至少一个终端的当前已分配任务;响应于计算到所有终端执行当前已分配任务的负载信息,基于负载信息,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务,其中,负载信息包括各个终端执行当前已分配任务所估计的耗时以及所产生的数据量。

Description

任务分配方法和装置、电子设备、计算机可读介质
本专利申请要求于2021年6月17日提交的、申请号为202110672212.4、发明名称为“任务分配方法和装置、电子设备、计算机可读介质”的中国专利申请的优先权,该申请的全文以引用的方式并入本申请中。
技术领域
本公开涉及任务分配技术领域,具体涉及在线测试、云计算等技术领域,尤其涉及一种任务分配方法和装置、电子设备、计算机可读介质以及计算机程序产品。
背景技术
现在国内已经拥有了庞大数量的手机用户群体,且其丰富的应用成为手机用户的装机必备。而一款应用能让用户长期选择使用,必须具有良好的功能,因此在手机产品上线之前需要做大量的测试工作。
在对手机进行测试的测试任务的数量经常可能会达到成百上千条,如果采用人工进行测试,成本较高,且效率也比较低,无法达到为各个手机均衡分配测试任务的目的。
发明内容
提供了一种任务分配方法和装置、电子设备、计算机可读介质以及计算机程序产品。
根据第一方面,提供了一种任务分配方法,该方法包括:基于接收到的测试任务请求,生成测试任务列表,测试任务列表包括至少一个测试任务;获取至少一个终端的当前已分配任务;响应于计算到所有终端执行当前已分配任务的负载信息,基于负载信息,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务,其中,负载信息包括各个终端执行当前已分配任务所估计的耗时以及所产生的数据量。
根据第二方面,提供了一种任务分配装置,该装置包括:生成单元, 被配置成基于接收到的测试任务请求,生成测试任务列表,测试任务列表包括至少一个测试任务;获取单元,被配置成获取至少一个终端的当前已分配任务;执行单元,被配置成响应于计算到所有终端执行当前已分配任务的负载信息,基于负载信息,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务,其中,负载信息包括各个终端执行当前已分配任务所估计的耗时以及所产生的数据量。
根据第三方面,提供了一种电子设备,该电子设备包括:至少一个处理器;以及与至少一个处理器通信连接的存储器,其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行如第一方面任一实现方式描述的方法。
根据第四方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,计算机指令用于使计算机执行如第一方面任一实现方式描述的方法。
根据第五方面,提供了一种计算机程序产品,包括计算机程序,计算机程序在被处理器执行时实现如第一方面任一实现方式描述的方法。
本公开的实施例提供的任务分配方法和装置,首先,基于接收到的测试任务请求,生成测试任务列表,测试任务列表包括至少一个测试任务;再次,获取至少一个终端的当前已分配任务;最后,响应于计算到所有终端执行当前已分配任务的负载信息,基于负载信息,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务。由此,在可以计算到所有终端执行当前已分配任务的负载信息时,基于不同任务分配规则为各个终端分配测试任务,保证了所有终端中各个终端执行测试任务时负载的均衡性;相对于人工分配测试任务,提高了任务分配效率。
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。
附图说明
附图用于更好地理解本方案,不构成对本公开的限定。其中:
图1是根据本公开任务分配方法的一个实施例的流程图;
图2是根据本公开任务分配方法的另一个实施例的流程图;
图3是根据本公开任务分配装置的实施例的结构示意图;
图4是用来实现本公开实施例的任务分配方法的电子设备的框图。
具体实施方式
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。
图1示出了根据本公开任务分配方法的一个实施例的流程100,上述任务分配方法包括以下步骤:
步骤101,基于接收到的测试任务请求,生成测试任务列表。
在本实施例中,任务分配方法运行于其上的电子设备可以通过有线连接方式或者无线连接方式接收服务器发送的任务请求。该任务请求例如可以为测试终端的显示分辨率的请求、可以为获取终端刷屏频率请求等。在这里,上述任务请求可以为一个请求,也可以为多个请求。上述电子设备接收到任务请求后,基于任务请求,生成测试任务列表。当上述电子设备将测试任务发送给终端之后,终端执行测试任务,并将执行测试任务的结果反馈给上述电子设备。
本实施例中,生成的测试任务列表中的测试任务是基于测试任务请求,还未向任何终端分配的任务,上述电子设备组合所有的测试任务待向现有在线的终端分配。
步骤102,获取至少一个终端的当前已分配任务。
本实施例中,终端(Terminal)也称终端设备,是计算机网络中处于网络最外围的设备,主要用于用户信息的输入以及处理结果的输出等。
本实施例中,终端设备可以是移动终端、设备终端等,终端还可以是与云计算技术结合的移动终端,例如云手机(Cloud phone),云手机就是将云计算技术运用于网络终端服务,通过云服务器实现云服务的手机。云 手机是深度结合了网络服务的智能手机,这类手机凭借自带的系统以及厂商架设的网络终端可以通过网络实现众多的功能。
云手机充分利用移动宽带网络、手机在线的特性和云技术的特点,把手机和整个网络体系联系起来。
本实施例中,至少一个终端是在当前网络中在线的终端,各个终端正在执行当前已分配的任务或者已经完成所有当前已分配的任务,上述电子设备根据所有终端当前已分配的任务计算各个终端的任务负载,从而确定是否向终端分配测试任务。
本实施例中,各个终端的当前已分配的任务可以是测试任务也可以是其他终端需要执行的任务,对此,本公开不做限定。
步骤103,响应于计算到所有终端执行当前已分配任务的负载信息,基于负载信息,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务。
其中,负载信息包括各个终端执行当前已分配任务所估计的耗时以及所产生的数据量。
本实施例中,所有终端是对上述至少一个终端的全部的统称,即所有终端也等于至少一个终端。
本实施例中,终端执行当前已分配任务的负载信息存在可以计算和无法计算两种情况,而终端执行当前已分配任务的负载信息是否可以计算根据终端执行当前已分配任务是否有历史运行数据确定。
当当前已分配任务是第一次分配给终端,并且该已分配任务没有任何历史运行数据,无法估算或计算各个终端执行当前已分配任务的耗时以及产生的数据量。
当当前已分配任务具有历史运行数据时,即使当前已分配任务没有执行完成,其也可以通过历史运行数据确定当前已分配任务的历史耗时以及历史数据量,通过估算所有历史耗时以及历史数据量的平均值估算当前已分配任务的负载信息。
本实施例中,任务分配规则可以为至少两个,每两个任务分配规则不相同。至少两个任务分配规则可以包括:平均任务分配规则、实时任务分配规则。
本实施例中,上述实时任务分配规则包括:为各个终端实时分配测试任务列表中的测试任务。该实时任务分配规则可以在所有终端中多个个终端处于空闲状态时,实时的依次为该多个终端分配测试任务列表中的测试任务。
本实施例中,上述平均任务分配规则包括:计算测试任务列表中的测试任务的任务数量和所有终端的终端数量;在任务数量大于终端数量且两者的余数不为零时,向所有终端的前余数个终端的每个终端分配测试任务列表中M个测试任务,向所有终端中除前余数个终端之外的每个终端分配测试任务列表中N个测试任务,其中,M为任务数量与终端数量之商加一得到的数量,N为任务数量与终端数量之商;在任务数量小于或等于终端数量时,向所有终端的前任务数量个终端的每个终端分配测试任务列表中的一个测试任务。
本实施例中,上述基于负载信息,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务,可以包括:
当所有终端中各个终端执行当前已分配任务所估计的耗时大于设定时间,或者产生的数据量大于设定数据量时,采用实时任务分配规则为各个终端分配测试任务列表中的测试任务。当所有终端中各个终端执行当前已分配任务所估计的耗时小于或等于设定时间,或者产生的数据量小于或等于设定数据量时,采用平均任务分配规则为各个终端分配测试任务列表中的测试任务。本实施例中,设定时间或设定数据量是根据已分配任务的种类等信息计算得到的时间或者数量。
可选地,上述基于负载信息,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务,还可以包括:
当所有终端中部分终端执行当前已分配任务所估计的耗时大于设定时间时,采用实时任务分配规则为该部分终端分配测试任务列表中的部分测试任务;而采用平均任务分配规则为所有终端中除该部分终端之外的终端分配测试任务列表中除该部分测试任务之外的测试任务。
本实施例中,当所有终端都已结束运行测试任务列表的所有测试任务,各个终端将各自执行测试任务的测试结果输出到上述电子设备,生成测试报告,整个测试流程结束。
本公开的实施例提供的任务分配方法,首先,基于接收到的测试任务请求,生成测试任务列表,测试任务列表包括至少一个测试任务;再次,获取至少一个终端的当前已分配任务;最后,响应于计算到所有终端执行当前已分配任务的负载信息,基于负载信息,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务。由此,在可以计算到所有终端执行当前已分配任务的负载信息时,基于不同任务分配规则为各个终端分配测试任务,保证了所有终端中各个终端执行测试任务时负载的均衡性;相对于人工分配测试任务,提高了任务分配效率。
在本实施例的一些可选实现方式中,响应于无法计算到所有终端执行当前已分配任务的负载信息且测试任务列表中的测试任务大于预设数量,为各个终端实时分配测试任务列表中的测试任务。
本可选实现方式中,基于已分配任务的种类不同,终端当前已分配任务中操作步骤可能需要操作人员参与,而操作人员的操作时间和反映时间因人而已,在操作人员未操作时,已分配任务的负载信息是无法估算的;进一步,终端执行当前已分配任务的负载信息是否可以估算还基于当前已分配任务是否有历史运行数据,在当前已分配任务没有任何历史运行数据时,需要为各个终端实时分配测试任务,即执行实时任务分配规则。
本可选实现方式,在无法计算到所有终端执行当前已分配任务的负载信息时,通过为实时为各个终端分配测试任务,提高了各个终端得到测试任务的效率。
在本实施例的一些可选实现方式中,上述基于负载信息,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务包括:
基于负载信息,确定至少一个终端中的轻载终端和重载终端;基于轻载终端、重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务。
本实施例中,轻载终端是指至少一个终端中当前已分配任务的耗时小于或等于时间阈值的终端,重载终端是指至少一个终端中当前已分配任务的耗时大于时间阈值的终端,其中,时间阈值可以为已分配任务的历史执 行耗时的平均值。
本实施例中,轻载终端、重载终端在所有终端中的占比是指轻载终端和重载终端分别在至少一个终端中的含量,比如,至少一个终端均为轻载终端,则轻载终端占所有终端的全部;至少一个终端均为重载终端,则重载终端占所有终端的全部。
可选地,上述基于轻载终端、重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务可以包括:
当所有终端中各个终端均为重载终端时,采用实时任务分配规则为各个终端分配测试任务列表中的测试任务。当所有终端中各个终端均为轻载终端时,采用平均任务分配规则为各个终端分配测试任务列表中的测试任务。
本可选实现方式中,将所有终端区分为轻载终端和重载终端,基于轻载终端、重载终端在所有终端中的占比,采用不同的任务分配规则分配测试任务,保证了轻载终端和重载终端的任务的均衡性。
在本实施例的一些可选实现方式中,上述基于轻载终端、重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务,包括:响应于至少一个终端包括轻载终端和重载终端,依次为轻载终端分配测试任务列表中的一部分测试任务,直至轻载终端的负载信息与重载终端的负载信息相同;响应于确定测试任务列表中具有剩余的测试任务,为所有终端实时分配剩余的测试任务。
本可选方式中,根据轻载终端已有的负载信息,依次分配测试任务的任务量达到与重载终端的平均耗时相当的测试任务;当此轮分配任务执行结束,会释放出更多的终端,剩下的测试列表中的测试任务采用实时任务分配规则对所有的终端的进行分配。
可选地,当检测到测试任务列表中没有剩余的测试任务,无需再向任何终端分配任何测试任务。
本实施例的可选实现方式中,在所有终端中具有轻载终端和重载终端时,先为轻载终端分配测试任务,以使轻载终端与重载终端的负载相当之后,保证在线的终端可以均具有相同的负载量,保证了终端中所有的资源 尽可能充分的利用。
在本实施例的一些可选实现方式中,上述基于轻载终端、重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务,包括:响应于确定所有终端均为轻载终端,计算测试任务列表中的测试任务的任务数量和所有终端的终端数量;响应于任务数量大于终端数量且两者的余数不为零,则向所有终端的前余数个终端的每个终端分配测试任务列表中M个测试任务,向所有终端中除前余数个终端之外的每个终端分配测试任务列表中N个测试任务,其中,M为任务数量与终端数量之商加一得到的数量,N为任务数量与终端数量之商。
本可选实现方式采用的任务分配规则是平均任务分配规则,而当所有终端均为轻载终端时,重载终端在所有终端中的占比是零。
本实施例中,至少一个终端中的每个终端均可以执行测试列表中的测试任务,比如当前第一测试任务是发送给第一终端运行的,在另一个任务测试列表中的第一测试任务可能将会发送给第二终端执行,其中,第一终端和第二终端均为至少一个终端中的终端。
在一个示例中,电子设备向N个云手机(该N个云手机均是轻载终端)分配M个测试任务,当M>N时,设a=M%N,则前a个云手机设备有M/N+1个测试任务,其他有M/N个测试任务,再如M是100,N是8,那么a是4,M/N=12,即8个云手机中4台云手机均被分配为12+1个测试任务,另外4台被分配为12个测试任务。
本可选实现方式中,在所有终端均为轻载终端时,采用上述任务分配规则为各个终端分配测试任务,分配方式比较直接,节省了任务分配时的时间。
在本实施例的一些可选实现方式中,上述基于轻载终端、重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务,还包括:响应于任务数量小于或等于终端数量,则向所有终端的前任务数量个终端的每个终端分配测试任务列表中的一个测试任务。
本可选实现方式中,还以电子设备向N个云手机(该N个云手机均是轻载终端)分配M个测试任务,当M≤N个时,前M个设备每个都分配一个测试任务;上述分配规则也属于平均任务分配规则,在所有终端为轻载终端时,采用平均任务分配规则分配测试任务,比较直接,但因为每个测试任务的时间可能不固定也不尽相同,因此效率可能没有达到最优。
本可选实现方式中,基于任务数量和终端数量,采用直接分配规则为各个终端分配一个测试任务,保证了测试任务实施的有效性。
在本实施例的一些可选实现方式中,上述基于轻载终端、重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务,包括:响应于确定所有终端均为重载终端,为各个终端实时分配测试任务列表中的测试任务。
本可选实现方式采用的任务分配规则为实时任务分配规则,而当所有终端均为重载终端时,轻载终端在所有终端中的占比是零。
本可选实现方式中,为各个终端实时分配测试任务列表中的测试任务采用的是实时任务分配规则,实时任务分配规则:先进行第一轮的任务分配,每个终端分配一个测试任务;每当一个终端的测试任务执行完成(通过上述电子设备与终端进行通信运行测试任务,这个运行过程是阻塞的,终端运行测试任务结束后,向上述电子设备返回运行结果,即可确定终端是否执行完成),如果此时测试任务列表中还有待运行的测试任务,则分配一个测试任务给任务完成的终端,直至测试任务列表中所有测试任务全部分配完成。
本可选实现方式中,在所有终端均为重载终端时,实时为各个终端分配测试任务,可以提高各个终端运行测试任务的效率。
如图2,示出了根据本公开任务分配方法的另一个实施例的流程图,上述任务分配方法包括以下步骤:
步骤201,基于接收到的测试任务请求,生成测试任务列表,之后,执行步骤202。
步骤202,获取至少一个终端的当前已分配任务,之后,执行步骤203。
应当理解,上述步骤201-步骤202中的操作和特征,分别与步骤101-102中的操作和特征相对应,因此,上述在步骤101-102中对于操作和特征的描述,同样适用于步骤201-步骤202,在此不再赘述。
步骤203,判断是否可以计算所有终端执行当前已分配任务的负载信息;若可以计算所有终端执行当前已分配任务的负载信息,执行步骤204;否则,执行步骤208。
本实施例中,通过获取各个终端的执行当前已分配任务的历史数据,并基于历史数据的有、无,可以确定是否可以计算负载信息。具体地,当没有终端执行当前已分配任务的历史数据时,确定无法计算终端执行当前已分配任务的负载信息。当有终端执行当前已分配任务的历史数据时,确定可以计算终端执行当前已分配任务的负载信息。
步骤204,确定至少一个终端中的轻载终端和重载终端,并计算轻载终端、重载终端在所有终端中的占比,之后,执行步骤205。
本实施例中,至少一个终端可以全部是轻载终端,也可以全部是重载负载,还可以既包括轻载终端还包括重载负载。
步骤205,基于占比,判断所有终端是否均为轻载终端,若所有终端均为轻载终端,执行步骤206;若所有终端不全部为轻载终端,执行步骤209。
步骤206,采用平均任务分配规则为各个终端分配测试任务列表中的测试任务,之后,执行步骤207。
本实施例中,上述平均任务分配规则包括:计算测试任务列表中的测试任务的任务数量和所有终端的终端数量;在任务数量大于终端数量且两者的余数不为零时,向所有终端的前余数个终端的每个终端分配测试任务列表中M个测试任务,向所有终端中除前余数个终端之外的每个终端分配测试任务列表N个测试任务,其中,M为任务数量与终端数量之商加一得到的数量,N为任务数量与终端数量之商;在任务数量小于或等于终端数量时,向所有终端的前任务数量个终端的每个终端分配测试任务列表中的一个测试任务。
步骤207,结束。
步骤208,采用实时任务分配规则为各个终端分配测试任务列表中的 测试任务,之后,执行步骤207。
本实施例中,实时任务分配规则包括:为各个终端实时分配测试任务列表中的测试任务。该实时任务分配规则可以在所有终端中多个个终端处于空闲状态时,实时的依次为该多个终端分配测试任务列表中的测试任务。进一步,实时任务分配规则还可以包括:先进行第一轮的任务分配,每个终端分配一个测试任务;每当一个终端的测试任务执行完成(通过上述电子设备与终端进行通信运行测试任务,这个运行过程是阻塞的,终端运行测试任务结束后,向上述电子设备返回运行结果,即可确定终端是否执行完成),如果此时测试任务列表中还有待运行的测试任务,则分配一个测试任务给任务完成的终端,直至测试任务列表中所有测试任务全部分配完成。
步骤209,判断所有终端是否均为重载终端,若所有终端均为重载终端,执行步骤208;若所有终端不是全部为重载终端,执行步骤210。
步骤210,采用均衡任务分配规则为各个终端分配测试任务列表中的测试任务,之后,执行步骤207。
本实施例中,上述均衡任务分配规则包括:在所有终端中包括轻载终端和重载终端时,依次为轻载终端分配测试任务列表中的一部分测试任务,直至轻载终端的负载信息与重载终端的负载信息相同;响应于确定测试任务列表中具有剩余的测试任务,为所有终端实时分配剩余的测试任务。
本实施例中,基于终端的负载信息,采用均衡任务分配规则、平均任务分配规则、实时任务分配规则三种不同的任务分配规则为各个终端分配测试任务列表中的测试任务,保证了测试任务分配的均衡性和合理性。
进一步参考图3,作为对上述各图所示方法的实现,本公开提供了任务分配装置的一个实施例,该装置实施例与图1所示的方法实施例相对应,该装置具体可应用于各种电子设备中。
如图3所示,本实施例提供的任务分配装置300包括:生成单元301,获取单元302,执行单元303。其中,上述生成单元301,可以被配置成基于接收到的测试任务请求,生成测试任务列表,测试任务列表包括至少一个测试任务。上述执行单元302,可以被配置成获取至少一个终端的当前 已分配任务。上述提取单元303,可以被配置成响应于计算到所有终端执行当前已分配任务的负载信息,基于负载信息,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务,其中,负载信息包括各个终端执行当前已分配任务所估计的耗时以及所产生的数据量。
在本实施例中,任务分配装置300中:生成单元301,获取单元302,执行单元303的具体处理及其所带来的技术效果可分别参考图1对应实施例中的步骤101、步骤102、步骤103的相关说明,在此不再赘述。
在本实施例的一些可选的实现方式中,上述装置300还包括:分配单元(图中未示出)。其中,上述分配单元,被配置成响应于无法计算到所有终端执行当前已分配任务的负载信息且测试任务列表中的测试任务大于预设数量,为各个终端实时分配测试任务列表中的测试任务。
在本实施例的一些可选的实现方式中,上述执行单元303包括:确定模块(图中未示出),执行模块(图中未示出)。其中,上述确定模块,被配置成基于负载信息,确定至少一个终端中的轻载终端和重载终端。上述执行模块,被配置成基于轻载终端、重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务。
在本实施例的一些可选的实现方式中,上述执行模块包括:双端子模块(图中未示出),测试子模块(图中未示出)。其中,上述双端子模块,被配置成响应于至少一个终端包括轻载终端和重载终端,依次为轻载终端分配测试任务列表中的一部分测试任务,直至轻载终端的负载信息与重载终端的负载信息相同。上述测试子模块,被配置成响应于确定测试任务列表中具有剩余的测试任务,为所有终端实时分配剩余的测试任务。
在本实施例的一些可选的实现方式中,上述执行模型包括:轻端子模块(图中未示出),第一分配子模块(图中未示出)。其中,上述轻端子模块,被配置成响应于确定所有终端均为轻载终端,计算测试任务列表中的测试任务的任务数量和所有终端的终端数量。上述第一分配子模块,被配置成响应于任务数量大于终端数量且两者的余数不为零,则向所有终端的前余数个终端的每个终端分配测试任务列表中M个测试任务,向所有终端中除前余数个终端之外的每个终端分配测试任务列表中N个测试任务,其中,M为任务数量与终端数量之商加一得到的数量,N为任务数量 与终端数量之商。
在本实施例的一些可选的实现方式中,上述执行模块还包括:第二分配子模块(图中未示出)。其中,上述第二分配子模块,被配置成响应于任务数量小于或等于终端数量,则向所有终端的前任务数量个终端的每个终端分配测试任务列表中的一个测试任务。
在本实施例的一些可选的实现方式中,上述执行模块包括:重端子模块(图中未示出)。其中,重端子模块被配置成响应于确定所有终端均为重载终端,为各个终端实时分配测试任务列表中的测试任务。
本公开的实施例提供的任务分配方法和装置,首先,生成单元301基于接收到的测试任务请求,生成测试任务列表,测试任务列表包括至少一个测试任务;再次,获取单元302获取至少一个终端的当前已分配任务;最后,执行单元303响应于计算到所有终端执行当前已分配任务的负载信息,基于负载信息,采用不同的任务分配规则为各个终端分配测试任务列表中的测试任务。由此,在可以计算到所有终端执行当前已分配任务的负载信息时,基于不同任务分配规则为各个终端分配测试任务,保证了所有终端中各个终端执行测试任务时负载的均衡性;相对于人工分配测试任务,提高了任务分配效率。
本公开的技术方案中,所涉及的用户个人信息的获取,存储和应用等,均符合相关法律法规的规定,且不违背公序良俗。
根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。
图4示出了可以用来实施本公开的实施例的示例电子设备400的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和者要求的本公开的实现。
如图4所示,设备400包括计算单元401,其可以根据存储在只读存 储器(ROM)402中的计算机程序或者从存储单元408加载到随机访问存储器(RAM)403中的计算机程序,来执行各种适当的动作和处理。在RAM 403中,还可存储设备400操作所需的各种程序和数据。计算单元401、ROM 402以及RAM403通过总线404彼此相连。输入/输出(I/O)接口405也连接至总线404。
设备400中的多个部件连接至I/O接口405,包括:输入单元406,例如键盘、鼠标等;输出单元407,例如各种类型的显示器、扬声器等;存储单元408,例如磁盘、光盘等;以及通信单元409,例如网卡、调制解调器、无线通信收发机等。通信单元409允许设备400通过诸如因特网的计算机网络和各种电信网络与其他设备交换信息/数据。
计算单元401可以是各种具有处理和计算能力的通用和专用处理组件。计算单元401的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元401执行上文所描述的各个方法和处理,例如任务分配方法。例如,在一些实施例中,任务分配方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元408。在一些实施例中,计算机程序的部分或者全部可以经由ROM 402和通信单元409而被载入和安装到设备400上。当计算机程序加载到RAM 403并由计算单元401执行时,可以执行上文描述的任务分配方法的一个或多个步骤。备选地,在其他实施例中,计算单元401可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行任务分配方法。
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指 令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程任务分配装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部 件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,也可以为分布式系统的服务器,或者是结合了区块链的服务器。
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。

Claims (17)

  1. 一种任务分配方法,所述方法包括:
    基于接收到的测试任务请求,生成测试任务列表,所述测试任务列表包括至少一个测试任务;
    获取至少一个终端的当前已分配任务;
    响应于计算到所有终端执行当前已分配任务的负载信息,基于所述负载信息,采用不同的任务分配规则为各个终端分配所述测试任务列表中的测试任务,其中,所述负载信息包括各个终端执行当前已分配任务所估计的耗时以及所产生的数据量。
  2. 根据权利要求1所述的方法,所述方法还包括:
    响应于无法计算到所有终端执行当前已分配任务的负载信息且所述测试任务列表中的测试任务大于预设数量,为各个终端实时分配所述测试任务列表中的测试任务。
  3. 根据权利要求1或2所述的方法,其中,所述基于所述负载信息,采用不同的任务分配规则为各个终端分配所述测试任务列表中的测试任务包括:
    基于所述负载信息,确定所述至少一个终端中的轻载终端和重载终端;
    基于所述轻载终端、所述重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配所述测试任务列表中的测试任务。
  4. 根据权利要求3所述的方法,其中,所述基于所述轻载终端、所述重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配所述测试任务列表中的测试任务,包括:
    响应于所述至少一个终端包括轻载终端和重载终端,依次为所述轻载终端分配所述测试任务列表中的一部分测试任务,直至所述轻载终端的负载信息与所述重载终端的负载信息相同;
    响应于确定所述测试任务列表中具有剩余的测试任务,为所有终端实时分配所述剩余的测试任务。
  5. 根据权利要求3所述的方法,其中,所述基于所述轻载终端、所述重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配所述测试任务列表中的测试任务,包括:
    响应于确定所有终端均为轻载终端,计算所述测试任务列表中的测试任务的任务数量和所有终端的终端数量;
    响应于所述任务数量大于所述终端数量且两者的余数不为零,则向所有终端的前余数个终端的每个终端分配所述测试任务列表中M个测试任务,向所有终端中除前余数个终端之外的每个终端分配所述测试任务列表中N个测试任务,其中,M为任务数量与终端数量之商加一得到的数量,N为任务数量与终端数量之商。
  6. 根据权利要求5所述的方法,其中,所述基于所述轻载终端、所述重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配所述测试任务列表中的测试任务,还包括:
    响应于所述任务数量小于或等于所述终端数量,则向所有终端的前任务数量个终端的每个终端分配所述测试任务列表中的一个测试任务。
  7. 根据权利要求3所述的方法,其中,所述基于所述轻载终端、所述重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配所述测试任务列表中的测试任务,包括:
    响应于确定所有终端均为重载终端,为各个终端实时分配所述测试任务列表中的测试任务。
  8. 一种任务分配装置,所述装置包括:
    生成单元,被配置成基于接收到的测试任务请求,生成测试任务列表,所述测试任务列表包括至少一个测试任务;
    获取单元,被配置成获取至少一个终端的当前已分配任务;
    执行单元,被配置成响应于计算到所有终端执行当前已分配任务的负载信息,基于所述负载信息,采用不同的任务分配规则为各个终端分配所述测试任务列表中的测试任务,其中,所述负载信息包括各个终端执行当前已分配任务所估计的耗时以及所产生的数据量。
  9. 根据权利要求8所述的装置,所述装置还包括:
    分配单元,被配置成响应于无法计算到所有终端执行当前已分配任务的负载信息且所述测试任务列表中的测试任务大于预设数量,为各个终端实时分配所述测试任务列表中的测试任务。
  10. 根据权利要求8或9所述的装置,其中,所述执行单元包括:
    确定模块,被配置成基于所述负载信息,确定所述至少一个终端中的轻载终端和重载终端;
    执行模块,被配置成基于所述轻载终端、所述重载终端在所有终端中的占比,采用不同的任务分配规则为各个终端分配所述测试任务列表中的测试任务。
  11. 根据权利要求10所述的装置,其中,所述执行模块包括:
    双端子模块,被配置成响应于所述至少一个终端包括轻载终端和重载终端,依次为所述轻载终端分配所述测试任务列表中的一部分测试任务,直至所述轻载终端的负载信息与所述重载终端的负载信息相同;
    测试子模块,被配置成响应于确定所述测试任务列表中具有剩余的测试任务,为所有终端实时分配所述剩余的测试任务。
  12. 根据权利要求10所述的装置,其中,所述执行模块包括:
    轻端子模块,被配置成响应于确定所有终端均为轻载终端,计算所述测试任务列表中的测试任务的任务数量和所有终端的终端数量;
    第一分配子模块,被配置成响应于所述任务数量大于所述终端数量且两者的余数不为零,则向所有终端的前余数个终端的每个终端分配所述测试任务列表中M个测试任务,向所有终端中除前余数个终端之外的 每个终端分配所述测试任务列表中N个测试任务,其中,M为任务数量与终端数量之商加一得到的数量,N为任务数量与终端数量之商。
  13. 根据权利要求12所述的装置,其中,所述执行模块还包括:
    第二分配子模块,被配置成响应于所述任务数量小于或等于所述终端数量,则向所有终端的前任务数量个终端的每个终端分配所述测试任务列表中的一个测试任务。
  14. 根据权利要求10所述的装置,其中,所述执行模块包括:
    重端子模块,被配置成响应于确定所有终端均为重载终端,为各个终端实时分配所述测试任务列表中的测试任务。
  15. 一种电子设备,其特征在于,包括:
    至少一个处理器;以及
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-7中任一项所述的方法。
  16. 一种存储有计算机指令的非瞬时计算机可读存储介质,其特征在于,所述计算机指令用于使所述计算机执行权利要求1-7中任一项所述的方法。
  17. 一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现权利要求1-7中任一项所述的方法。
PCT/CN2021/143052 2021-06-17 2021-12-30 任务分配方法和装置、电子设备、计算机可读介质 WO2022262253A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2022552966A JP7489478B2 (ja) 2021-06-17 2021-12-30 タスク割り当て方法と装置、電子デバイス、コンピュータ可読媒体
EP21928339.7A EP4167096A4 (en) 2021-06-17 2021-12-30 TASK ASSIGNMENT METHOD AND APPARATUS, ELECTRONIC DEVICE AND COMPUTER-READABLE STORAGE MEDIUM
KR1020227033552A KR20220139407A (ko) 2021-06-17 2021-12-30 태스크 할당 방법 및 장치, 전자 기기 및 컴퓨터 판독가능 매체
US17/938,439 US20230062632A1 (en) 2021-06-17 2022-10-06 Method and Apparatus for Assigning Task, Electronic Device and Computer Readable Medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110672212.4A CN113342665B (zh) 2021-06-17 2021-06-17 任务分配方法和装置、电子设备、计算机可读介质
CN202110672212.4 2021-06-17

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/938,439 Continuation US20230062632A1 (en) 2021-06-17 2022-10-06 Method and Apparatus for Assigning Task, Electronic Device and Computer Readable Medium

Publications (1)

Publication Number Publication Date
WO2022262253A1 true WO2022262253A1 (zh) 2022-12-22

Family

ID=77475982

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/143052 WO2022262253A1 (zh) 2021-06-17 2021-12-30 任务分配方法和装置、电子设备、计算机可读介质

Country Status (2)

Country Link
CN (1) CN113342665B (zh)
WO (1) WO2022262253A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342665B (zh) * 2021-06-17 2023-10-20 北京百度网讯科技有限公司 任务分配方法和装置、电子设备、计算机可读介质
CN116720645A (zh) * 2022-10-21 2023-09-08 荣耀终端有限公司 一种任务分配方法、分配设备及任务分配系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107580023A (zh) * 2017-08-04 2018-01-12 山东大学 一种动态调整任务分配的流处理作业调度方法及系统
US20190294532A1 (en) * 2018-03-26 2019-09-26 Hyperconnect, Inc. Computer program and server for executing test group distribution method
CN110866167A (zh) * 2019-11-14 2020-03-06 北京知道创宇信息技术股份有限公司 任务分配方法、装置、服务器和存储介质
CN111131447A (zh) * 2019-12-23 2020-05-08 曲阜师范大学 一种基于中介节点任务分配的负载均衡方法
CN111782383A (zh) * 2020-08-26 2020-10-16 北京元心科技有限公司 任务分配方法、服务器、电子终端及计算机可读存储介质
CN113342665A (zh) * 2021-06-17 2021-09-03 北京百度网讯科技有限公司 任务分配方法和装置、电子设备、计算机可读介质

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369054B (zh) * 2013-07-30 2016-05-18 北京搜狐新媒体信息技术有限公司 一种采集任务管理方法及系统
CN104378412A (zh) * 2014-10-15 2015-02-25 东南大学 云环境下意识到用户周期性资源需求的动态负载均衡方法
EP3332303A1 (en) * 2015-08-07 2018-06-13 Khalifa University of Science, Technology and Research Methods and systems for workload distribution
CN105049268B (zh) * 2015-08-28 2018-12-28 东方网力科技股份有限公司 分布式计算资源分配系统和任务处理方法
CN106101276B (zh) * 2016-08-10 2019-07-09 东方网力科技股份有限公司 一种集群负载均衡方法及装置
CN106803134B (zh) * 2017-01-06 2020-10-09 杭州电子科技大学 基于协作相容性的工作流分配优化方法及其系统
CN109218341B (zh) * 2017-06-29 2022-02-25 北京京东尚科信息技术有限公司 用于监控服务器和用于服务器的负载均衡方法和装置
CN109120679B (zh) * 2018-07-27 2021-09-28 平安科技(深圳)有限公司 任务分配方法及装置
CN110647401B (zh) * 2019-09-30 2022-07-08 Oppo(重庆)智能科技有限公司 调频方法、调频装置、存储介质与电子设备
CN111831420B (zh) * 2020-07-20 2023-08-08 北京百度网讯科技有限公司 用于任务调度的方法、相关装置及计算机程序产品

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107580023A (zh) * 2017-08-04 2018-01-12 山东大学 一种动态调整任务分配的流处理作业调度方法及系统
US20190294532A1 (en) * 2018-03-26 2019-09-26 Hyperconnect, Inc. Computer program and server for executing test group distribution method
CN110866167A (zh) * 2019-11-14 2020-03-06 北京知道创宇信息技术股份有限公司 任务分配方法、装置、服务器和存储介质
CN111131447A (zh) * 2019-12-23 2020-05-08 曲阜师范大学 一种基于中介节点任务分配的负载均衡方法
CN111782383A (zh) * 2020-08-26 2020-10-16 北京元心科技有限公司 任务分配方法、服务器、电子终端及计算机可读存储介质
CN113342665A (zh) * 2021-06-17 2021-09-03 北京百度网讯科技有限公司 任务分配方法和装置、电子设备、计算机可读介质

Also Published As

Publication number Publication date
CN113342665B (zh) 2023-10-20
CN113342665A (zh) 2021-09-03

Similar Documents

Publication Publication Date Title
WO2022262253A1 (zh) 任务分配方法和装置、电子设备、计算机可读介质
CN113849312B (zh) 数据处理任务的分配方法、装置、电子设备及存储介质
US11836065B2 (en) Method and apparatus for testing stress based on cloud service
CN113590403B (zh) 压力测试方法、装置、系统、电子设备、存储介质及产品
CN112988381B (zh) 为云资源生成优化信息的方法、装置和电子设备
CN113242358A (zh) 音频数据处理方法、装置、系统、电子设备及存储介质
EP4053770A1 (en) Schedule information acquiring method, apparatus, device, storage medium and program
CN114911598A (zh) 任务调度方法、装置、设备以及存储介质
CN112506581A (zh) 渲染小程序的方法、装置、电子设备和可读存储介质
US20230062632A1 (en) Method and Apparatus for Assigning Task, Electronic Device and Computer Readable Medium
CN114924745A (zh) 深度学习编译器的运行方法、装置及电子设备
CN113032093B (zh) 分布式计算方法、装置及平台
CN113037489A (zh) 数据处理方法、装置、设备和存储介质
EP4142258A1 (en) Edge computing network, data transmission method and apparatus, device and storage medium
CN109842665B (zh) 用于任务分配服务器的任务处理方法和装置
CN113905040B (zh) 文件传输方法、装置、系统、设备以及存储介质
CN114140033B (zh) 一种服务人员的分配方法、装置、电子设备及存储介质
CN115567602A (zh) Cdn节点回源方法、设备及计算机可读存储介质
CN113032092B (zh) 分布式计算方法、装置及平台
CN114416357A (zh) 容器组的创建方法、装置、电子设备和介质
CN113935069A (zh) 一种基于区块链的数据验证方法、装置、设备及存储介质
CN114048010A (zh) 服务超时时间的控制方法、装置、设备以及存储介质
CN113726881A (zh) 通信连接建立方法、相关装置及计算机程序产品
CN113220555B (zh) 用于处理数据的方法、装置、设备、介质和产品
EP3992794A2 (en) Method and apparatus for acquiring information

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2022552966

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20227033552

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2021928339

Country of ref document: EP

Effective date: 20230110

NENP Non-entry into the national phase

Ref country code: DE