A heterogeneous computing power task distribution method, a computing power operation platform, a device, and a medium

By using a multi-dimensional semantic binding mechanism for taskId and an active notification mode, the problem of standardized callback distribution for heterogeneous computing resources is solved, achieving precise association and dynamic routing between tasks and callbacks, thereby improving the system's response efficiency and scalability.

CN123157348APending Publication Date: 2026-11-24CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611028949.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-10
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies lack standardized callback distribution and dynamic routing mechanisms for heterogeneous computing resources, resulting in a lack of task-callback association mechanisms, insufficient callback location capabilities, poor scalability due to static configuration, and high resource consumption from periodic polling.

Method used

A multi-dimensional semantic binding mechanism using taskId is adopted. By generating a globally unique task identifier taskId and establishing a semantic association with multi-dimensional business context parameters, a request body structure is constructed and sent to the target heterogeneous computing power provider. During callback, the task record is queried through taskId to restore the business context. A proactive notification mode and a callback dispatcher dynamic discovery mechanism are adopted to achieve accurate callback.

Benefits of technology

It achieves unified distribution and precise callback of heterogeneous computing power tasks, reduces response latency and resource consumption, improves system flexibility and scalability, and avoids the maintenance cost of external mapping tables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157348A_ABST
    Figure CN123157348A_ABST
Patent Text Reader

Abstract

This application relates to the field of computing power scheduling technology, and discloses a heterogeneous computing power task distribution method, computing power operation platform, device, and medium. The heterogeneous computing power task distribution method includes: receiving a task request carrying task parameters; generating a globally unique task identifier (taskId) based on the task request, and establishing a semantic association between the taskId and its corresponding multi-dimensional business context parameters; saving task records and constructing a request body structure containing the taskId; sending the request body structure and the task request together to the target heterogeneous computing power provider; receiving the task request carrying the taskId returned by the target heterogeneous computing power provider, querying the task record through the taskId to restore the business context, and dynamically finding a Handler at runtime to execute callback processing. Through a multi-dimensional semantic binding mechanism for taskId, an active notification mode, and a runtime dynamic discovery mechanism for the callback dispatcher, unified distribution and accurate callbacks for different types of computing power tasks are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computing power scheduling technology, and in particular to a heterogeneous computing power task distribution method, computing power operation platform, equipment and medium. Background Technology

[0002] With the rapid development of technologies such as artificial intelligence, big data, and scientific computing, the demand for computing power has exploded. Currently, computing resources are becoming increasingly diverse, including general-purpose computing power based on x86 architecture, intelligent computing power based on GPUs (Graphics Processing Units) / TPUs (Tensor Processing Units), and energy-efficient computing power based on ARM (Advanced RISC Machine) architecture. These heterogeneous computing resources differ significantly in software stacks and interface protocols, posing a huge challenge to the unified management and efficient scheduling of computing resources.

[0003] Meanwhile, in computing power service scenarios, business modules need to send task requests to multiple heterogeneous computing power providers and expect to receive real-time, accurate callback notifications. However, existing technologies have the following problems: (1) The mechanism for linking tasks and callbacks is missing; (2) Insufficient callback positioning capability; (3) Static configuration results in poor scalability; (4) Timed polling consumes a lot of resources.

[0004] None of the existing solutions have established a standardized callback distribution mechanism and dynamic routing mechanism for heterogeneous computing resources. Summary of the Invention

[0005] The purpose of this invention is to provide at least one method for distributing heterogeneous computing power tasks, a computing power operation platform, equipment, and medium, which can at least solve the technical problem of the standardized callback distribution mechanism for heterogeneous computing power resources in existing methods.

[0006] To address the aforementioned technical problems, at least one embodiment of this application provides a heterogeneous computing power task distribution method, comprising: Receive a task request carrying task parameters, including multi-dimensional business context parameters; Based on the task request, a globally unique task identifier taskId is generated, and a semantic association is established between taskId and its corresponding multi-dimensional business context parameters. Save the task record and construct a request body structure containing the taskId, wherein the task record includes the taskId and its corresponding multi-dimensional business context parameters; Send the request body structure along with the task request to the target heterogeneous computing power provider; Receive a task request with taskId returned by the target heterogeneous computing power provider, query the task record by taskId to restore the business context; Based on the restored business context, the Handler is dynamically located at runtime to execute callback processing.

