Interaction method and apparatus for configuring data processing stream, electronic device, and storage medium
By identifying and binding idle target data processing units in the data processing stream configuration system, the problem of multi-user resource conflicts is solved, and stable and efficient data processing stream configuration and flow are achieved.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-09-01
- Publication Date
- 2026-03-19
AI Technical Summary
When multiple members of the same team use node-based data processing flow building tools at the same time, how can computing resources be reasonably allocated to ensure that each member can successfully execute the design tasks and avoid system crashes and resource conflicts?
By displaying the data processing flow configuration entry, the target data processing unit in the idle state can be identified and bound to the configuration page, thereby enabling reasonable allocation of computing resources, avoiding multiple users using the same unit at the same time, and improving system stability.
It improves the stability of the data processing stream configuration environment, reduces the frequency of system crashes, ensures that every user can successfully configure the data processing stream, and improves the efficiency of data flow and resource utilization.
Smart Images

Figure CN2025118219_19032026_PF_FP_ABST
Abstract
Description
Method and device for configuring data processing flow, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese Patent Application No. 202411270021.5, filed on September 10, 2024, the disclosure of which is incorporated herein in its entirety as part of the present application. TECHNICAL FIELD
[0003] The present disclosure relates to the technical field of Internet, and in particular, to a method and device for configuring data processing flow, an electronic device and a storage medium. BACKGROUND
[0004] Nowadays, the node-type data processing flow building tool is deeply reshaping the creative design field with its fine process control mechanism to enable users to accurately customize and reliably reproduce media data design.
[0005] However, in actual application, multiple members of the same team may need to use the node-type data processing flow building tool to build data processing flow at the same time. For this case, how to reasonably allocate the computing resource for providing the data processing flow building to enable each team member to successfully perform the predetermined design task is a problem to be solved at present. SUMMARY
[0006] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a method and device for configuring data processing flow, an electronic device and a storage medium.
[0007] In a first aspect, the present disclosure provides a method for configuring data processing flow, comprising:
[0008] displaying a target page, the target page comprising a data processing flow configuration entry;
[0009] in response to a triggering operation on the data processing flow configuration entry, determining a data processing system, the data processing system comprising a plurality of data processing units; each of the data processing units can independently provide a service of configuring data processing flow;
[0010] determining a target data processing unit in the data processing system, the state of the target data processing unit being an idle state;
[0011] displaying a data processing flow configuration page, and binding the target data processing unit with the data processing flow configuration page.
[0012] In a second aspect, the present disclosure further provides a device for configuring data processing flow, comprising:
[0013] a first display module configured to display a target page, the target page comprising a data processing flow configuration portal;
[0014] a determination module configured to determine a data processing system in response to a triggering operation on the data processing flow configuration portal, the data processing system comprising a plurality of data processing units, each of the data processing units being capable of independently providing a service of configuring a data processing flow;
[0015] an allocation module configured to determine a target data processing unit in the data processing system, the target data processing unit being in an idle state;
[0016] a second display module configured to display a data processing flow configuration page, and bind the target data processing unit with the data processing flow configuration page.
[0017] In a third aspect, the present disclosure provides an electronic device, comprising:
[0018] one or more processors;
[0019] a storage device configured to store one or more programs;
[0020] when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned interactive method for configuring a data processing flow.
[0021] In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, the program being executed by a processor to implement the above-mentioned interactive method for configuring a data processing flow. BRIEF DESCRIPTION OF DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and serve to explain the principles of the present disclosure, together with the description.
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
[0024] FIG. 1 is a flowchart of an interactive method for configuring a data processing flow according to an embodiment of the present disclosure;
[0025] FIGS. 2-3 are schematic diagrams of two target pages according to embodiments of the present disclosure;
[0026] FIG. 4 is a schematic diagram of allocation of a data processing unit according to an embodiment of the present disclosure.
[0027] FIG. 5 is a schematic diagram of another target page according to an embodiment of the present disclosure;
[0028] FIG. 6 is a schematic diagram of an interactive device for configuring a data processing flow according to an embodiment of the present disclosure;
[0029] FIG. 7 is a schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] In order to more clearly understand the above-mentioned purposes, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0031] In the following description, a large number of specific details are set forth in order to facilitate a thorough understanding of the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein; obviously, the embodiments described in the specification are only some of the embodiments of the present disclosure, not all the embodiments.
[0032] FIG. 1 is a flowchart of an interactive method for configuring a data processing flow according to an embodiment of the present disclosure. The embodiment can be applicable to the case of building a data processing flow in a client. The method can be executed by an interactive device for configuring a data processing flow. The device can be implemented in software and / or hardware. The device can be configured in an electronic device, such as a terminal, for example, a smart phone, a palm computer, a tablet computer, a wearable device with a display screen, a desktop computer, a notebook computer, an all-in-one machine, a smart home device, etc. Alternatively, the embodiment can be applicable to the case of building a data processing flow in a server. The method can be executed by an interactive device for configuring a data processing flow. The device can be implemented in software and / or hardware. The device can be configured in an electronic device, such as a server.
[0033] As shown in FIG. 1, the method can specifically include the following steps.
[0034] S110, a target page is displayed, and the target page includes a data processing flow configuration entry.
[0035] A data processing flow is a way to realize the ordered execution of specific tasks and operations through node connection and flow design. A node is an operation unit in a data processing flow, which is used to execute a specific operation step. A data processing flow is used to process media data. The media data may, for example, include at least one of the following: text, image, audio and video.
[0036] A data processing flow is like an assembly line that connects a series of interrelated nodes in order to collaboratively complete the whole process of media data processing. When raw material input is provided for a pre-configured data processing flow, the data processing flow will follow the process design and sequentially pass through each node processing link to obtain the final processed media data. The raw material and the processed media data can be the same type of media data or different types of media data. For example, for a data processing flow for text-to-image, the raw material is text and the processed media data is image. For a data processing flow for image-to-image, the raw material is image and text, and the processed media data is image.
[0037] Exemplarily, an image data processing flow can include an input prompt word node, a model selection node, a parameter adjustment node, and a generated image node. The input prompt word node can be used to receive and parse the guide word provided by the user, for example. The model selection node can select a suitable image processing model based on the guide word or preset rules, for example. The parameter adjustment node can dynamically adjust the parameter configuration of the selected model as needed to achieve the desired image effect, for example. The generated image node can use the selected model and parameters to process the original image and output the final image result, for example.
[0038] The data processing flow configuration page can be a page for configuring a data processing flow, for example. Here, configuring a data processing flow includes building and / or debugging a data processing flow. Building a data processing flow refers to a creation process from scratch, i.e., starting from zero to build a new data processing flow. Debugging a data processing flow refers to modifying and adjusting an existing data processing flow (such as a data processing flow as a template or a data processing flow that has been edited) to optimize its performance or adapt to new design requirements.
[0039] The data processing flow configuration entry can be an option, control, or link, etc. for leading the user to the data processing flow configuration page.
[0040] The target page can be a page that includes a data processing flow configuration entry, for example. The present disclosure does not limit what kind of page the target page specifically refers to. In other words, the present disclosure does not limit what kind of element the target page includes in addition to the data processing flow configuration entry.
[0041] Exemplarily, in some scenarios, the application or website providing the data processing flow building function comprises an information flow page, and the target page can be the information flow page. The information flow page can be, for example, a page or area for displaying information in an information sequence. The information sequence is a data form for continuously providing content to a user. The information sequence comprises a plurality of information arranged in a certain order, and in the present disclosure, the information in the information sequence comprises a data processing flow. In the information sequence, the data processing flow can be published by different users. All users can view the data processing flow published by themselves or other users through the information flow page. The information in the information sequence is displayed in the information flow page after being arranged. In practice, the information in the information flow page can be displayed in the form of identification information.
[0042] In other scenarios, the target page can be the home page of the application or website providing the data processing flow building function. The home page refers to the main entrance page of a website or application, which is the first page seen by the user when first accessing or logging in. The home page usually contains basic information of the website or application, navigation menus and other important elements, so that the user can quickly understand and access various functional areas.
[0043] In yet other scenarios, the application or website providing the data processing flow building function comprises a work summary page. The target page can be the work summary page. The work summary page can be, for example, a page for displaying identification information of data processing flows built or debugged by the user and / or other users in a team to which the user belongs. The identification information of the data processing flow can be, for example, information for distinguishing one data processing flow from other data processing flows. Exemplarily, the identification information of the data processing flow comprises at least one of the following: a name of the data processing flow, a cover, input example information, output example information, a last modification time, etc.
[0044] Exemplarily, the page shown in FIG. 2 is a work summary page. The page includes two options, namely, "Create from scratch" and "Import local file". If the "Create from scratch" option is clicked, a blank data processing flow configuration page is shown. The blank data processing flow configuration page means that the page does not include any data processing flow. If the "Import local file" option is clicked, the user is first guided to select a data processing flow that needs to be imported from the data processing flows stored locally (i.e., the electronic device used by the user). After the data processing flow that needs to be imported is selected, a data processing flow configuration page is shown, which includes the data processing flow imported before. Continuing to refer to FIG. 2, the work summary page also shows the identification information of a plurality of data processing flows. The data processing flows referred to by the identification information of the data processing flows are data processing flows stored in the cloud and already published. If the user hovers the mouse over the identification information of the data processing flow 1, referring to FIG. 3, the editing option corresponding to the data processing flow 1 is shown. If the user continues to click the editing option, a data processing flow configuration page is shown, which includes the data processing flow 1. Therefore, in the work summary page, the "Create from scratch", "Import local file" and the editing options corresponding to the data processing flows can be regarded as data processing flow configuration entrances, and the work summary page is the target page.
[0045] It should be noted that the data processing flows shown in the information flow page are data processing flows that have been published, and the creators thereof are not necessarily the user himself or herself or the user's team.
[0046] S120, in response to the triggering operation on the data processing flow configuration entrance, determining a data processing system, the data processing system including a plurality of data processing units; each data processing unit can independently provide a service of configuring a data processing flow.
[0047] The triggering operation on the data processing flow configuration entrance may, for example, be an operation for indicating that the user wants to open a data processing flow configuration page. The triggering operation on the data processing flow configuration entrance may include a clicking operation, a sliding operation, etc.
[0048] The data processing system may, for example, be a collection of one or more data processing units. The data processing unit is an element that provides computing power. The data processing unit may include a central processing unit (CPU) and / or a graphic processing unit (GPU). Exemplarily, if the data processing flow is used to generate an image, the data processing unit includes a graphic processing unit.
[0049] Optionally, the data processing system has a corresponding relationship with the team. Here, the team is a collective composed of one or more users. Further, the data processing system can be set to have a one-to-one corresponding relationship with the team. In this case, it can be understood that one or more data processing units are allocated to a team, and different teams are allocated different data processing units. For any team, all data processing units allocated to it constitute the data processing system corresponding to the team.
[0050] A user can belong to only one team or belong to multiple teams at the same time. When a user belongs to multiple teams, the user identity information can be used to distinguish them. The user identity information indicates the current user's identity as a member of which team when configuring the data processing flow. When the user configures the data processing flow, a data processing unit can be selected from the data processing system corresponding to the team to which the user's current identity belongs to assist the user in configuring the data processing flow. Based on this, optionally, the step can include: in response to the triggering operation on the data processing flow configuration entry, determining the data processing system according to the user's current identity, the data processing system being the data processing system corresponding to the team to which the user's current identity belongs.
[0051] S130, determining a target data processing unit in the data processing system, the state of the target data processing unit being an idle state.
[0052] The state of the data processing unit in the data processing system can include an idle state and an occupied state.
[0053] The data processing unit in the idle state means that all members in the current team are not using it to configure the data processing flow. The data processing unit in the occupied state means that a member (which can be the user himself or other members) in the current team is using the unit to configure the data processing flow.
[0054] The target data processing unit may, for example, be a data processing unit allocated to the user to meet the current data processing flow configuration requirement. After formally starting the data processing flow configuration, the target data processing unit will provide computing power support for the user.
[0055] S140, displaying a data processing flow configuration page, and binding the target data processing unit to the data processing flow configuration page.
[0056] Binding the target data processing unit with the data processing flow configuration page refers to establishing an association between the two, so as to ensure that all instructions (for example, instructions such as adding a node of a certain type, adjusting a parameter in a certain node to a specific value, taking the output of one node as the input of another node, testing the current configured data processing flow, etc.) about configuring the data processing flow received through the data processing flow configuration page during the data processing flow configuration process are processed and responded by the target data processing unit.
[0057] Exemplarily, referring to FIG. 4, it is assumed that there are 9 data processing units, which are graphic processor 1 to graphic processor 9. Among them, graphic processor 1 to graphic processor 3 are assigned to team 1 as data processing system 1. Graphic processor 4 and graphic processor 5 are assigned to team 2 as data processing system 2. Graphic processor 6 to graphic processor 9 are assigned to team 3 as data processing system 3. Team 2 includes user A and user B. Among them, user B has a dual identity, that is, he is both a member of team 2 and a member of team 3. When user B triggers the data processing flow configuration portal as a member of team 2, the target data processing unit is determined in data processing system 2 (i.e., graphic processor 4 and graphic processor 5). When user B triggers the data processing flow configuration portal as a member of team 3, the target data processing unit is determined in data processing system 3 (i.e., graphic processor 6 to graphic processor 9).
[0058] If in a certain scenario, user B triggers the data processing flow configuration portal as a member of team 2, it is assumed that the state of graphic processor 4 is an occupied state and the state of graphic processor 5 is an idle state, graphic processor 5 is determined as the target graphic processor, and the target graphic processor is bound with the newly opened data processing flow configuration page, so that graphic processor 5 provides computing power support for configuring the data processing flow. In practice, graphic processor 4 can be occupied due to the data processing flow configuration needs of user A or user B, so that the state of graphic processor 4 is an occupied state.
[0059] Optionally, after S140, the state of the target data processing unit is adjusted from the idle state to the occupied state.
[0060] The technical solution disclosed in the above comprises the following steps: a data processing system is determined in response to a triggering operation on a data processing flow configuration portal; the data processing system comprises a plurality of data processing units; each data processing unit can independently provide a service of configuring a data processing flow; a target data processing unit is determined in the data processing system, and the state of the target data processing unit is an idle state; a data processing flow configuration page is displayed, and the target data processing unit is bound to the data processing flow configuration page. The essence of the technical solution is to provide a method for reasonably allocating computing resource to support the construction of a data processing flow. According to the method, a data processing unit is allocated for each user's data processing flow configuration requirement, and only the user can use the data processing unit, which can avoid the situation that multiple users use the same data processing unit, improve the stability of a data processing flow configuration environment, and reduce the frequency of system crashes.
[0061] On the basis of the technical solution disclosed in the above, the data processing flow configuration page comprises a first data processing flow; the method further comprises the following steps: a first data processing flow is saved in response to a save instruction for the first data processing flow; and a binding relationship between the target data processing unit and the data processing flow configuration page is released.
[0062] The data processing flow configuration page comprises a first data processing flow, which means that the first data processing flow is displayed in the data processing flow configuration page, and the first data processing flow can be a data processing flow configured this time.
[0063] The save instruction for the first data processing flow can be, for example, an instruction indicating that the first data processing flow is to be saved. The disclosure does not limit the timing of generating the save instruction for the first data processing flow. For example, when a triggering operation (such as a clicking operation, a sliding operation, etc.) of an option with a save function in the data processing flow configuration page is detected, the save instruction for the first data processing flow is generated. Alternatively, when it is detected that the user closes the data processing flow configuration page, the save instruction for the first data processing flow is generated.
[0064] Alternatively, when a first preset triggering condition is met, the save instruction for the first data processing flow is generated. The first preset triggering condition can be, for example, a predetermined time node. Further, the predetermined time node can be directly specified or calculated according to a preset time interval. The first preset triggering condition can also be, for example, that no configuration operation on the first data processing flow through the data processing flow configuration page is detected within a preset timeout period.
[0065] The binding relationship between the target data processing unit and the data processing flow configuration page is released, which means that the target data processing unit is released. After the release, the state of the target data processing unit is adjusted from an occupied state to an idle state.
[0066] In practice, when the save instruction for the first data processing flow is detected, the binding relationship between the target data processing unit and the data processing flow configuration page can be automatically released; or the binding relationship between the target data processing unit and the data processing flow configuration page can be set not to be automatically released when the save instruction for the first data processing flow is detected, but to be released when a release instruction is further received. The release instruction can be generated due to a user operation (such as the user clicking a control with a release function), or can be generated when a preset triggering condition is met (such as no editing operation of the user on the first data processing flow being detected within a preset timeout period).
[0067] By setting the binding relationship between the target data processing unit and the data processing flow configuration page to be released after the first data processing flow is saved, the scheduling of the data processing unit can be made more reasonable, the target data processing unit can smoothly enter the next flow process, the flow efficiency of the data processing unit is improved, and more data processing flow configuration requirements can be supported.
[0068] Further, the method further includes: in response to the save instruction for the first data processing flow, saving dependent data used for running the first data processing flow; associating the dependent data with the first data processing flow; and controlling the target data processing unit to clear the dependent data, so as to restore the target data processing unit to a preset state.
[0069] The dependent data used for running the first data processing flow can be, for example, data used to indicate that the first data processing flow can be normally run with the support of which media data processing components. For example, the dependent data used for running the first data processing flow can include a media data processing component itself supporting the running of the first data processing flow, or a name, version information, etc. of a media data processing component supporting the running of the first data processing flow.
[0070] The media data processing component can be, for example, a pre-packaged module with a specific function. It can be loaded (also referred to as “deployed”) into the data processing unit. The data processing unit can use the loaded media data processing component to configure the data processing flow, but cannot use the media data processing component that is not loaded to configure the data processing flow. Optionally, the media data processing component can include a model and / or a plug-in.
[0071] Exemplarily, if the media data is an image, the media data processing component includes an image generation model and an image processing plug-in. The image generation model may, for example, be a model for generating an image, which may be a text-to-image model or an image-to-image model, etc. The image processing plug-in may, for example, be a standalone module that extends the functions of an AI drawing tool, which may provide functions such as image processing, speech recognition, workflow management, etc. Among them, the image processing includes but is not limited to image enhancement, image cropping, image rotation, image scaling, image filter, image conversion, image synthesis, image repair, image edge, color feature information extraction, image denoising and image compression.
[0072] Among them, the image enhancement may, for example, include adjusting brightness, contrast, color balance, etc. The image cropping may, for example, refer to cropping a specific part of the image. The image rotation may, for example, refer to changing the direction of the image. The image scaling may, for example, refer to adjusting the size of the image. The image filter may, for example, refer to adding effects such as blurring, sharpening, etc. to the image. The image conversion may, for example, include converting a color image to a black and white image. The image synthesis may, for example, refer to merging multiple images into one. The image repair may, for example, refer to repairing defects or damaged parts in the image. The image denoising may, for example, refer to reducing noise in the image. The image compression may, for example, reduce the size of the image file.
[0073] The node in the data processing flow is an external expression form of the function of the media data processing component. Exemplarily, if there is a media data processing component, which is a text-to-image model, the text-to-image node can only be added in the data processing flow after the data processing unit loads the text-to-image model.
[0074] The dependent data is associated with the first data processing flow, so that the dependent data associated with the first data processing flow can be queried based on the first data processing flow, and then it is ensured that the first data processing flow can run normally when the first data processing flow is loaded again.
[0075] The preset state may, for example, be a unified initial state set for each data processing unit in the data processing system. In the preset state, the data processing unit may be deployed with some media data processing components, or may not be deployed with media data processing components at all.
[0076] In some scenarios, the dependent data for running the first data processing flow may, for example, be data that is newly added or modified with respect to the preset state before configuring the first data processing flow or in the process of configuring the first data processing flow.
[0077] Exemplarily, assume that at a certain time, the user C configures a data processing flow 1 by means of the computing power of the data processing unit 1. Before or during the configuration of the data processing flow 1, some specific media data processing components are deployed on the data processing unit 1, which constitute the dependent data associated with the data processing flow 1. After the configuration is completed, the configured data processing flow 1 is saved, and the dependent data associated with the data processing flow 1 is saved together. After the data processing unit 1 is released and restored to the preset state, the data processing unit 1 is allocated to the user D. The user D configures a data processing flow 2 by means of the computing power of the data processing unit 1. Before or during the configuration of the data processing flow 2, another specific media data processing component is deployed on the data processing unit 1, which constitutes the dependent data associated with the data processing flow 2.
[0078] Since in practice, for any data processing unit, it does not necessarily deploy the dependent data supporting the running of the data processing flow, for this purpose, by setting to save the dependent data for running the first data processing flow in response to the save instruction for the first data processing flow; associate the dependent data with the first data processing flow, so that when any subsequent data processing unit needs to run the first data processing flow, it only needs to load the dependent data corresponding to the first data processing flow, which can create an environment that can support the running of the first data processing flow, and can realize that the first data processing flow can normally run in any data processing unit, to improve its reproducibility and reliability.
[0079] Since in practice, there may be compatibility problems between different media data processing components, by setting to control the target data processing unit to clear the dependent data after saving the dependent data associated with the first data processing flow, so as to restore the target data processing unit to the preset state, the purpose is to make the target data processing unit not include the dependent data (such as media data processing components) deployed for the last data processing flow configuration after each time the target data processing unit is released, to avoid the conflict or interference of the dependent data deployed for the last data processing flow configuration on the current data processing flow configuration work, resulting in the current data processing flow cannot be normally configured.
[0080] It should be further noted that in some scenarios, the user may be busy with other things and suspend the configuration operation of the first data processing flow without completely configuring the first data processing flow, and in this process, the user does not actively release the target data processing unit. In response to this, optionally, in response to the save instruction for the first data processing flow, before the dependent data for running the first data processing flow is saved, the method further comprises: monitoring the configuration operation of the first data processing flow through the data processing flow configuration page; and if no configuration operation is detected within a preset timeout period, generating a save instruction for the first data processing flow.
[0081] The preset timeout period is a time period specified in advance, which is used to determine whether the user temporarily needs to use the computing power provided by the target data processing unit. The specific value of the preset timeout period is not limited in the disclosure. In practice, it can be set as needed. For example, the preset timeout period is 1 hour or 2 hours, etc.
[0082] Optionally, the timing starts from 0 after detecting the configuration operation of the first data processing flow each time. If a new configuration operation is detected within the preset timeout period, the timing is cleared and restarted. If no new configuration operation is detected within the preset timeout period, a save instruction for the first data processing flow is generated.
[0083] By setting that if no configuration operation is detected within the preset timeout period, a save instruction for the first data processing flow is generated. The purpose is to avoid a user occupying a data processing unit for a long time without configuring a data processing flow, causing other users in the same team to be unable to use the data processing unit.
[0084] On the basis of the above technical solutions, after S140, the method can further comprise: in response to an operation of loading a second data processing flow in the data processing flow configuration page; loading dependent data for running the second data processing flow; and displaying the second data processing flow in the data processing flow configuration page. This situation may, for example, correspond to a case where the user wants to modify and adjust an existing data processing flow. In this case, the second data processing flow is an existing data processing flow, and the first data processing flow is a new data processing flow obtained by modifying and adjusting the second data processing flow.
[0085] Referring to FIGS. 2 and 3, in the foregoing example, it is mentioned that a specified data processing flow can be loaded into the data processing flow configuration page through the "import local file" option, or the specified data processing flow can be loaded into the data processing flow configuration page by selecting the identification information of the data processing flow stored in the cloud. In these two scenarios, the data processing flow loaded into the data processing flow configuration page is the second data processing flow.
[0086] On the basis of each of the technical solutions described above, S130 can optionally include: if there is at least one data processing unit in the data processing system in an idle state, determining whether the number of data processing units currently occupied by the user is less than a set threshold; the set threshold being the maximum number of data processing units that the user can occupy; and if the determination result is that the number of data processing units currently occupied by the user is less than the set threshold, determining a target data processing unit in the data processing system.
[0087] For example, the data processing system 5 includes a total of 9 data processing units, and the team to which the user F belongs corresponds to the data processing system 5. The maximum number of data processing units that the user F can occupy is set to 3, i.e., the set threshold is 3. At time t1, there are 3 data processing units in the data processing system 5 in an occupied state, and all of the 3 data processing units are occupied by the user F. If the user F triggers the data processing flow configuration entry in the target page again, since the number of data processing units currently occupied by the user F (i.e., 3) is equal to the set threshold, information prompting that it is impossible to allocate a data processing unit to the user F is displayed. At time t2, there are 6 data processing units in the data processing system 5 in an occupied state, and the number of data processing units occupied by the user F among the 6 data processing units is 2. If the user F triggers the data processing flow configuration entry in the target page again, since the number of data processing units currently occupied by the user F (i.e., 2) is less than the set threshold, a target data processing unit is determined in the data processing system, i.e., a data processing unit is allocated to the user F.
[0088] Optionally, the target page further includes first prompt information and / or second prompt information; the first prompt information is used to prompt at least one of the following information: the number of data processing units included in the data processing system, the number of data processing units in an idle state included in the data processing system, and the number of data processing units in an occupied state included in the data processing system; and the second prompt information is used to prompt at least one of the following information: the maximum number of data processing units that the user can occupy, the number of data processing units currently occupied by the user, and the number of data processing units that the user can currently occupy.
[0089] Exemplarily, referring to FIG. 2, the upper right corner of the target page shows "Team resource used / total: 3 / 9 | Personal used / total: 1 / 2". The "Team resource used / total: 3 / 9" is the first prompt information. The "Personal used / total: 1 / 2" is the second prompt information. The first prompt information indicates the number of data processing units included in the data processing system (i.e., 9) and the number of data processing units in the data processing system in the occupied state (i.e., 3). The second prompt information indicates the number of data processing units that the user can occupy at most (i.e., 2) and the number of data processing units that the user has occupied at present (i.e., 1).
[0090] By setting the target page to further include the first prompt information and / or the second prompt information, the user can quickly understand the occupation of the data processing units in the current data processing system, and the user can reasonably arrange the configuration of the data processing flow.
[0091] On the basis of the above technical solutions, the method can further include: in response to a save instruction for the first data processing flow, generating identification information of the first data processing flow; and displaying the identification information of the first data processing flow in the target page. The purpose of this setting is to facilitate the user to conveniently manage the first data processing flow.
[0092] Further, the unbinding of the target data processing unit and the data processing flow configuration page includes: in response to a first selection operation on the first data processing flow in the target page, displaying a release option of the target data processing unit; and in response to a selection operation on the release option, unbinding the target data processing unit and the data processing flow configuration page.
[0093] The first selection operation on the first data processing flow may, for example, be an operation expressing the desire to select the first data processing flow. The first selection operation on the first data processing flow in the target page may, for example, be a click operation, a sliding operation, or a hovering operation on the identification information of the first data processing flow in the target page.
[0094] The release option of the target data processing unit may, for example, be an option having the function of releasing the target data processing unit. The selection operation on the release option may, for example, be a click operation, a sliding operation, or a hovering operation on the release option.
[0095] Exemplarily, referring to FIG. 2, it is assumed that the data processing flow 1 is a first data processing flow, and the target page includes identification information of the first data processing flow and identification information of other data processing flows. When the mouse hovers over the identification information of the first data processing flow, a release option of the target data processing unit is displayed. If the user clicks the release option of the target data processing unit, the binding relationship between the target data processing unit and the data processing flow configuration page is released. The purpose of such a setting is to allow the user to actively release the data processing unit, thereby improving the flow efficiency of the data processing unit.
[0096] On the basis of the above technical solutions, optionally, the method further includes: in response to a second selection operation on the first data processing flow in the target page, displaying an access permission configuration option corresponding to the first data processing flow; and in response to a selection operation on the access permission configuration option, configuring access permission of the first data processing flow.
[0097] The second selection operation on the first data processing flow may be, for example, an operation expressing a desire to select the first data processing flow. The second selection operation on the first data processing flow in the target page may be, for example, a click operation, a sliding operation, or a hovering operation on the identification information of the first data processing flow in the target page.
[0098] The second selection operation on the first data processing flow in the target page and the first selection operation on the first data processing flow in the target page may be the same operation or different operations, and the present disclosure does not limit this.
[0099] The access permission configuration option corresponding to the first data processing flow may be, for example, an option having a function of configuring which users can access (also referred to as load, configure, and debug) the first data processing flow.
[0100] The selection operation on the access permission configuration option may be, for example, a click operation, a sliding operation, or a hovering operation on the access permission configuration option, and an operation of specifying other users or teams having access permission.
[0101] In practice, after the second selection operation on the first data processing flow in the target page is performed, the access permission configuration option corresponding to the first data processing flow may be directly displayed. Alternatively, after a series of operations are completed, the access permission configuration option corresponding to the first data processing flow is displayed.
[0102] Exemplarily, referring to FIG. 2, it is assumed that the data processing flow 1 is a first data processing flow, and the target page includes identification information of the first data processing flow and identification information of other data processing flows. When the mouse hovers over the identification information of the first data processing flow, referring to FIG. 3, a management option of the data processing flow 1 is displayed. When the management option is selected, referring to FIG. 5, a "permission setting" option is displayed. The "permission setting" is an access permission configuration option.
[0103] The configuration of the access permission of the first data processing flow enables different users to view the same first data processing flow, facilitating the exchange and learning among different users and information sharing.
[0104] Optionally, the target page can further include a master release option, and the method can further include: in response to a selection operation on the master release option, releasing all data processing units currently occupied by the user.
[0105] The master release option can be, for example, an option of simultaneously releasing multiple data processing units. The selection operation on the master release option can be, for example, a click operation or a sliding operation, etc.
[0106] Exemplarily, it is assumed that a user occupies the data processing unit 1 to configure the data processing flow 1 and occupies the data processing unit 2 to configure the data processing flow 2. Referring to FIG. 2, the "one-key release" option in the target page is a master release option. If the user clicks the "one-key release" option, the data processing unit 1 and the data processing unit 2 will be released.
[0107] By setting that in response to the selection operation on the master release option, all data processing units currently occupied by the user are released, the data processing units occupied by the user can quickly enter the flow circulation link, and the flow circulation efficiency of the data processing units is improved.
[0108] It should be noted that, for each of the foregoing method embodiments, in order to simply describe, each is described as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited to the action sequence described, because according to the present disclosure, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0109] FIG. 6 is a structural schematic diagram of an interactive device for configuring a data processing flow in an embodiment of the present disclosure. The interactive device for configuring a data processing flow provided by the embodiment of the present disclosure can be configured in a client or can be configured in a server. Referring to FIG. 6, the interactive device for configuring a data processing flow specifically includes:
[0110] The first display module 310 is configured to display a target page, where the target page comprises a data processing flow configuration portal.
[0111] The determination module 320 is configured to determine a data processing system in response to a triggering operation on the data processing flow configuration portal, where the data processing system comprises a plurality of data processing units, and each of the data processing units can independently provide a service of configuring a data processing flow.
[0112] The allocation module 330 is configured to determine a target data processing unit in the data processing system, where a state of the target data processing unit is an idle state.
[0113] The second display module 340 is configured to display a data processing flow configuration page, and bind the target data processing unit with the data processing flow configuration page.
[0114] Further, the data processing flow configuration page comprises a first data processing flow, and the apparatus further comprises a saving module configured to:
[0115] In response to a saving instruction for the first data processing flow, save the first data processing flow;
[0116] Unbind the target data processing unit from the data processing flow configuration page.
[0117] Further, the saving module is configured to:
[0118] In response to a saving instruction for the first data processing flow, save dependent data used for running the first data processing flow;
[0119] Associate the dependent data with the first data processing flow;
[0120] Control the target data processing unit to clear the dependent data, so as to restore the target data processing unit to a preset state.
[0121] Further, the saving module is configured to:
[0122] In response to a saving instruction for the first data processing flow, monitor a configuration operation on the first data processing flow through the data processing flow configuration page before saving the dependent data used for running the first data processing flow;
[0123] If the configuration operation is not detected within a preset timeout duration, generate the saving instruction for the first data processing flow.
[0124] Further, the apparatus further comprises a loading module configured to:
[0125] displaying a data processing flow configuration page, wherein the data processing flow configuration page comprises a second data processing flow;
[0126] loading dependent data for running the second data processing flow;
[0127] displaying the second data processing flow in the data processing flow configuration page.
[0128] Further, the determining module is configured to:
[0129] If there is at least one data processing unit in the data processing system in an idle state, determining whether the number of data processing units currently occupied by the user is less than a set threshold value; the set threshold value is the maximum number of data processing units that can be occupied by the user;
[0130] If the determination result is that the number of data processing units currently occupied by the user is less than the set threshold value, determining a target data processing unit in the data processing system.
[0131] Further, the target page further comprises first prompt information and / or second prompt information;
[0132] The first prompt information is used to prompt at least one of the following information: the number of data processing units included in the data processing system, the number of data processing units in an idle state included in the data processing system, and the number of data processing units in an occupied state included in the data processing system;
[0133] The second prompt information is used to prompt at least one of the following information: the maximum number of data processing units that can be occupied by the user, the number of data processing units currently occupied by the user, and the number of data processing units that can be currently occupied by the user.
[0134] Further, the first display module is further configured to:
[0135] In response to a save instruction for the first data processing flow, generating identification information of the first data processing flow;
[0136] Displaying the identification information of the first data processing flow in the target page.
[0137] Further, the apparatus further comprises a control module configured to:
[0138] In response to a first selection operation on the first data processing flow in the target page, displaying a release option of the target data processing unit;
[0139] In response to a selection operation on the release option, a binding relationship between the target data processing unit and the data processing flow configuration page is released.
[0140] Further, the apparatus further includes a control module configured to:
[0141] In response to a second selection operation on a first data processing flow in the target page, an access permission configuration option corresponding to the first data processing flow is displayed.
[0142] In response to a selection operation on the access permission configuration option, an access permission of the first data processing flow is configured.
[0143] Further, the target page includes an overall control release option, and the apparatus further includes a control module configured to:
[0144] In response to a selection operation on the overall control release option, all data processing units currently occupied by a user are released.
[0145] The configuration data processing flow interactive apparatus provided by the embodiments of the present disclosure can perform the steps performed by the client or the server in the configuration data processing flow interactive method provided by the embodiments of the present disclosure, and has the execution steps and advantages, which will not be repeated here.
[0146] FIG. 7 is a structural schematic diagram of an electronic device according to an embodiment of the present disclosure. Referring to FIG. 7, a structural schematic diagram of an electronic device 1000 suitable for implementing the electronic device according to the embodiments of the present disclosure is shown. The electronic device 1000 according to the embodiments of the present disclosure can include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet Personal Computer), a PMP (Portable Multimedia Player), a vehicle terminal (for example, a car navigation terminal), a wearable electronic device, and the like, and a fixed terminal such as a digital TV, a desktop computer, a smart home device, and the like. The electronic device shown in FIG. 7 is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present disclosure.
[0147] As shown in FIG. 7, the electronic device 1000 can include a processing device (e.g., a central processor, a graphics processor, etc.) 1001 that can perform various appropriate actions and processes to implement the interaction method of configuring data processing flow according to embodiments of the present disclosure, according to programs stored in a read-only memory (ROM) 1002 or loaded into a random access memory (RAM) 1003 from a storage device 1008. Various programs and information required for the operation of the electronic device 1000 are also stored in the RAM 1003. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0148] In general, the following devices can be connected to the I / O interface 1005: input devices 1006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1008 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication devices 1009 can allow the electronic device 1000 to communicate wirelessly or wiredly with other devices to exchange information. Although FIG. 7 shows the electronic device 1000 with various devices, it should be understood that all of the shown devices are not required to be implemented or possessed. More or fewer devices can be alternatively implemented or possessed.
[0149] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts, thereby implementing the interaction method of configuring data processing flow as described above. In such embodiments, the computer program can be downloaded and installed from a network through the communication devices 1009, or installed from the storage devices 1008, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-described functions defined in the methods of embodiments of the present disclosure are performed.
[0150] It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or apparatus. In the present disclosure, the computer readable signal medium can include an information signal in a baseband or as a part of a carrier wave, which carries computer readable program code. Such a propagated signal can take many forms, including but not limited to an electromagnetic signal, an optical signal or any suitable combination of the above. The computer readable signal medium can also be any computer readable medium other than the computer readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or apparatus. The program code contained in the computer readable medium can be transmitted by any suitable medium, including but not limited to a wire, a cable, a RF (radio frequency) or the like, or any suitable combination of the above.
[0151] In some embodiments, the client, server can communicate using any known or future developed network protocols, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital information communication (e.g., communication networks). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any known or future developed networks.
[0152] The computer readable medium described above can be included in the electronic device described above; or can exist separately, without being assembled into the electronic device.
[0153] The computer readable medium described above carries one or more programs, when the one or more programs are executed by the electronic device, the electronic device:
[0154] Display a target page, the target page including a data processing flow configuration entry;
[0155] determining a data processing system in response to the triggering operation on the data processing flow configuration portal, the data processing system comprising a plurality of data processing units, each of the data processing units being capable of independently providing a service of configuring a data processing flow;
[0156] determining a target data processing unit in the data processing system, the target data processing unit being in an idle state;
[0157] displaying a data processing flow configuration page, and binding the target data processing unit with the data processing flow configuration page.
[0158] Optionally, when the one or more programs are executed by the electronic device, the electronic device can further perform other steps described in the above embodiments.
[0159] Computer program code for carrying out operations of the present disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0160] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a procedure, or a part of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in a different order than that noted in the figures. For example, two blocks noted in succession can in fact be executed substantially concurrently or in the opposite order, depending on the functionality involved. It is also noted that each block in the block diagrams and / or flow diagrams, and combinations of blocks in the block diagrams and / or flow diagrams, can be implemented by dedicated hardware-based systems that perform the specified functions or operations, or can be implemented by a combination of dedicated hardware-based systems and computer instructions.
[0161] The units described in the embodiments of the present disclosure can be implemented by software, or can be implemented by hardware. In some cases, the names of the units do not constitute a limitation on the units themselves.
[0162] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system on a chip (SOCs), complex programmable logic devices (CPLDs), etc.
[0163] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0164] According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device, comprising:
[0165] one or more processors;
[0166] a memory for storing one or more programs;
[0167] When the one or more programs are executed by the one or more processors, the one or more processors implement the interaction method of the configuration data processing flow as described in any of the embodiments of the present disclosure.
[0168] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium having stored thereon a computer program, which, when executed by a processor, implements the interaction method of the configuration data processing flow as described in any of the embodiments of the present disclosure.
[0169] The embodiments of the present disclosure also provide a computer program product, which includes a computer program or instructions, and the computer program or instructions, when executed by a processor, implement the interaction method of the configuration data processing flow as described above.
[0170] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0171] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An interactive method for configuring a data processing flow, comprising: displaying a target page, the target page comprising a data processing flow configuration portal; in response to a triggering operation on the data processing flow configuration portal, determining a data processing system, the data processing system comprising a plurality of data processing units; each of the data processing units independently providing a service for configuring a data processing flow; determining a target data processing unit in the data processing system, the target data processing unit being in an idle state; displaying a data processing flow configuration page, and binding the target data processing unit with the data processing flow configuration page.
2. The method of claim 1, wherein, the data processing flow configuration page comprising a first data processing flow; the method further comprising: in response to a save instruction for the first data processing flow, saving the first data processing flow; unbinding the target data processing unit from the data processing flow configuration page.
3. The method of claim 2, further comprising: in response to a save instruction for the first data processing flow, saving dependent data for running the first data processing flow; associating the dependent data with the first data processing flow; controlling the target data processing unit to clear the dependent data, so as to restore the target data processing unit to a preset state.
4. The method of claim 3, wherein, before the saving the dependent data for running the first data processing flow in response to the save instruction for the first data processing flow, the method further comprising: monitoring a configuration operation on the first data processing flow via the data processing flow configuration page; if no configuration operation is detected within a preset timeout period, generating a save instruction for the first data processing flow.
5. The method according to any one of claims 1 to 4, wherein, after the displaying the data processing flow configuration page, the method further comprising: in response to an operation of loading a second data processing flow in the data processing flow configuration page; loading dependent data for running the second data processing flow; displaying the second data processing flow in the data processing flow configuration page.
6. The method according to any one of claims 1 to 5, wherein, the determining the target data processing unit in the data processing system, comprising: if there is at least one data processing unit in the data processing system being in an idle state, determining whether a number of data processing units currently occupied by a user is less than a set threshold; the set threshold being a number of data processing units that can be occupied by the user at most; if the determination result is that the number of data processing units currently occupied by the user is less than the set threshold, determining the target data processing unit in the data processing system.
7. The method of claim 6, wherein, the target page further comprising first prompt information and / or second prompt information; the first prompt information being used for prompting at least one of the following information: a number of data processing units comprised by the data processing system, a number of data processing units in an idle state comprised by the data processing system, and a number of data processing units in an occupied state comprised by the data processing system. The second prompt information is used to prompt at least one of the following information: the maximum number of data processing units that can be occupied by the user, the number of data processing units currently occupied by the user, and the number of data processing units that can be currently occupied by the user.
8. The method of claim 2, further comprising: generating identification information of the first data processing flow in response to a save instruction for the first data processing flow; displaying the identification information of the first data processing flow in the target page.
9. The method of claim 8, further comprising: in response to a first selection operation on the first data processing flow in the target page, displaying a release option of the target data processing unit; in response to a selection operation on the release option, releasing the binding relationship between the target data processing unit and the data processing flow configuration page.
10. The method of claim 8, wherein, further comprising: in response to a second selection operation on the first data processing flow in the target page, displaying an access permission configuration option corresponding to the first data processing flow; in response to a selection operation on the access permission configuration option, configuring access permission of the first data processing flow.
11. The method of any one of claims 1-10, wherein, The target page includes an overall control release option, and the method further comprises: in response to a selection operation on the overall control release option, releasing all data processing units currently occupied by the user.
12. An interactive device for configuring a data processing flow, comprising: a first display module configured to display a target page, the target page including a data processing flow configuration entry; a determination module configured to determine a data processing system in response to a triggering operation on the data processing flow configuration entry, the data processing system including a plurality of data processing units; each of the data processing units can independently provide a service of configuring a data processing flow; an allocation module configured to determine a target data processing unit in the data processing system, the state of the target data processing unit being an idle state; a second display module configured to display a data processing flow configuration page, and bind the target data processing unit with the data processing flow configuration page.
13. An electronic device, comprising: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1-11.
14. A computer readable storage medium having stored thereon a computer program, wherein, The computer program is executed by the processor to implement the method of any one of claims 1-11.
Citation Information
Patent Citations
Resource scheduling method and device
CN107577534A
Resource allocation method and device, electronic equipment and storage medium
CN115586959A
Task management method and device
CN115981844A
Interaction method and device for configuring data processing flow, electronic equipment and storage medium
CN119127505A