Queue management method and device of hardware prototype simulation platform, equipment and medium
By using superuser accounts and CAPTCHA detection methods, hardware prototype simulation platform resources are managed across subsystems, solving the problems of resource waste and reliance on administrators, improving resource utilization and flexibility, and ensuring resource security.
Patent Information
- Application Number
- CN202511071687.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-11-04
AI Technical Summary
Existing hardware prototype simulation platforms suffer from resource waste and reliance on hardware platform administrators in their resource management, resulting in low resource utilization and poor flexibility.
Managing hardware prototype simulation platform resources across subsystems via a superuser account, and using CAPTCHA detection to ensure resource security and flexibility, reduces reliance on hardware platform administrators.
It achieves unified resource management across subsystems, improves resource utilization and flexibility, reduces reliance on administrators, and ensures resource security.
Smart Images

Figure CN120892159A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the chip development technical field, in particular to a queue management method, device and equipment of hardware prototype simulation platform and medium. BACKGROUND
[0002] In the chip product research and development process, a hardware prototype simulation platform needs to be used to verify the hardware function. Since the hardware prototype simulation platform is expensive, a commonly used hardware prototype simulation platform Zebu usually needs to cost tens of millions of yuan; this makes the chip hardware verification, firmware development and chip system testing and other subsystems in the chip research and development process usually need to use a hardware prototype simulation platform together.
[0003] Taking the hardware prototype simulation platform Zebu as an example, in the actual use process, usually one server is bound to each Zebu, and each Zebu is only allocated to one subsystem queue at a time, and only the personnel of the subsystem queue can submit tasks to the corresponding Zebu; except that the task submitted by itself can be deleted, only the administrator of the subsystem can delete the Zebu task, and other personnel cannot intervene; when the task amount of the subsystem is not large, the Zebu resources occupied by the subsystem may be in an idle state, and other subsystems that need more resources cannot be obtained, resulting in resource waste.
[0004] In addition, when the Zebu resources need to be switched between subsystems, they need to be submitted to the company management system, and after approval, the company hardware platform administrator switches the queue, and after switching, the personnel of the previous subsystem cannot submit tasks to the Zebu. When using at night or on weekends, if you want to switch between subsystems, you need to have personnel on duty on both sides; however, in actual situations, no one will be on duty for 24 hours a day; if there is a problem in communication and coordination between users, or if the communication is not timely, in this case, the Zebu resources will be greatly wasted, and the development work will be delayed, and if this situation occurs frequently, it will inevitably have an adverse effect on the project cycle.
[0005] Therefore, how to realize unified management of hardware prototype simulation platform resources across subsystems, reduce the dependence on hardware platform administrators, and improve flexibility and resource utilization is a problem that needs to be solved urgently. SUMMARY
[0006] The purpose of the present application is to provide a queue management method, device and equipment of hardware prototype simulation platform and computer readable storage medium, to realize unified management of hardware prototype simulation platform resources across subsystems, reduce the dependence on hardware platform administrators, and improve flexibility and resource utilization.
[0007] To solve the above technical problems, the application provides a queue management method of a hardware prototype simulation platform, comprising:
[0008] obtaining a cleaning task instruction of a target user account, wherein the target user account is a user account in each preset subsystem corresponding to a super user account, the super user account has an administrator permission in an available subsystem of each preset hardware prototype simulation platform server;
[0009] detecting whether a verification code of the cleaning task instruction is correct;
[0010] if correct, using the super user account to control a target platform server to perform a cleaning task operation of a target queue, wherein the cleaning task instruction comprises identification information of the target platform server and the target queue, the target platform server is any preset hardware prototype simulation platform server, and the target queue is any available subsystem.
[0011] In another aspect, the detection of whether the verification code of the cleaning task instruction is correct comprises:
[0012] judging whether the verification code of the cleaning task instruction is a target verification code, wherein the target verification code is a preset verification code of a preset subsystem where the target user account is located, and the preset verification code is configured by a user account having an administrator permission in the corresponding preset subsystem;
[0013] if the verification code is the target verification code, the step of using the super user account to control the target platform server to perform the cleaning task operation of the target queue is executed.
[0014] In another aspect, the obtaining of the cleaning task instruction of the target user account comprises:
[0015] the target platform server runs a preset background script to obtain the cleaning task instruction of the target user account triggered by a visual interactive interface client sent by a message proxy server.
[0016] In another aspect, the obtaining of the cleaning task instruction of the target user account comprises:
[0017] the message proxy server runs a preset background script to obtain the cleaning task instruction of the target user account triggered by a visual interactive interface client;
[0018] Correspondingly, the using of the super user account to control the target platform server to perform the cleaning task operation of the target queue comprises:
[0019] The message broker server logs in the superuser account in the target platform server through a secure shell protocol password-free login, controls the target platform server to perform a cleaning task operation of the target queue.
[0020] In another aspect, the method further comprises, before the step of obtaining the cleaning task instruction of the target user account:
[0021] The target platform server obtains configuration information of the superuser account.
[0022] The configuration information of the superuser account is verified to be valid.
[0023] If yes, all subsystems in a subsystem list of the target platform server are used as the available subsystems, the superuser account is configured in the available subsystems and is given an administrator permission.
[0024] In another aspect, the method further comprises:
[0025] The method further comprises, before the step of obtaining the submission task instruction of the target user account:
[0026] The superuser account is used to join a task corresponding to the submission task instruction in the target queue of the target platform server, wherein the submission task instruction comprises identification information of the target platform server and the target queue.
[0027] In another aspect, the method further comprises, before the step of obtaining the submission task instruction of the target user account:
[0028] The method further comprises:
[0029] If the message queue receives a new task message, the type of the task message is detected.
[0030] If the type of the task message is a submission task type, the step of obtaining the submission task instruction of the target user account is performed.
[0031] If the type of the task message is a cleaning task type, the step of obtaining the cleaning task instruction of the target user account is performed.
[0032] The application further provides a queue management device of a hardware prototype simulation platform, comprising:
[0033] An obtaining module is configured to obtain a cleaning task instruction of a target user account, wherein the target user account is a user account in each preset subsystem corresponding to a superuser account, and the superuser account has an administrator permission in available subsystems of each preset hardware prototype simulation platform server.
[0034] A verification module is configured to detect whether the verification code of the cleaning task instruction is correct.
[0035] A cleaning module is configured to control the target platform server to perform a cleaning task operation on the target queue if the verification code is correct, wherein the cleaning task instruction comprises identification information of the target platform server and the target queue, the target platform server is any of the preset hardware prototype simulation platform servers, and the target queue is any of the available subsystems.
[0036] The application further provides a queue management device of a hardware prototype simulation platform.
[0037] A memory is configured to store a computer program.
[0038] A processor is configured to implement the steps of the queue management method of the hardware prototype simulation platform when executing the computer program.
[0039] In addition, the application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the queue management method of the hardware prototype simulation platform.
[0040] The queue management method of the hardware prototype simulation platform comprises the following steps: obtaining a cleaning task instruction of a target user account; the target user account is a user account in each preset subsystem corresponding to a super user account, and the super user account has an administrator permission in each available subsystem of each preset hardware prototype simulation platform server; detecting whether the verification code of the cleaning task instruction is correct; if the verification code is correct, using the super user account to control a target platform server to perform a cleaning task operation on a target queue; the cleaning task instruction comprises identification information of the target platform server and the target queue, the target platform server is any of the preset hardware prototype simulation platform servers, and the target queue is any of the available subsystems.
[0041] It can be seen that, by setting the super user account, the application can realize unified management of hardware prototype simulation platform resources across subsystems, reduce the dependence on hardware platform administrators, enable relevant personnel other than subsystem administrators and task submitters to terminate or adjust tasks in time, improve flexibility and resource utilization, and ensure resource security by detecting whether the verification code of the cleaning task instruction is correct. In addition, the application further provides a queue management device, equipment and computer readable storage medium of a hardware prototype simulation platform, which also have the above beneficial effects. BRIEF DESCRIPTION OF DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can also be obtained according to the provided drawings without creative labor.
[0043] Figure 1 A flow chart of a queue management method of a hardware prototype simulation platform provided by the embodiments of the present application;
[0044] Figure 2 An interface display diagram of a visual interactive interface client provided by the embodiments of the present application;
[0045] Figure 3 A flow chart of a verification code configuration provided by the embodiments of the present application;
[0046] Figure 4 A schematic diagram of message publishing and subscribing of a queue management system of a hardware prototype simulation platform provided by the embodiments of the present application;
[0047] Figure 5 A configuration schematic diagram of a user account of a hardware prototype simulation platform provided by the embodiments of the present application;
[0048] Figure 6 A configuration flow chart of a super user account provided by the embodiments of the present application;
[0049] Figure 7 A work flow chart of a preset background script provided by the embodiments of the present application;
[0050] Figure 8 A structural block diagram of a queue management device of a hardware prototype simulation platform provided by the embodiments of the present application;
[0051] Figure 9 A structural schematic diagram of a queue management equipment of a hardware prototype simulation platform provided by the embodiments of the present application;
[0052] Figure 10 A structural schematic diagram of a computer readable storage medium provided by the embodiments of the present application. DETAILED DESCRIPTION
[0053] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0054] Reference is made to Figure 1 , Figure 1 A flowchart of a queue management method of a hardware prototype simulation platform provided by the embodiments of the present application. The method can include:
[0055] Step 101: obtaining a cleaning task instruction of a target user account; wherein the target user account is a user account in each preset subsystem corresponding to a super user account, and the super user account has administrator rights in the available subsystems of each preset hardware prototype simulation platform server.
[0056] It can be understood that the super user account in the present embodiment can be a user account that has administrator rights in part or all of the available subsystems of one or more hardware prototype simulation platform servers (i.e., preset hardware prototype simulation platform servers), so that the user accounts in each preset subsystem corresponding to the super user account can initiate a queue management task (such as a cleaning task instruction), manage the tasks in the task queue (i.e., the subsystem queue) of the available subsystems currently allocated by each preset hardware prototype simulation platform server through the super user account, and realize unified management of hardware prototype simulation platform resources across subsystems.
[0057] Correspondingly, the super user account in the present embodiment can correspond to all or part of the user accounts in each preset subsystem (such as a chip hardware verification, firmware development, and chip system test subsystem), so that the queue management tasks initiated by these user accounts can be transmitted to the required management preset hardware prototype simulation platform server (i.e., the target platform server) in the identity of the super user account. The target user account in the present embodiment can be any one of the user accounts in each preset subsystem corresponding to the super user account.
[0058] Correspondingly, for the specific number and type of the preset subsystem, the preset hardware prototype simulation platform server and the available subsystem in the present embodiment, the designer can set them according to the practical scene and user demand, such as the number of the preset hardware prototype simulation platform server can be 1, and the number and type of the preset subsystem and the available subsystem can be the same; the number of the preset hardware prototype simulation platform server can also be greater than 1, so as to perform queue management on multiple hardware prototype simulation platform servers through a super user account, and the number and type of the preset subsystem and the available subsystem of all the hardware prototype simulation platform servers can be the same or different. The present embodiment does not make any limitation on this.
[0059] It should be noted that the cleaning task instruction in the present embodiment can be an instruction for cleaning all or part of the tasks (such as one or more specified tasks) in the target task queue. For the specific content of the cleaning task instruction in the present embodiment, the designer can set it according to the use scene and user demand, such as when the cleaning task instruction is used to clean all the tasks in the target task queue, the cleaning task instruction can include the identification information of the target platform server and the target queue (such as the selected Zebu number and the identification of the target queue in Figure 2 ), so as to identify the task queue in the preset hardware prototype simulation platform server that needs to be cleaned; when the cleaning task instruction is used to clean part of the tasks in the target task queue, the cleaning task instruction can also include the identification information of the task to be cleaned. The cleaning task instruction can also include a verification code (such as the verification code input in the verification code input position in Figure 2 ) for the subsequent verification code detection process. The present embodiment does not make any limitation on this.
[0060] Step 102: Detect whether the verification code of the cleaning task instruction is correct; if correct, go to step 103.
[0061] It can be understood that the verification code of the cleaning task instruction in the present embodiment can be used to detect whether the cleaning task instruction is valid; as shown in Figure 2 , when the user selects the Zebu number and the target queue, inputs the verification code, and clicks the “cleaning task” button to trigger the cleaning task instruction, the verification code of the cleaning task instruction can be the verification code input by the user. That is, by detecting whether the verification code of the cleaning task instruction is correct in the present step, it can be determined that the cleaning task instruction is valid when correct, and the cleaning task instruction can be completed through step 103; when the verification code is incorrect, it is determined that the cleaning task instruction is valid, and the cleaning task instruction can be directly discarded, and the corresponding cleaning task operation is refused to be performed, and further, the verification code error information can be returned to prompt the user.
[0062] Correspondingly, the specific manner for detecting whether the verification code of the cleaning task instruction is correct in this step can be set by the designer according to the practical scene and user demand, for example, whether the verification code of the cleaning task instruction is the target verification code can be judged; if the verification code is the target verification code, step 103 is entered; if the verification code is not the target verification code, the cleaning task instruction is discarded. The target verification code is a preset verification code of a preset subsystem to which the target user account belongs, and the preset verification code is configured by a user account with administrator permission in the corresponding preset subsystem, so that the administrator in each preset subsystem can dynamically modify the corresponding preset verification code. The target verification code can also be a preset verification code configured by a super user account, and the present embodiment does not make any limitation in this regard.
[0063] That is, through the verification code configuration, the task can be prevented from being mistakenly deleted, so that the task deletion can be performed only after the verification code authorization. As shown in Figure 3 , the administrator of each preset subsystem dynamically modifies the preset verification code through a GUI (Graphics User Interface, visual interactive interface), for example, the administrator modifies the preset verification code by using the “modify verification code” button in the interface of the GUI client (task management client) in Figure 2 , so that the cleaning task operation initiated by the user account in each preset subsystem needs to input the verification code for confirmation.
[0064] Step 103: using the super user account to control the target platform server to perform the cleaning task operation of the target queue; wherein the cleaning task instruction includes the identification information of the target platform server and the target queue, the target platform server is any preset hardware prototype simulation platform server, and the target queue is any available subsystem.
[0065] It can be understood that in this step, when the verification code is detected to be correct, the super user account can be used to control the target platform server to perform the cleaning task operation of the target queue, for example, to delete all tasks in the target queue, so as to facilitate the switching of the tasks of the subsystem. The present embodiment is demonstrated by taking the task cleaning of the subsystem queue (i.e. the target queue) currently allocated by a preset hardware prototype simulation platform server as an example, and the task cleaning of other preset hardware prototype simulation platform servers can be implemented in the same or similar manner as the method provided in the present embodiment, and the present embodiment does not make any limitation in this regard.
[0066] In the present embodiment, the specific device for implementing the method provided in the present embodiment is not limited, for example, the method provided in the present embodiment can be applied to any or each preset hardware prototype simulation platform server (for example, the preset hardware prototype simulation platform server 1 in Figure 4The target platform server can run a preset background script (such as a government_Zebu.py script) to execute the steps of the method provided in the embodiment. The method provided in the embodiment can also be applied to the message broker server corresponding to the GUI client, that is, the message broker server can run a preset background script to execute the steps of the method provided in the embodiment. The method provided in the embodiment can also be applied to a separate server between the message broker server and the preset hardware prototype simulation platform server. The embodiment does not make any limitation in this regard.
[0067] For example, when the method provided in the embodiment is applied to each preset hardware prototype simulation platform server, the target platform server can run a preset background script to obtain the cleaning task instruction of the target user account triggered by the visual interactive interface client in step 101. For example, the message broker server can send the cleaning task instruction of the target user account to each preset hardware prototype simulation platform server, or send the cleaning task instruction to the target platform server according to the identification information of the target platform server in the cleaning task instruction. In step 103, the target platform server can use the running preset background script to control the target platform server to perform the cleaning task operation of the target queue by using the superuser account.
[0068] Correspondingly, when the method provided in the embodiment is applied to the message broker server, the message broker server can run a preset background script to obtain the cleaning task instruction of the target user account triggered by the visual interactive interface client in step 101. In step 103, the message broker server can use the running preset background script to log in to the superuser account in the target platform server to control the target platform server to perform the cleaning task operation of the target queue.
[0069] Further, in the embodiment, the user accounts in the preset hardware prototype simulation platform server can be logged in by using SSH (Secure Shell, secure shell) password-free login to avoid the password output process. For example, as shown in FIG. 8, all users using the Zebu server (that is, the preset hardware prototype simulation platform server) can generate an SSH key pair (SSH secret key and public key), and then copy the public key to all Zebu servers, so that the user can log in to the user account in the Zebu server by using the SSH password-free login mode. Figure 5
[0070] Correspondingly, when the method provided in the embodiment is applied to the target platform server, the target user account can be a user account that adopts SSH password-free login in the target platform server. When the method provided in the embodiment is applied to the message proxy server, the message proxy server can use the running preset background script to log in to the superuser account in the target platform server through SSH password-free login, and control the target platform server to perform the cleaning task operation of the target queue.
[0071] In the embodiment, the method can further include a superuser account configuration process in each preset hardware prototype simulation platform server, so that the superuser account has cross-subsystem management authority and can clean all tasks. Before step 101, the target platform server can obtain configuration information of the superuser account, verify whether the configuration information of the superuser account is valid, if yes, take all subsystems in a subsystem list of the target platform server as available subsystems, and configure the superuser account in the available subsystems and assign administrator authority to the superuser account. Correspondingly, as shown in FIG. 6, if the configuration information of the superuser account (superuser account configuration information) is invalid, an error prompt information can be returned to request the user to output the configuration information of the superuser account again. Figure 6
[0072] It should be noted that the method provided in the embodiment can further include a task submission process. In some embodiments, the method provided in the embodiment can further include obtaining a task submission instruction of the target user account, and using the superuser account to add a task corresponding to the task submission instruction to the target queue of the target platform server. The task submission instruction includes identification information of the target platform server and the target queue. That is, the task submission process can not perform verification code detection. In other embodiments, the method provided in the embodiment can further include obtaining a task submission instruction of the target user account, detecting whether a verification code of the task submission instruction is correct, if yes, using the superuser account to add a task corresponding to the task submission instruction to the target queue of the target platform server, and if not, discarding the task submission instruction. The task submission instruction includes identification information of the target platform server and the target queue. That is, the task submission process can also perform verification code detection.
[0073] Correspondingly, the method provided in the embodiment can further include a message queue listening process, to obtain queue management tasks (such as task submission instructions and cleaning task instructions) by listening to the message queue. For example, before step 101, the method can include listening to the message queue, if the message queue receives a new task message, detecting a type of the task message, if the type of the task message is a task submission type, performing the step of obtaining the task submission instruction of the target user account, and if the type of the task message is a cleaning task type, entering step 101.
[0074] As Figure 7 shown, the preset background script used can not only have the function of listening to the message queue and completing task management, but also have the functions of task cleaning, task submission, task queuing, online / offline notification, and task timing. Among them, the task cleaning function can be used to terminate the process of a specified Zebu server (i.e. a target platform server) according to a task cleaning instruction; the task submission function can be used to automatically submit a task by logging into the target platform server through SSH and calling the corresponding API (Application Programming Interface); the task queuing function can be used to queue in the order of submission and automatically submit the tasks one by one; the online / offline notification function can be used to return the corresponding prompt information to notify the user when the task is successfully submitted, completed, or cleaned, such as pop-up notification in the interface of the GUI client; and the task timing function can be used to start timing when the task is submitted, and clean the task when the timing is over.
[0075] Specifically, the deployment process of the method provided in the embodiment can be as follows:
[0076] 1. Create a superuser account in a preset hardware prototype simulation platform server (such as a Zebu server), add it to all subsystem queues, and grant administrator permissions.
[0077] 2. Message queue deployment; taking the mosquito (a kind of message broker software) message queue service as an example, including the installation process and the service starting process; when executed in a CentOS (a kind of operating system) system, the installation can be performed through the following code:
[0078] ```bash
[0079] sudo yum install epel-release
[0080] sudo yum install mosquitto mosquitto-clients
[0081] ```
[0082] Correspondingly, the service can be started through the following code:
[0083] ```bash
[0084] sudo systemctl start mosquitto
[0085] sudo systemctl enable mosquitto
[0086] ```
[0087] 3. Python (a computer programming language) environment and dependency configuration; such as installing Python libraries on each Zebu server:
[0088] ```bash
[0089] pip install paho-mqtt paramiko
[0090] ```
[0091] 4. Pre-set background script deployment; such as deploying the pre-set background script (government_Zebu.py) to the corresponding server for resident running. The pre-set background script has the following functions: listening to delete_Zebu_task (submit task instruction) and create_Zebu_task (clean up task instruction) messages; parsing message content, calling Zebu API to execute task cleaning or submission; queuing according to task submission order, and then submitting to Zebu server in turn; task state change, publishing message to message broker server; task life cycle monitoring, automatic cleaning when timeout.
[0092] For example, in the scenario where subsystem B immediately takes over the resources of Zebu-001 server (i.e. target platform server) being used by subsystem A, the user can input the verification code and click "clean up task" on the interface Zebu-001 and queue A of the GUI client; the pre-set background script terminates all tasks submitted by queue A to Zebu-001 by calling Zebu API, completing the task cleaning process. After that, the user can click "submit task" on the interface Zebu-001 and queue B of the GUI client; the pre-set background script automatically calls Zebu API to submit the pre-set task to the task queue, completing the task submission process and realizing the queue task switching of Zebu-001 server.
[0093] Correspondingly, in the scenario where subsystem B needs to take over the resources of Zebu-001 server being used by subsystem A at night or on weekends, since the tasks submitted by subsystem A during weekdays will be automatically exited after execution or timeout, the user can click "submit task" on the interface Zebu-001 and queue B of the GUI client; the pre-set background script automatically calls Zebu API to submit the pre-set task to the task queue, realizing the task processing of subsystem B.
[0094] In the embodiment, the hardware prototype simulation platform resource management is realized across subsystems by setting the superuser account, the dependence on the hardware platform administrator is reduced, the related personnel other than the subsystem administrator and the task submitter can terminate or adjust the task in time, the flexibility and the resource utilization rate are improved, and the resource security is ensured by detecting whether the verification code of the cleaning task instruction is correct.
[0095] Corresponding to the above method embodiment, the embodiment of the application further provides a queue management device of a hardware prototype simulation platform. The queue management device of a hardware prototype simulation platform described below can be correspondingly referred to the queue management method of a hardware prototype simulation platform described above.
[0096] Please refer to Figure 8 , Figure 8 A structural block diagram of a queue management device of a hardware prototype simulation platform provided by the embodiment of the application. The device can include:
[0097] The obtaining module 10 is configured to obtain a cleaning task instruction of a target user account. The target user account is a user account in each preset subsystem corresponding to a superuser account, and the superuser account has an administrator permission in each available subsystem of each preset hardware prototype simulation platform server.
[0098] The verification module 20 is configured to detect whether the verification code of the cleaning task instruction is correct.
[0099] The cleaning module 30 is configured to, if the verification code is correct, control the target platform server to perform a cleaning task operation of a target queue by using the superuser account. The cleaning task instruction includes identification information of the target platform server and the target queue. The target platform server is any preset hardware prototype simulation platform server, and the target queue is any available subsystem.
[0100] In some embodiments, the verification module 20 can be specifically configured to determine whether the verification code of the cleaning task instruction is a target verification code. If the verification code is the target verification code, a start signal is sent to the cleaning module 30. The target verification code is a preset verification code of a preset subsystem where the target user account is located. The preset verification code is configured by a user account having an administrator permission in the corresponding preset subsystem.
[0101] In some embodiments, the device is applied to the target platform server, and the obtaining module 10 can be specifically configured to run a preset background script to obtain the cleaning task instruction of the target user account triggered by the visual interactive interface client of the message proxy server.
[0102] In some embodiments, the device is applied to a message proxy server, and the obtaining module 10 can be specifically configured to run a preset background script to obtain a cleaning task instruction triggered by a target user account of the visual interactive interface client;
[0103] Correspondingly, the cleaning module 30 can be specifically configured to log in to a superuser account in the target platform server through a secure shell protocol without a password, and control the target platform server to perform a cleaning task operation on the target queue.
[0104] In some embodiments, the device is applied to a target platform server, and can further include:
[0105] a configuration obtaining module configured to obtain configuration information of the superuser account;
[0106] a configuration verification module configured to verify whether the configuration information of the superuser account is valid;
[0107] an empowerment module configured to, if the configuration information is valid, configure the superuser account in all subsystems in a subsystem list of the target platform server as available subsystems and give the superuser account administrator rights.
[0108] In some embodiments, the device can further include:
[0109] a submission obtaining module configured to obtain a submission task instruction of the target user account;
[0110] a submission module configured to use the superuser account to add a task corresponding to the submission task instruction to a target queue of the target platform server; wherein the submission task instruction includes identification information of the target platform server and the target queue.
[0111] In some embodiments, the device can further include:
[0112] a listening module configured to listen to a message queue;
[0113] a type detection module configured to, if the message queue receives a new task message, detect a type of the task message; if the type of the task message is a submission task type, send a start signal to the submission obtaining module; and if the type of the task message is a cleaning task type, send a start signal to the obtaining module 10.
[0114] In this embodiment, the superuser account is set to enable unified management of hardware prototype simulation platform resources across subsystems, reduce the dependence on hardware platform administrators, enable relevant personnel other than subsystem administrators and task submitters to terminate or adjust tasks in a timely manner, improve flexibility and resource utilization, and ensure resource security through the verification module 20 to detect whether the verification code of the cleaning task instruction is correct.
[0115] Corresponding to the above method embodiments, the embodiments of the present application also provide a queue management device of a hardware prototype simulation platform. The queue management device of a hardware prototype simulation platform described below can be mutually corresponding with reference to the queue management method of a hardware prototype simulation platform described above.
[0116] Please refer to Figure 9 , Figure 9 The structural schematic diagram of the queue management device of a hardware prototype simulation platform provided by the embodiments of the present application. The device can include:
[0117] The memory D1 is used for storing the computer program.
[0118] The processor D2 is used for implementing the steps of the queue management method of a hardware prototype simulation platform provided by the above method embodiments when the computer program is executed.
[0119] Among them, the queue management device of a hardware prototype simulation platform provided by the embodiments of the present application can be a computer or a server, such as a message broker server or a preset hardware prototype simulation platform server (such as the target platform server described above).
[0120] Corresponding to the above method embodiments, the embodiments of the present application also provide a queue management system of a hardware prototype simulation platform. The queue management system of a hardware prototype simulation platform described below can be mutually corresponding with reference to the queue management method of a hardware prototype simulation platform described above.
[0121] The queue management system of a hardware prototype simulation platform includes: a message broker server and a preset hardware prototype simulation platform server; the message broker server or the preset hardware prototype simulation platform server is the queue management device of a hardware prototype simulation platform provided by the above embodiments.
[0122] Corresponding to the above method embodiments, the embodiments of the present application also provide a computer readable storage medium. The computer readable storage medium described below can be mutually corresponding with reference to the queue management method of a hardware prototype simulation platform described above.
[0123] Please refer to Figure 10 , Figure 10 The structural schematic diagram of the computer readable storage medium provided by the embodiments of the present application. The computer readable storage medium 40 stores the computer program 41. The computer program 41 is executed by the processor to implement the steps of the queue management method of a hardware prototype simulation platform provided by the above method embodiments.
[0124] The computer readable storage medium can be specifically a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various readable storage media that can store program codes.
[0125] Corresponding to the above method embodiments, the embodiments of the present application also provide a computer program product, and the computer program product described below can be correspondingly referred to the queue management method of the hardware prototype simulation platform described above.
[0126] A computer program product comprises computer programs / instructions, which, when executed by a processor, implement the steps of the queue management method of the hardware prototype simulation platform provided by the above method embodiments.
[0127] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts of each embodiment can be referred to each other. For the apparatus, device, system, computer readable storage medium and computer program product disclosed by the embodiments, since they correspond to the method disclosed by the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.
[0128] The above describes in detail the queue management method, device, equipment and computer readable storage medium of the hardware prototype simulation platform provided by the present application. The principle and implementation of the present application are described by applying specific examples. The above embodiment is only used to help understand the method and core idea of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the principle of the present application, the present application can be improved and modified. These improvements and modifications also fall within the protection scope of the present application.
Claims
1. A queue management method of a hardware prototype simulation platform, characterized in that, The method comprises the following steps: obtaining a cleaning task instruction of a target user account; wherein the target user account is a user account in each preset subsystem corresponding to a super user account, and the super user account has an administrator permission in each available subsystem of each preset hardware prototype simulation platform server; detecting whether the verification code of the cleaning task instruction is correct; if correct, using the super user account to control a target platform server to perform a cleaning task operation of a target queue; wherein the cleaning task instruction comprises identification information of the target platform server and the target queue, the target platform server is any of the preset hardware prototype simulation platform servers, and the target queue is any of the available subsystems.
2. The queue management method of a hardware prototyping platform according to claim 1, wherein, The detection of whether the verification code of the cleaning task instruction is correct comprises: determining whether the verification code of the cleaning task instruction is a target verification code; wherein the target verification code is a preset verification code of a preset subsystem in which the target user account is located, and the preset verification code is configured by a user account having an administrator permission in the corresponding preset subsystem; if the target verification code is correct, the step of using the super user account to control the target platform server to perform the cleaning task operation of the target queue is executed.
3. The queue management method of a hardware prototyping platform according to claim 1, wherein, The obtaining of the cleaning task instruction of the target user account comprises: the target platform server runs a preset background script to obtain the cleaning task instruction of the target user account triggered by a visual interactive interface client sent by a message agent server.
4. The queue management method of a hardware prototyping platform according to claim 1, wherein, The obtaining of the cleaning task instruction of the target user account comprises: the message agent server runs a preset background script to obtain the cleaning task instruction of the target user account triggered by a visual interactive interface client; Correspondingly, the using of the super user account to control the target platform server to perform the cleaning task operation of the target queue comprises: the message agent server logs in the super user account in the target platform server through a secure shell protocol password-free login to control the target platform server to perform the cleaning task operation of the target queue.
5. The queue management method of a hardware prototyping platform according to claim 1, wherein, Before the obtaining of the cleaning task instruction of the target user account, the method further comprises: the target platform server obtains configuration information of the super user account; verifying whether the configuration information of the super user account is valid; if yes, all subsystems in a subsystem list of the target platform server are taken as the available subsystems, the super user account is configured in the available subsystems and is given an administrator permission.
6. The queue management method of a hardware prototyping platform according to any one of claims 1 to 5, characterized in that, The method further comprises: obtaining a submission task instruction of the target user account; using the super user account to add a task corresponding to the submission task instruction in the target queue of the target platform server; wherein the submission task instruction comprises identification information of the target platform server and the target queue.
7. The queue management method of the hardware prototyping platform according to claim 6, characterized in that, Before the obtaining of the submission task instruction of the target user account, the method further comprises: listening to a message queue; if the message queue receives a new task message, detecting a type of the task message; if the type of the task message is a submission task type, the step of obtaining the submission task instruction of the target user account is executed. If the type of the task message is a clean-up task type, the step of obtaining the clean-up task instruction of the target user account is performed.
8. A queue management apparatus of a hardware prototyping platform, characterized by, The application comprises: an obtaining module, configured to obtain a clean-up task instruction of a target user account; wherein the target user account is a user account in each preset subsystem corresponding to a super user account, and the super user account has an administrator right in each available subsystem of each preset hardware prototype simulation platform server; a verifying module, configured to detect whether a verification code of the clean-up task instruction is correct; a cleaning module, configured to, if the verification code is correct, control a target platform server to perform a clean-up task operation of a target queue by using the super user account; wherein the clean-up task instruction comprises identification information of the target platform server and the target queue, the target platform server is any one of the preset hardware prototype simulation platform servers, and the target queue is any one of the available subsystems.
9. A queue management device for a hardware prototyping platform, characterized by The application comprises: a memory, configured to store a computer program; a processor, configured to perform the computer program to realize the steps of the queue management method of the hardware prototype simulation platform according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer program is stored on the computer readable storage medium, and the computer program is executed by the processor to realize the steps of the queue management method of the hardware prototype simulation platform according to any one of claims 1 to 7.