[0007] At least one embodiment of this application also provides a computing power operation platform, including: The business module layer includes multiple business modules; The task distribution channel is used for unified sending and receiving of task requests submitted by various business modules. This includes receiving task requests submitted by business modules carrying task parameters, including multi-dimensional business context parameters; generating a globally unique task identifier (taskId) based on the task request, and establishing a semantic association between the taskId and its corresponding multi-dimensional business context parameters; saving task records and constructing a request body structure containing the taskId, the task record including the taskId and its corresponding multi-dimensional business context parameters; sending the request body structure and the task request together to the target heterogeneous computing power provider; and receiving the task request carrying the taskId returned by the target heterogeneous computing power provider. The callback dispatcher is used to query task records by taskId to restore the business context, and dynamically find the Handler at runtime to execute callback processing based on the restored business context.

[0008] At least one embodiment of this application also provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the heterogeneous computing power task distribution method described above.

[0009] At least one embodiment of this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described heterogeneous computing power task distribution method.

[0010] The heterogeneous computing power task distribution method provided in the embodiments of this application achieves unified distribution and accurate callback of different types of computing power tasks through a multi-dimensional semantic binding mechanism of taskId, an active notification mode, and a dynamic discovery mechanism at runtime of the callback dispatcher.

[0011] In some optional embodiments, the multidimensional business context parameters include platform, taskType, action, and payload; Establish semantic relationships between taskId and its corresponding multi-dimensional business context parameters, including: establishing semantic relationships between taskId and its corresponding platform, taskType, and action; Save the task record and construct a request body structure containing the taskId, including: Save the taskId and its corresponding platform, taskType, and action as a task record, and inject the taskId into the payload to form a request body structure containing the taskId.

[0012] In some optional embodiments, the task request is initiated by the target heterogeneous computing power provider after completing the task and calling the callback interface of the computing power operation platform.

[0013] In some optional embodiments, sending the request body structure along with the task request to the target heterogeneous computing power provider includes: Based on the configuration of the target heterogeneous computing power provider in the platform query, the request body structure and the task request are sent to the target heterogeneous computing power provider together, so that the taskId is recorded by the target heterogeneous computing power provider as part of the callback address.

[0014] In some optional embodiments, the Handler is dynamically located at runtime to perform callback processing based on the restored business context, including: Based on the restored business context, the Handler instance is dynamically located at runtime through the Spring container to execute callback processing.

[0015] In some alternative embodiments, the callback dispatcher includes: A multidimensional semantic restorer is used to query task records by taskId and restore the multidimensional business context parameters bound to the taskId based on the task records. Multidimensional Semantic Dispatcher: Based on the restored business context, it dynamically finds Handler instances at runtime through the Spring container to execute callback processing.

[0016] In some optional embodiments, the callback dispatcher further includes: a processor registry for managing dynamic registration information of Handler instances, so as to dynamically find Handler instances by querying the processor registry to perform callback processing. Attached Figure Description

[0017] One or more embodiments are illustrated by way of example with reference to the accompanying drawings, and these illustrative descriptions do not constitute a limitation on the embodiments.

[0018] Figure 1 This is a flowchart of a heterogeneous computing power task distribution method provided in an embodiment of this application; Figure 2 This is a schematic diagram of a computing power operation platform provided in an embodiment of this application; Figure 3 This is a schematic diagram illustrating the entire task distribution process provided in an embodiment of this application. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the various embodiments of this application will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details have been provided in the various embodiments of this application to help readers better understand this application. However, the technical solutions claimed in this application can be implemented even without these technical details and various changes and modifications based on the following embodiments. The division of the various embodiments below is for the convenience of description and should not constitute any limitation on the specific implementation of this application. The various embodiments can be combined with and referenced by each other without contradiction.

[0020] To facilitate understanding of the embodiments of this application, relevant content regarding computing power management and scheduling will be introduced first.

[0021] With the rapid development of technologies such as artificial intelligence, big data, and scientific computing, the demand for computing power has exploded. Currently, computing resources are becoming increasingly diverse, including general-purpose computing power based on x86 architecture, intelligent computing power based on GPUs (Graphics Processing Units) / TPUs (Tensor Processing Units), and energy-efficient computing power based on ARM (Advanced RISC Machine) architecture. These heterogeneous computing resources differ significantly in software stacks and interface protocols, posing a huge challenge to the unified management and efficient scheduling of computing resources.

[0022] Meanwhile, in computing power service scenarios, business modules need to send task requests to multiple heterogeneous computing power providers and expect to receive real-time, accurate callback notifications. However, existing technologies have the following problems: (1) Lack of association mechanism between tasks and callbacks: In the existing technology, there is no end-to-end association mechanism between task requests. After the business module submits a task request, it cannot accurately associate the task request with the original task. It often needs to rely on external mapping tables for association. Maintaining external mapping tables (such as order number mapping tables) is costly, difficult to expand, and prone to errors.

[0023] (2) Insufficient callback location capability: After the task request arrives, the business context (platform, taskType, action) cannot be directly restored. Additional queries and associations are required to obtain complete task information, which increases the response latency. (3) Static configuration leads to poor scalability: Callback routes often use static configuration methods (such as configuration files, database routing tables), and adding new task types requires manual modification of the configuration, which is not flexible and scalable enough. (4) High resource consumption of timed polling: Some existing systems use timed polling mechanism to obtain the status of third parties, which has high response latency and high resource consumption, and cannot achieve real-time response; (5) Lack of multidimensional semantics: Existing callback mechanisms often use a single identifier (such as order number), which cannot carry complete business semantics (platform, taskType, action), making it difficult to directly restore the business context during callback.

[0024] None of the existing solutions have established a standardized callback distribution mechanism and dynamic routing mechanism for heterogeneous computing resources.

[0025] To address the aforementioned technical problems, this invention proposes a heterogeneous computing power task distribution method, computing power operation platform, equipment, and medium. The implementation details of this invention are described below. The following content is only for ease of understanding and is not essential for implementing this solution.

[0026] Example 1: The heterogeneous computing power task distribution method of this embodiment can be applied to electronic devices with communication, computing, and data storage capabilities. Its specific process can be as follows: Figure 1 As shown, it includes: Step 101: Receive a task request carrying task parameters.

[0027] Specifically, the business module submits a task request carrying task parameters, which include multi-dimensional business context parameters, including platform, taskType, action, and payload.

[0028] Step 102: Based on the task request, generate a globally unique task identifier taskId, and establish a semantic association between taskId and its corresponding multi-dimensional business context parameters.

[0029] In the specific implementation, a semantic association is established between taskId and its corresponding multi-dimensional business context parameters, including: establishing a semantic association between taskId and its corresponding platform, taskType, and action, forming a four-tuple binding relationship {taskId}. platform taskType The action does not require waiting for a response from the heterogeneous computing power provider. This quadruple binding relationship can be implemented in the form of a multidimensional semantic association table.

[0030] Since taskId is not an isolated identifier, but rather forms a semantic association with task parameters, the complete business context can be restored through taskId during callback.

[0031] Step 103: Save the task record and construct a request body structure containing the taskId.

[0032] In the specific implementation, the task record is saved and a request body structure containing the taskId is constructed, including: saving the taskId and its corresponding platform, taskType, and action as a task record, injecting the taskId into the payload, and forming a request body structure containing the taskId.

[0033] Specifically, the task record includes the taskId and its corresponding multi-dimensional business context parameters.

[0034] In some examples, the task record also includes the task status; therefore, the task record includes the status PENDING, taskId, platform, taskType, and action. The request body structure that includes the taskId is {taskId, payload}.

[0035] By persistently storing the taskId and its bound platform, taskType, and action as task records, a direct mapping relationship between taskId and business context is established. Step 104: Send the request body structure and the task request together to the target heterogeneous computing power provider.

[0036] Specifically, the taskId is injected into the payload to form a {taskId, payload} structure, which is sent along with the business request to the target heterogeneous computing power provider (target cloud provider). The parameters submitted to the target computing power provider include {taskId, platform, taskType, action, payload}.

[0037] In the specific implementation, the request body structure is sent together with the task request to the target heterogeneous computing power provider, including: Based on the configuration of the target heterogeneous computing power provider according to the platform query, the request body structure and the task request are sent to the target heterogeneous computing power provider together, so that the taskId is recorded by the target heterogeneous computing power provider as part of the callback address.

[0038] By sending the taskId and its carried multi-dimensional semantics along with the business request to the target computing power provider, a callback anchor can be formed. The taskId is recorded by the target heterogeneous computing power provider as part of the callback address, and its carried multi-dimensional semantics (platform, taskType, action) are transmitted along with the task request. After the target computing power provider completes processing, it must return the received taskId in the task request to achieve the binding of the callback anchor. At the same time, it achieves the separate management of the multi-dimensional semantics of the target heterogeneous computing power provider (cloud provider) configuration (API address, authentication information) and taskId. By combining steps 101-104, a multi-dimensional semantic callback chain can be realized: pre-generate taskId → establish multi-dimensional semantic association (four-tuple binding) with platform, taskType, and action → persist multi-dimensional semantics of taskId → inject payload → save task record → send the request containing taskId and multi-dimensional semantics to the target heterogeneous computing power provider → establish callback anchor point → after the target heterogeneous computing power provider completes processing, return taskId in the task request → restore business context through taskId → accurately locate task record. The taskId establishes multi-dimensional semantic binding with platform, taskType, and action from the initiation of the task request, which runs through the entire process and forms a complete multi-dimensional semantic callback chain.

[0039] Step 105: Receive the task request carrying taskId returned by the target heterogeneous computing power provider, and query the task record through taskId to restore the business context.

[0040] In practice, the task request is initiated by the target heterogeneous computing power provider after the task is completed, and the request is returned by the callback interface of the computing power operation platform.

[0041] In some cases, after the target heterogeneous computing power provider completes the task, it calls the computing power operation platform's callback interface POST / standardapi / v1 / tasks / callback, carrying the taskId, status, and payload. The task distribution channel executes the callback processing flow, completing the status loop. Since the target heterogeneous computing power provider actively calls the callback interface, the callback dispatcher responds in real time, eliminating the need for periodic polling.

[0042] Step 106: Based on the restored business context, dynamically find the Handler at runtime to perform callback processing.

[0043] In some examples, the Handler is dynamically located at runtime to perform callback processing based on the restored business context, including: dynamically locating the Handler instance at runtime through the Spring container to perform callback processing based on the restored business context.

[0044] This embodiment provides a heterogeneous computing power task distribution method based on multi-dimensional semantic callback links. It achieves end-to-end association between requests and callbacks through a multi-dimensional semantic pre-generation mechanism using taskId, and binds {taskId} using a four-tuple. platform taskType The `action` function implements a multi-dimensional semantic callback chain, ensuring accurate callback location and semantic restoration. A persistent multi-dimensional semantic binding mechanism for `taskId` is established, enabling real-time restoration of the business context during callbacks without maintaining external mapping tables. A runtime dynamic discovery mechanism for the callback dispatcher allows new task types to be automatically integrated without static configuration. An active notification mode replaces periodic polling, achieving real-time response, low latency, and low resource consumption. Through the multi-dimensional semantic binding mechanism for `taskId`, the active notification mode, and the runtime dynamic discovery mechanism for the callback dispatcher, unified distribution and accurate callbacks for different types of computing power tasks are achieved.

[0045] Example 2: Based on the above embodiments, a computing power operation platform is provided, such as... Figure 2 As shown, it includes: The business module layer includes multiple business modules; The task distribution channel is used for unified sending and receiving of task requests submitted by various business modules. This includes receiving task requests with task parameters, including multi-dimensional business context parameters; generating a globally unique task identifier (taskId) based on the task request and establishing a semantic association between the taskId and its corresponding multi-dimensional business context parameters; saving task records and constructing a request body structure containing the taskId, which includes the taskId and its corresponding multi-dimensional business context parameters; sending the request body structure along with the task request to the target heterogeneous computing power provider; and receiving task requests with the taskId returned by the target heterogeneous computing power provider. The callback dispatcher is used to query task records by taskId to restore the business context. Based on the restored business context, it dynamically finds the Handler at runtime to execute callback processing.

[0046] In the specific implementation, the callback dispatcher includes: A multidimensional semantic restorer is used to query task records by taskId and restore the multidimensional business context parameters bound to taskId based on the task records. Multidimensional Semantic Dispatcher: Based on the restored business context, it dynamically finds Handler instances at runtime through the Spring container to execute callback processing.

[0047] In some embodiments, the callback dispatcher further includes: a processor registry for managing dynamic registration information of Handler instances, so as to dynamically find Handler instances by querying the processor registry to perform callback processing.

[0048] The callback dispatcher restores the business context (platform, taskType, action) based on the taskId in the task request. At runtime, the callback dispatcher dynamically finds the corresponding Handler and executes the callback processing.

[0049] In some examples, the computing power operation platform comprises a business module layer and a general task distribution channel. The business module layer includes various business modules such as order modules, monitoring modules, and backup modules, which submit task requests to the task distribution channel through a unified interface. The general task distribution channel is responsible for the unified sending and receiving of tasks, including four standard interfaces: task distribution, task query, task cancellation, and callback reception, using HTTPS / JSON protocols for communication. The heterogeneous computing power resource provider comprises a resource access adaptation layer and a native computing power resource layer. The resource access adaptation layer is responsible for implementing the standard interfaces defined by the computing power operation platform, completing functions such as protocol conversion and resource description mapping; the native computing power resource layer includes various heterogeneous computing power resources, such as general computing resources and intelligent computing resources.

[0050] Example 3: Based on the above embodiments, this embodiment provides an application example of a computing power operation platform and a heterogeneous computing power task distribution method.

[0051] The computing power operation platform comprises a business module layer and a general task distribution channel. The business module layer includes various business modules such as order modules, monitoring modules, and backup modules, which submit task requests to the general task distribution channel through a unified dispatch() interface. The general task distribution channel is responsible for the unified sending and receiving of tasks, including four standard interfaces: task distribution, task query, task cancellation, and callback reception, using HTTPS / JSON protocol for communication.

[0052] Heterogeneous computing resource providers consist of a resource access adaptation layer and a native computing resource layer. The resource access adaptation layer is responsible for implementing the standard interfaces defined by the computing power operation platform and completing functions such as protocol conversion and resource description mapping; the native computing resource layer includes various heterogeneous computing resources, such as general computing resources and intelligent computing resources.

[0053] The callback dispatcher has the following architecture: Callback receiver: Receives task requests; Multidimensional semantic restorer: Query task records by taskId to restore the business context such as platform, taskType, and action bound to taskId; Status updater: Updates task status; Processor Registry: Manages dynamic registration information for TaskCallbackHandler instances (platform) Handler mapping, taskType Handler mapping); Multidimensional semantic dispatcher: Finds the corresponding Handler instance at runtime based on the restored platform and taskType.

[0054] The entire process of task distribution based on the above system architecture, such as Figure 3 As shown, it includes S01-S05: S01: multi-dimensional semantic pre-generation mechanism for taskId.

[0055] The business module calls the dispatch() interface of the general task distribution channel, submitting the platform, taskType, action, and payload parameters. When the business module submits the task request, a taskId is pre-generated, and a multi-dimensional semantic association is established between the taskId and the platform, taskType, and action, forming a four-tuple binding relationship: {taskId platform taskType action}: When the computing power operation platform receives a task request from a business module, it generates a globally unique taskId and records the corresponding platform, taskType, and action, establishing a four-tuple binding relationship without waiting for the cloud provider (heterogeneous computing power provider) to return. The taskId is not an isolated identifier, but forms a semantic association with the task parameters, forming a multi-dimensional semantic association table. During callback, the complete business context can be restored through the taskId. The parameters submitted to the target heterogeneous computing power provider include {taskId, platform, taskType, action, payload}.

[0056] S02: Multidimensional semantic binding of taskId and persistence of records.

[0057] The computing power operation platform saves task records (including status PENDING, taskId, platform, taskType, and action), and injects the taskId into the original payload to form a request body structure {taskId, payload} containing the taskId.

[0058] This step enables the persistence of multi-dimensional semantic binding of taskId, and includes two key components: taskId multidimensional semantic binding persistence: persistently store taskId and its bound platform, taskType, and action as task records, and establish a direct mapping relationship between taskId and business context; taskId is injected into payload: The taskId is injected into the payload to form a {taskId, payload} structure, which is then sent to the target heterogeneous computing power provider along with the task request.

[0059] S03: The multidimensional semantics of taskId are passed to the target heterogeneous computing power provider and the callback anchor point is established along with the request.

[0060] The task distribution channel queries the target heterogeneous computing power provider's configuration based on the platform in the task request, and sends the request body structure (including platform, taskType, and action) containing taskId to the target heterogeneous computing power provider.

[0061] The core function of S03 is to send the taskId and its multi-dimensional semantics along with the request to the target cloud heterogeneous computing power provider, forming a callback anchor point, specifically including: The multidimensional semantics of taskId are transmitted with the request: S03 sends the request body containing taskId to the target heterogeneous computing power provider. The taskId is recorded by the heterogeneous computing power provider as part of the callback address, and its multidimensional semantics (platform, taskType, action) are transmitted with the task request. Callback anchor establishment: After the heterogeneous computing power provider completes the processing, it must return the received taskId in the task request to realize the binding of the callback anchor. Heterogeneous computing power provider configuration and multidimensional semantic separation: multidimensional semantic separation management of heterogeneous computing power provider configuration (including API address and authentication information) and taskId.

[0062] By combining S01, S02, and S03, a multi-dimensional semantic callback chain can be achieved: S01: Pre-generate taskId → Establish multi-dimensional semantic association (four-tuple binding) with platform, taskType, and action; S02: Persist taskId multi-dimensional semantics → Inject payload → Save task record; S03: Send request containing taskId and multi-dimensional semantics to target cloud provider → Establish callback anchor; Callback: After the cloud heterogeneous computing power provider completes processing, it returns taskId in the task request → Restore business context through taskId → Accurately locate task record. Thus, a complete multi-dimensional semantic callback chain is formed, where taskId establishes multi-dimensional semantic binding with platform, taskType, and action from the moment the request is initiated, spanning the entire process from S01 to S02 to S03 and then to callback.

[0063] S04: Proactive Notification Pattern and Multidimensional Semantic Callback After the target heterogeneous computing power provider completes the task, it calls the callback interface of the computing power operation platform, POST / standardapi / v1 / tasks / callback, carrying taskId, status, and payload. The task distribution channel executes the callback processing flow to complete the status loop.

[0064] Implementing multi-dimensional semantic callbacks in the proactive notification mode includes: Active notification mode: The target heterogeneous computing power provider actively calls the callback interface, and the callback dispatcher responds in real time without the need for periodic polling; Multidimensional semantic callback: The task request carries the taskId. The computing power operation platform queries the task record through the taskId and restores the business context such as platform, taskType, and action bound to the taskId.

[0065] S05: Callback dispatcher runtime dynamic discovery mechanism.

[0066] The callback dispatcher restores the business context (platform, taskType, action) based on the taskId in the task request. At runtime, the callback dispatcher dynamically finds the corresponding Handler and executes the callback processing.

[0067] Implement a runtime dynamic discovery mechanism for the callback dispatcher, including: The callback dispatcher dynamically discovers Handlers at runtime: At runtime, the callback dispatcher scans all Beans implementing the TaskCallbackHandler interface through the Spring container, establishing a dynamic mapping relationship based on the Handler's supportedPlatform() and supportedTaskType() methods. When a task request is received, the callback dispatcher queries the HandlerRegistry based on the platform and taskType reconstructed from the taskId, obtains the corresponding Handler instance, and calls its handle() method. Multidimensional semantic dynamic routing: Dynamic routing is performed based on the platform and taskType reconstructed from the taskId, rather than static configuration; Automatic integration of new task types: To automatically integrate a new task type, simply implement the TaskCallbackHandler interface and register it as a Spring Bean.

[0068] By dividing the task distribution process of heterogeneous computing power resources into five ordered steps (S01 to S05), each step works together to achieve a complete process from task requests from business modules to processing by third-party platforms (heterogeneous computing power providers) and then to state closure.

[0069] This embodiment designs a complete multi-dimensional semantic callback chain, which connects task requests, cloud service provider processing, and callback distribution into a unified whole through a taskId multi-dimensional semantic binding mechanism. Among them, taskId runs through the entire process of S01→S02→S03→S04→S05 and is the core anchor point for accurate callback positioning and multi-dimensional semantic reconstruction.

[0070] This embodiment can bring the following beneficial effects: 1. Through the multi-dimensional semantic pre-generation mechanism of taskId, taskId is pre-generated when the business module submits a request, and a four-tuple binding relationship is established between taskId and platform, taskType, and action. platform taskType The `action` property enables multi-dimensional binding between callback location and business semantics. During callbacks, the business context can be directly restored using the `taskId`, without the need for any external mapping tables. Compared to the single-dimensional identifier `api_key`, the four-tuple binding provides complete business semantics and direct location capabilities.

[0071] 2. The taskId multi-dimensional semantic binding persistence mechanism persistently stores the taskId and its bound platform, taskType, and action as task records, establishing a direct mapping relationship between taskId and business context. This mechanism enables instant callback location restoration; during callbacks, the complete business context can be obtained by directly querying the task record using the taskId, eliminating the need to maintain an externalTaskId mapping table. Compared to a static login mapping table, this dynamic binding offers task-level granularity and real-time effectiveness.

[0072] 3. Through a complete multi-dimensional semantic callback mechanism, S01 pre-generates taskId to establish multi-dimensional semantic association → S02 persists the binding → S03 sends it to the cloud provider with the request → taskId is returned during the callback → the business context is restored through taskId. taskId is used throughout the entire process, serving as both the callback anchor and the carrier of business semantics. This mechanism achieves precise callback location and semantic restoration.

[0073] 4. A proactive notification model replaces timed polling. Heterogeneous computing power providers proactively call the callback interface, and the callback dispatcher responds in real time, resulting in lower latency and resource consumption compared to timed polling. Furthermore, multi-dimensional semantic callbacks ensure that the business context can be directly restored during callbacks without additional queries.

[0074] 5. The callback dispatcher utilizes a runtime dynamic discovery mechanism. The Spring container dynamically discovers all TaskCallbackHandler implementations at runtime and establishes dynamic mappings based on `supportedPlatform()` and `supportedTaskType()`. This mechanism allows new task types to be automatically integrated without static configuration, performing dynamic routing based on `platform` and `taskType`, eliminating the need to maintain static route configurations. Compared to static configuration, it offers the advantage of flexible extensibility.

[0075] Therefore, by combining the taskId multidimensional semantic binding mechanism, the proactive notification mode, and the callback dispatcher runtime dynamic discovery mechanism, it is possible to achieve unified distribution and accurate callback of different types of computing power tasks.

[0076] Example 4: Another embodiment of this application relates to an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods described in the above embodiments.

[0077] In this embodiment, the memory and processor are connected via a bus, which can include any number of interconnected buses and bridges, connecting various circuits of one or more processors and the memory together. The bus can also connect various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be further described in this embodiment. A bus interface provides an interface between the bus and the transceiver. The transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over the wireless medium via an antenna, which further receives data and transmits it to the processor.

[0078] The processor manages the bus and general processing, and also provides various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory is used to store data used by the processor during operation.

[0079] Example 5: Another embodiment of this application relates to a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the methods of the embodiments described above.

[0080] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0081] Those skilled in the art will understand that the above embodiments are specific embodiments for implementing this application, and in practical applications, various changes can be made to them in form and detail without departing from the spirit and scope of this application.

Claims

1. A method for distributing heterogeneous computing power tasks, characterized in that, include: Receive a task request carrying task parameters, including multi-dimensional business context parameters; Based on the task request, a globally unique task identifier taskId is generated, and a semantic association is established between taskId and its corresponding multi-dimensional business context parameters. Save the task record and construct a request body structure containing the taskId, wherein the task record includes the taskId and its corresponding multi-dimensional business context parameters; Send the request body structure along with the task request to the target heterogeneous computing power provider; Receive a task request with taskId returned by the target heterogeneous computing power provider, query the task record by taskId to restore the business context; Based on the restored business context, the Handler is dynamically located at runtime to execute callback processing.

2. The heterogeneous computing power task distribution method according to claim 1, characterized in that, The multidimensional business context parameters include platform, taskType, action, and payload; Establish semantic relationships between taskId and its corresponding multi-dimensional business context parameters, including: establishing semantic relationships between taskId and its corresponding platform, taskType, and action; Save the task record and construct a request body structure containing the taskId, including: Save the taskId and its corresponding platform, taskType, and action as a task record, and inject the taskId into the payload to form a request body structure containing the taskId.

3. The heterogeneous computing power task distribution method according to claim 1, characterized in that, The task request is initiated by the target heterogeneous computing power provider after completing the task and calling the callback interface of the computing power operation platform.

4. The heterogeneous computing power task distribution method according to claim 1, characterized in that, Sending the request body structure along with the task request to the target heterogeneous computing power provider includes: Based on the configuration of the target heterogeneous computing power provider in the platform query, the request body structure and the task request are sent to the target heterogeneous computing power provider together, so that the taskId is recorded by the target heterogeneous computing power provider as part of the callback address.

5. The heterogeneous computing power task distribution method according to claim 1, characterized in that, Based on the restored business context, the Handler is dynamically located at runtime to execute callback processing, including: Based on the restored business context, the Handler instance is dynamically located at runtime through the Spring container to execute callback processing.

6. A computing power operation platform, characterized in that, include: The business module layer includes multiple business modules; The task distribution channel is used for unified sending and receiving of task requests submitted by various business modules. This includes receiving task requests submitted by business modules carrying task parameters, including multi-dimensional business context parameters; generating a globally unique task identifier (taskId) based on the task request; establishing a semantic association between the taskId and its corresponding multi-dimensional business context parameters; saving task records and constructing a request body structure containing the taskId, the task record including the taskId and its corresponding multi-dimensional business context parameters; and sending the request body structure along with the task request to the target heterogeneous computing power provider. Receive a task request with taskId returned by the target heterogeneous computing power provider; The callback dispatcher is used to query task records by taskId to restore the business context, and dynamically find the Handler at runtime to execute callback processing based on the restored business context.

7. The computing power operation platform according to claim 6, characterized in that, The callback dispatcher includes: A multidimensional semantic restorer is used to query task records by taskId and restore the multidimensional business context parameters bound to the taskId based on the task records. Multidimensional Semantic Dispatcher: Based on the restored business context, it dynamically finds Handler instances at runtime through the Spring container to execute callback processing.

8. The computing power operation platform according to claim 7, characterized in that, The callback dispatcher further includes a processor registry for managing the dynamic registration information of Handler instances, so as to dynamically find Handler instances by querying the processor registry to execute callback processing.

9. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the heterogeneous computing power task distribution method as described in any one of claims 1 to 5.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the heterogeneous computing power task distribution method according to any one of claims 1 to 5.