Data processing method, system and apparatus

By using pre-initialization and preheating sandbox pools, combined with resource management and task management components, the problem of long waiting times in container orchestration platforms or virtual machine technologies is solved, achieving fast response and efficient task instance allocation and maintenance.

CN123157331APending Publication Date: 2026-11-24INFLY TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, environment isolation solutions based on container orchestration platforms or virtual machine technologies have long time consumption for state maintenance and waiting, making it difficult to meet the low waiting time requirements of real-time interaction scenarios.

Method used

By pre-initializing and preheating the sandbox pool, an initial isolated execution environment is pre-built. Combined with the collaborative work of resource management components and task management components, target task instances are quickly allocated and launched, and instance data is continuously maintained.

Benefits of technology

It enables rapid response to instance creation requests in real-time interactive scenarios, shortens task execution waiting time, and meets the requirement of low waiting time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157331A_ABST
    Figure CN123157331A_ABST
Patent Text Reader

Abstract

This specification provides a data processing method, system, and apparatus. The data processing method includes: determining an instance identifier and task data of the target task in response to an instance creation request associated with a target task; invoking a resource management component, determining a task management component based on the task data, and associating the task management component with the instance identifier and an execution node; launching a target task instance matching the target task through the task management component, determining the instance data of the target task instance, and sending the instance data to the task terminal of the target task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments in this specification relate to the field of information processing technology, and in particular to data processing methods, systems and apparatus. Background Technology

[0002] With the widespread application of AI agent technology in scenarios such as programming assistance, data analysis, automated process execution, and tool integration, agent systems typically need to dynamically create independent runtime environments when executing user commands. These environments are used to handle operations such as code execution, temporary data reading and writing, just-in-time compilation and computation, and script command invocation, and then feed the execution results back to the upper-layer agent logic. While existing environment isolation solutions based on container orchestration platforms or virtual machine technology can meet the basic requirements of security and resource isolation to a certain extent, they still suffer from problems such as state maintenance and long waiting times. Therefore, a more effective data processing method is urgently needed to solve these problems. Summary of the Invention

[0003] In view of the above, embodiments of this specification provide a data processing method. One or more embodiments of this specification also relate to a data processing system, a data processing apparatus, a computing device, a computer-readable storage medium, and a computer program product, to address the technical deficiencies existing in the prior art.

[0004] According to a first aspect of the embodiments of this specification, a data processing method is provided, comprising:

[0005] In response to an instance creation request associated with a target task, determine the instance identifier and the task data of the target task;

[0006] Invoke the resource management component, determine the task management component based on the task data, and associate the task management component with the instance identifier and execution node;

[0007] The target task instance matching the target task is launched through the task management component, and the instance data of the target task instance is determined and sent to the task end of the target task.

[0008] Optionally, the step of invoking the resource management component, and determining the task management component based on the task data, includes:

[0009] Invoke the resource management component, and if it is determined that there is at least one candidate task management component, determine the task management component from the at least one candidate task management component based on the task data;

[0010] Invoke the resource management component, and if it is determined that no candidate management component exists, create the task management component corresponding to the task data.

[0011] Optionally, associating the task management component with the instance identifier and execution node includes:

[0012] Based on the task data, at least one execution capability dimension is determined, and the capability of nodes in the node cluster is detected based on the at least one execution capability dimension.

[0013] The execution node is determined based on the detection results, and the task management component is associated with the execution node and the instance identifier.

[0014] Optionally, launching the target task instance matching the target task through the task management component includes:

[0015] The task management component is invoked to determine the instance type based on the task requirement information of the target task, and to determine the target task instance that matches the instance type in the instance set;

[0016] The target task instance is started by calling the adaptation interface through the task management component.

[0017] Optionally, after launching the target task instance matching the target task through the task management component, the method further includes:

[0018] If the target task instance meets the update requirements, the resource management component sends an instance update command to the task management component.

[0019] The task management component is invoked to update the target task instance in response to the instance update instruction.

[0020] Optionally, before launching the target task instance matched by the target task through the task management component, the method further includes:

[0021] Identify at least one instance detection item associated with the target task instance;

[0022] Instance detection is performed on the target task instance based on the at least one instance detection item.

[0023] Optionally, after sending the instance data to the task terminal of the target task, the method further includes:

[0024] Receive the task execution request submitted by the task terminal for the target task, and send the task execution request to the task execution process in the execution node;

[0025] The task execution process is invoked to execute the target task within the target task instance.

[0026] Optionally, before determining the instance identifier and the task data of the target task in response to the instance creation request associated with the target task, the method further includes:

[0027] Determine at least one task type and initialize the initial instance corresponding to each of the at least one task type.

[0028] According to a second aspect of the embodiments of this specification, a data processing system is provided, including a task terminal and a server terminal, comprising:

[0029] The task terminal is used to send an instance creation request associated with the target task to the server.

[0030] The server is used to determine the instance identifier and the task data of the target task in response to the instance creation request;

[0031] The resource management component is invoked, the task management component is determined based on the task data, and the task management component is associated with the instance identifier and execution node; the target task instance matching the target task is started through the task management component, the instance data of the target task instance is determined, and the instance data is sent to the task end of the target task.

[0032] According to a third aspect of the embodiments of this specification, a data processing apparatus is provided, comprising:

[0033] The determination module is configured to determine the instance identifier and the task data of the target task in response to an instance creation request associated with the target task;

[0034] The association module is configured to invoke the resource management component, determine the task management component based on the task data, and associate the task management component with the instance identifier and execution node;

[0035] The sending module is configured to initiate a target task instance matching the target task through the task management component, determine the instance data of the target task instance, and send the instance data to the task end of the target task.

[0036] According to a fourth aspect of the embodiments of this specification, a computing device is provided, comprising:

[0037] Memory and processor;

[0038] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, which, when executed by the processor, implement the steps of the above-described data processing method.

[0039] According to a fifth aspect of the embodiments of this specification, a computer-readable storage medium is provided that stores computer-executable instructions, which, when executed by a processor, implement the steps of the data processing method described above.

[0040] According to a sixth aspect of the embodiments of this specification, a computer program product is provided, including a computer program or instructions that, when executed by a processor, implement the steps of the data processing method described above.

[0041] This specification provides a data processing method according to one embodiment, which determines an instance identifier and task data of the target task in response to an instance creation request associated with a target task. A resource management component is invoked, and a task management component is determined based on the task data. This task management component is then associated with the instance identifier and execution node. The task management component initiates a target task instance matching the target task, enabling the selection of an execution node based on the target task's task data and the initiation of a target task instance matching the target task. The task management component and resource management component collaborate to complete the initiation and initialization of the target task instance, as well as the subsequent execution of the target task and the state changes of the target task instance. This achieves rapid allocation of target task instances to target tasks and continuous maintenance of target task instances. The instance data of the target task instance is determined and sent to the task end of the target task, quickly responding to the instance creation request and shortening the task execution waiting time at the task end. Attached Figure Description

[0042] Figure 1 This is a flowchart illustrating a data processing method provided in one embodiment of this specification;

[0043] Figure 2 This is a flowchart illustrating the processing procedure of a data processing method provided in one embodiment of this specification.

[0044] Figure 3 This is a schematic diagram of the structure of a data processing system provided in one embodiment of this specification;

[0045] Figure 4 This is a hierarchical architecture diagram of a data processing system provided in one embodiment of this specification;

[0046] Figure 5 This is a schematic diagram of the structure of a data processing device provided in one embodiment of this specification;

[0047] Figure 6 This is a structural block diagram of a computing device provided in one embodiment of this specification. Detailed Implementation

[0048] Many specific details are set forth in the following description to provide a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.

[0049] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of this specification. The singular forms “a,” “described,” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0050] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this specification, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."

[0051] Furthermore, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties. Moreover, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0052] First, the terms and concepts used in one or more embodiments of this specification will be explained.

[0053] Proxy (Stateless Access Gateway): Responsible for request routing and protocol conversion. It implements transparent conversion of user requests (HTTP) to the internal Actor model (Ray RPC), and is also responsible for dynamically registering / unregistering routing rules from Apisix.

[0054] SandboxKeeper: A dedicated manager for each Sandbox instance, implementing a 1:1 lifecycle binding. It loads different runtime implementations using the Strategy Pattern. It manages the Sandbox's Start, Stop, Pause, and Resume state transitions.

[0055] SandboxSupervisor: A lightweight daemon process running inside the sandbox isolation environment. It is responsible for executing specific shell commands and file I / O operations, and for sending standard output / error streams (Stdout / Stderr) back to Keeper in real time.

[0056] This specification provides a data processing method, and also relates to a data processing system, a data processing apparatus, a computing device, a computer-readable storage medium, and a computer program product, which will be described in detail in the following embodiments.

[0057] See Figure 1 , Figure 1 A flowchart of a data processing method according to an embodiment of this specification is shown, which specifically includes the following steps.

[0058] Step 102: In response to the instance creation request associated with the target task, determine the instance identifier and the task data of the target task.

[0059] Specifically, the target task can be a task that needs to be executed in an independent, isolated execution environment. The task types include, but are not limited to, proxy code execution, temporary file processing, just-in-time (JIT) compilation and execution, programming, data analysis, automated testing, and multi-tenant isolated tasks. The instance creation request is used to request the allocation of an independent, isolated execution environment for executing the target task. This isolated execution environment can be a sandbox environment. The instance identifier can be a sandbox identifier generated by the server based on the instance creation request, such as `sandbox_id`. The instance identifier is bound to the isolated execution environment corresponding to the target task. The metadata corresponding to the instance identifier includes, but is not limited to, tenant, task type, runtime type, execution node, connection address, creation time, expiration time, status version number, and last heartbeat time. The target task's task data refers to its task metadata, which includes, but is not limited to, the target task's security level, CPU quantity requirements, memory size requirements, GPU requirements, processor architecture, runtime type, image type, and network permissions.

[0060] Therefore, when there is a need to execute the target task on the task side, an instance creation request can be submitted to the server to request the creation of an independent, isolated execution environment for executing the target task. The server responds to the instance creation request associated with the target task by determining the instance identifier and the task data for the target task. Subsequent operations such as command execution, file operations, renewal of the isolated execution environment, and destruction can then be performed based on the instance identifier.

[0061] In practical applications, in Ray-based implementations, after the task client of the target task submits an instance creation request to the server, the server can invoke the resource management component to receive the instance creation request. The instance identifier can consist of the cluster name, tenant identifier, timestamp, and random sequence, used for subsequent operations such as command execution, file operations, renewal, querying, and destruction in the isolated execution environment. The instance creation request can be initiated by task clients such as AI programming agents, online code execution platforms, automated testing systems, data analysis agents, or other business services.

[0062] Furthermore, considering that the execution of the target task depends on an independent isolated execution environment, creating an isolated execution environment every time a task starts would lead to a longer task startup waiting time, making it difficult to meet the low waiting time requirements of real-time interactive scenarios. Therefore, based on at least one task type, an initial instance, i.e., an initial isolated execution environment, can be pre-constructed to achieve the pre-initialization of the isolated execution environment. The specific implementation is as follows:

[0063] Determine at least one task type and initialize the initial instance corresponding to each of the at least one task type.

[0064] Specifically, task types include, but are not limited to, data analysis tasks, front-end build tasks, automated testing tasks, and high-risk code execution tasks. The initial instance corresponding to a task type refers to the pre-initialized runtime environment and warm-up sandbox environment based on the task type.

[0065] Based on this, at least one task type is identified, and an initial instance corresponding to each task type is initialized. When the task type is a Python data analysis task, commonly used scientific computing libraries can be preloaded and a higher memory quota can be set; when the task type is a front-end build task, Node.js and package manager caches can be pre-configured; when the task type is an automated testing task, a testing framework and temporary directory can be pre-configured; when the task type is a high-risk code execution task, a mini-virtual machine can be used and external network access can be disabled by default.

[0066] For example, the creation, initialization, and destruction of sandboxes are lengthy processes, making it difficult to meet the low latency requirements of real-time interactive scenarios. When a large number of short-lived sandboxes are created and destroyed simultaneously, centralized control processes can easily lead to scheduling bottlenecks and state management pressure. To reduce the startup wait time for short-lived tasks, a pre-initialized runtime environment and a pre-warmed sandbox pool can be maintained. Pre-initialization refers to completing reusable preparatory actions such as image pulling, root file system preparation, basic dependency loading, working directory creation, network rule configuration, and proxy process monitoring before the task arrives. Pre-warming further maintains a set of sandbox instances or snapshots that can be quickly allocated, restored, or cloned based on pre-initialization. Therefore, pre-initialization focuses on the preparation process, while pre-warming focuses on maintaining a resource pool that can respond quickly. The initialization operations for each available sandbox can be the same, or they can be differentiated based on the task type. Python data analysis tasks can preload commonly used scientific computing libraries and set higher memory quotas; front-end build tasks can pre-configure Node.js and package manager caches; automated testing tasks can pre-configure test frameworks and temporary directories; high-risk code execution tasks can use micro-virtual machines and disable external network access by default. Different preheating pools can be maintained according to task templates. When a new request arrives, an available sandbox matching the template will be allocated first, shortening the task startup waiting time.

[0067] In summary, by initializing at least one initial instance corresponding to each task type, maintaining a pre-initialized runtime environment and a preheating sandbox pool, the startup waiting time of tasks is shortened, thus meeting the requirements of real-time interactive scenarios for low waiting time.

[0068] Step 104: Invoke the resource management component, determine the task management component based on the task data, and associate the task management component with the instance identifier and execution node.

[0069] Specifically, after determining the instance identifier and task data of the target task in response to the instance creation request associated with the target task, the resource management component can be invoked. The task management component is determined based on the task data and associated with the instance identifier and execution node. The resource management component is a metadata management component included in the server-side distributed execution unit, used to receive instance creation requests, select execution nodes, generate and manage instance identifiers, maintain the lifecycle state of the sandbox environment created by the server, and record routing relationships. The task management component can be a sandbox execution management component included in the server-side distributed execution unit, used to complete sandbox startup, runtime connection, command execution, and resource reclamation. The server-side sandbox execution management component is distributed across various compute nodes on the server. The instance creation request enters the server through the client SDK or gateway component, carrying the tenant identifier, task type, security level, resource specifications, timeout, and optional runtime preferences. After receiving the instance creation request, the resource management component can first perform authentication and parameter verification, and then generate an instance identifier, which is a globally unique identifier.

[0070] Based on this, after determining the instance identifier and task data of the target task in response to the instance creation request associated with the target task, the resource management component is invoked. The task management component is then determined based on the task data, and an execution node is selected. The task management component is associated with the instance identifier and the execution node. When selecting an execution node, Raylets on each compute node can perform distributed scheduling based on the cluster resource status, selecting an execution node that meets the resource quantity requirements, runtime capability requirements, and node label requirements of the target task based on the task data.

[0071] Furthermore, considering that the server may or may not have a task management component that meets the execution requirements of the target task, after determining the task data of the target task, the available task management components can be checked first. The specific implementation is as follows:

[0072] The resource management component is invoked, and if at least one candidate task management component is determined, the task management component is determined from the at least one candidate task management component based on the task data; if no candidate management component is determined, the task management component corresponding to the task data is created.

[0073] Based on this, the resource management component is invoked. If at least one candidate task management component exists, it indicates that the server has an idle task management component or a pre-created task management component. A candidate task management component matching the task data is selected from the at least one candidate component and designated as the task management component. The at least one candidate task management component can be an existing idle task management component on the server or a pre-created task management component. After selecting a candidate task management component matching the task data, the compute node corresponding to that component is the execution node to be associated. If no candidate task management component exists, the resource management component is invoked again. If no candidate task management component exists, it indicates that there is currently no reusable task management component that meets the conditions, and a task management component needs to be created based on the task data.

[0074] Continuing with the previous example, after receiving an instance creation request, the scheduling and metadata management component selects an execution node based on the task metadata and creates or binds the corresponding Sandbox execution management component (SandboxKeeper). If an idle or pre-created SandboxKeeper already exists, or if the requester wishes to continue accessing an existing sandbox, the request is associated with an existing SandboxKeeper. If a SandboxKeeper in the preheating pool is already running but has not yet been assigned a task, the scheduling and metadata management component can bind the sandbox_id, tenant information, and task information to that SandboxKeeper, thus saving the time of recreating the Actor and initializing the runtime environment. During binding, the scheduling and metadata management component records the correspondence between the sandbox_id, SandboxKeeper Actor name, execution node, runtime instance, and routing address, and prevents the same idle SandboxKeeper from being repeatedly assigned through status version numbers, leases, or atomic update mechanisms. If no reusable SandboxKeeper meets the requirements, the scheduling and metadata management component creates a new SandboxKeeper Actor (task management component) via Ray and establishes a mapping between it and the sandbox_id. This method is suitable for situations where a sandbox is being created for the first time, there are no matching warm-up resources, or the runtime type, resource specifications, or security level of an existing SandboxKeeper do not meet the task requirements.

[0075] In summary, given the existence of at least one candidate task management component, the task management component is determined from among the candidate components based on the task data, thereby enabling the reuse of existing task management components and saving time spent on creating and initializing the runtime environment of the task management component.

[0076] Furthermore, considering that the server contains distributed computing nodes, one computing node can be selected as the execution node from among multiple computing nodes based on the task data. The specific implementation is as follows:

[0077] Based on the task data, at least one execution capability dimension is determined, and the nodes in the node cluster are tested based on the at least one execution capability dimension; based on the test results, the execution node is determined, and the task management component is associated with the execution node and the instance identifier.

[0078] Specifically, execution capability dimensions can refer to the runtime type and computing resources required by the isolated execution environment of the target task. This includes, but is not limited to, the target task's security level, CPU quantity requirements, memory size requirements, GPU requirements, processor architecture, runtime type, image type, and network permissions. A node cluster refers to the cluster of computing nodes maintained by the server. Capability testing of nodes in the node cluster can involve testing their capabilities in dimensions such as CPU, memory, available sandbox slots, and KVM capabilities. The execution nodes must meet the target task's execution requirements in all dimensions, including CPU, memory, available sandbox slots, and KVM capabilities.

[0079] Based on this, at least one execution capability dimension is determined according to the task data, including security level, CPU quantity requirements, memory size requirements, GPU requirements, processor architecture, runtime type, image type, and network permissions. The capabilities of nodes in the node cluster are then tested based on this dimension. Execution nodes are identified based on the test results, ensuring that their capabilities in CPU, memory, available sandbox slots, and KVM capabilities meet the execution conditions of the target task. The task management component is then associated with these execution nodes and with an instance identifier. Execution nodes are the actual computing nodes in the Ray cluster that host the task management component, the sandbox isolation environment, and the internal agent processes within the sandbox; they can also be called Ray worker nodes. User code, automated testing, just-in-time compilation, and file processing tasks are ultimately executed in the isolated environment on these nodes.

[0080] Following the previous example, in the Ray-based implementation, after receiving a sandbox creation request, the scheduling and metadata management component first determines the required runtime type and computing resources for the sandbox based on the task metadata. Task metadata may include security level, number of CPUs, memory size, GPU requirements, processor architecture, runtime type, image type, and network permissions. The scheduling and metadata management component creates or binds the corresponding SandboxKeeper Actor and declares resource requirements and scheduling conditions to Ray when creating the Actor. It can be declared that the Actor requires 2 CPUs, 4GB of memory, and a custom `sandbox_slot` resource; for tasks requiring micro-virtual machine isolation, it can also be declared that the target node must have the `firecracker` or `kvm` tag; for GPU tasks, the corresponding GPU resources can be declared. After receiving the Actor creation request, Ray performs distributed scheduling on each compute node based on the cluster resource status. Ray first filters compute nodes that meet the requirements for resource quantity, runtime capabilities, and node tags, and then, considering the node's current remaining resources and load, places the SandboxKeeper Actor on the qualified compute nodes (execution nodes). For a target task requiring 2 CPUs, 4GB of memory, and high-security isolation, the scheduling and metadata management component can create a SandboxKeeper Actor with resource requirements of `CPU=2, memory=4GB, sandbox_slot=1, KVM=1`. Ray will schedule this Actor to a compute node that has sufficient CPU, memory, available sandbox slots, and KVM capabilities. If no suitable node is currently available, the Actor remains in a pending scheduling state, waiting for resources to be released or for Ray Autoscaler to trigger the addition of a compute node.

[0081] In summary, based on the test results, execution nodes were identified whose capabilities, including CPU, memory, available sandbox slots, and KVM capabilities, all met the execution conditions for the target task. The task management component was then associated with both the execution node and the instance identifier. This ensures that the execution node meets the execution requirements of the target task.

[0082] Step 106: Start the target task instance matched by the target task through the task management component, determine the instance data of the target task instance, and send the instance data to the task end of the target task.

[0083] Specifically, after calling the resource management component, determining the task management component based on the task data, and associating the task management component with the instance identifier and execution node, the target task instance matching the target task can be started through the task management component. The instance data of the target task instance is then determined and sent to the task client of the target task. The target task instance is the independent, isolated execution environment upon which the target task's execution depends—that is, the sandbox environment. The instance data of the target task instance includes, but is not limited to, the target task instance's routing address, runtime type, expiration time, and state version. The routing address is the access address. The task client of the target task is the request initiator of the target task.

[0084] Based on this, after calling the resource management component, determining the task management component based on the task data, and associating the task management component with the instance identifier and execution node, the target task instance matching the target task is started through the task management component. The status of the target task instance is updated to available, and instance data such as the target task instance's routing address, runtime type, expiration time, and status version are determined and sent to the target task's client. Subsequently, the client can execute the target task based on the target task instance.

[0085] Furthermore, after identifying the target task instance, it can be launched through the task management component, as detailed below:

[0086] The task management component is invoked to determine the instance type based on the task requirements information of the target task, and to identify the target task instance matching the instance type from the instance set. The target task instance is then selected from the instance set based on the security level and performance requirements of the target task. Finally, the target task instance is launched by invoking a unified adaptation interface through the task management component.

[0087] Specifically, the task requirements for the target task refer to the isolation environment type requirements, and the instance type is the isolation environment type, i.e., the sandbox environment type. The instance type can be selected based on a rule that prioritizes security level, supplemented by performance requirements and resource status. The adaptation interface is a pre-defined, unified runtime adaptation interface.

[0088] Based on this, the task management component is invoked to determine the instance type according to the target task's task requirements. A target task instance matching this type is then selected from the instance set. The selection of the target task instance can prioritize security level, with performance requirements and resource status as secondary considerations. The target task instance is then started by invoking the adaptation interface through the task management component. If no target task instance matching the instance type exists in the instance set, the task management component is invoked to create and start a new target task instance through the corresponding runtime adaptation interface. For target tasks with high trustworthiness and sensitivity to startup speed, lightweight process isolation or container isolation can be selected; for semi-trusted target tasks, a container environment with namespaces, control groups, and network whitelists can be selected; for target tasks executing untrusted code or with high security requirements, a hardware virtualization-based micro-virtual machine environment can be selected. The above levels and runtime types can be expanded according to business scenarios and are not limited to a single metric or a fixed number of levels.

[0089] Continuing with the previous example, the sandbox execution management component calls the unified runtime adaptation interface to start a process isolation, container isolation, or micro virtual machine isolation environment. This isolated environment is the target task instance, i.e., the sandbox environment corresponding to the target task. After the isolated environment starts, working directories, network rules, resource quotas, and security policies can be configured. The working directory can be set to ` / workspace / {tenant_id} / {sandbox_id}`, allowing user code and temporary files to read and write; the root file system can be set to read-only, only allowing write permissions to directories such as ` / workspace` and ` / tmp`. Different tenants and different sandboxes use mutually isolated directories or storage volumes, and corresponding temporary data is cleaned up when the sandbox is destroyed. Network rules can adopt a default blocking or on-demand allowing approach. For example, only access to specified domain names, IP addresses, and ports can be allowed; access to the host network, other tenant networks, cloud platform metadata addresses, and unauthorized internal network addresses can be blocked; inbound traffic can only allow the Proxy or SandboxKeeper to access the service ports of the sandbox's internal proxy processes. Communication between the Orchestrator, SandboxKeeper, and the sandbox's internal agent processes can also utilize two-way TLS authentication. Resource quotas can include 2 CPU cores, 4GB of memory, 10GB of disk space, 256 processes, a 60-second single execution time, and preset network bandwidth. Quotas for CPU, memory, and processes can be implemented through the Cgroups mechanism and dynamically adjusted based on task type. Security policies can include PID, Network, and MountNamespace isolation; removal of unnecessary Linux Capabilities; prohibition of privileged modes and host directory mounting; configuration of Seccomp system call filtering rules; running code as a non-root user; and setting a read-only root filesystem. For high-risk or untrusted code, hardware virtualization isolation can be provided using a KVM-based Firecracker microvirtual machine. After the execution node starts, the sandbox execution management component creates corresponding containers, isolated processes, or microvirtual machines through a unified runtime interface, and the target task is ultimately executed within the sandbox of that compute node.

[0090] In summary, the target task instance matching the instance type is determined from the instance set; the target task instance is started by calling the adaptation interface through the task management component. The target task instance meets the security level and performance requirements of the target task, ensuring that the target task instance is highly matched with the execution requirements of the target task.

[0091] Furthermore, after launching the target task instance through the task management component, the target task instance is continuously maintained, specifically implemented as follows:

[0092] If the target task instance meets the update requirements, the resource management component sends an instance update command to the task management component; the task management component is invoked to update the target task instance in response to the instance update command.

[0093] Specifically, the target task instance, acting as a sandbox environment, can be in one of the following states: Pending, Creating, Initializing, Idle, Running, Paused, Reclaiming, Failed, and Dead. Pending indicates that the request has been received but scheduling has not yet been completed; Creating indicates that the execution management component is creating the isolated environment; Initializing indicates that basic or task-related initialization is underway; Idle indicates that the sandbox is ready but commands have not yet been executed; Running indicates that commands or file operations are being executed; Paused indicates that the warm-up instance has been paused to reduce resource consumption; Reclaiming indicates that resources are being reclaimed; Failed indicates that an unrecoverable exception occurred during creation, initialization, or execution; and Dead indicates that the sandbox lifecycle has ended.

[0094] Based on this, if the target task instance meets the update requirements, it indicates that the target task instance needs to undergo a state change. An instance update command is sent to the task management component through the resource management component. The task management component is then invoked, responding to the instance update command to update the target task instance, thus achieving lifecycle maintenance and on-demand reclamation of the target task instance.

[0095] Continuing with the previous example, instance identification and lifecycle are jointly maintained by the scheduling and metadata management component and the execution management component. The metadata corresponding to `sandbox_id` may include tenant, task type, runtime type, execution node, connection address, creation time, expiration time, status version number, and most recent heartbeat time. Clients update the expiration time via `set_timeout` or the renewal interface. When a user actively destroys the instance, idle time exceeds a threshold, the session does not need to be retained after the task is completed, or resources are scarce, the scheduling component issues a recycling command to the execution management component. The execution management component then terminates internal processes, cleans up temporary directories, releases network and resource quotas, and updates the status to Dead. The state, runtime connections, task execution results, and resource recycling of the sandbox environment are maintained by the execution management component and synchronized with the scheduling and metadata management component. Specifically, the execution management component maintains the local state machine and heartbeat; saves the connection address, connection handle, and health check time of the sandbox's internal agent processes; caches the results of the most recent command execution, and writes large files or large outputs to object storage or shared storage before returning a reference; and during the recycling phase, it is responsible for terminating processes, cleaning up temporary files, unregistering routes, and releasing control groups and network resources. The above approach supports both short, one-off tasks and AI agents executing multiple commands consecutively within the same session while preserving temporary context.

[0096] In summary, by invoking the task management component and responding to the instance update command, the target task instance is updated, thereby achieving the maintenance of the target task instance.

[0097] Furthermore, to mitigate risks across multiple dimensions such as process, resource, and routing, a health check can be performed on the target task instance before it starts. At least one check item can be set and checked sequentially. The specific implementation is as follows:

[0098] Determine at least one instance detection item associated with the target task instance; perform instance detection on the target task instance based on the at least one instance detection item.

[0099] Based on this, before starting the target task instance, at least one instance detection item associated with the target task instance is determined; the target task instance is then subjected to instance detection based on this at least one instance detection item. The at least one instance detection item includes at least one of the following: control plane service status, execution environment liveness status, agent process online status, identity and metadata consistency, storage mounting and access permissions, and resource quota effectiveness status. After starting the target task instance, at least one instance startup post-detection item associated with the target task instance is determined; the target task instance is then subjected to instance detection based on this at least one instance startup post-detection item. The at least one instance startup post-detection item includes at least one of the following: control link handshake status, security policy loading status, and data plane routing connectivity status.

[0100] Following the previous example, before starting the target task instance, health checks can include one or more of the following: control plane service status, execution environment liveness status, agent process online status, control link handshake status, identity and metadata consistency, storage mount and access permissions, resource quota effective status, security policy loading status, and data plane routing connectivity status. Specifically, the control plane service status checks whether the SandboxKeeper Actor has started successfully and registered with the scheduling and metadata management components and reported heartbeats. The execution environment liveness status checks whether the container, isolated process, or micro-virtual machine is running normally. The agent process online status checks whether the SandboxSupervisor agent process inside the sandbox has started. Identity and metadata consistency checks whether the sandbox_id, runtime type, and execution node are consistent with the scheduling metadata. Storage mount and access permissions check whether the working directory has been successfully mounted and has the predefined read and write permissions. Resource quota effective status checks whether resource quotas such as CPU, memory, number of processes, and disk have taken effect. Optionally, a test command can be executed to verify that standard output, error output, and exit codes can be returned normally. After all necessary checks pass, the scheduling and metadata management component updates the sandbox status from Creating or Initializing to Idle or Available. If a check fails, the sandbox is marked as Failed, and reinitialization, rescheduling, or resource cleanup is performed according to a preset policy. After starting the target task instance, at least one instance associated with the target task instance performs one or more of the following checks: Control link handshake status (checks whether RPC, HTTP, or local socket handshake can be completed between SandboxKeeper and SandboxSupervisor); Security policy loading status (checks whether network isolation, access whitelists, port rules, and security policies have been loaded); Data plane routing connectivity status (checks whether the access route from the Proxy to SandboxSupervisor is connected).

[0101] In summary, before starting the target task instance, instance detection is performed on the target task instance based on at least one instance detection item, which reduces the risk in multiple dimensions such as process dimension, resource dimension and routing dimension, and reduces the probability of runtime failure.

[0102] Furthermore, after sending the instance data to the target task's endpoint, the endpoint can send code execution, automated testing, command execution, and file read / write requests via the client SDK, API gateway, or proxy to execute the target task. The specific implementation is as follows:

[0103] The system receives a task execution request submitted by the task client for the target task and sends the task execution request to the task execution process in the execution node; it then invokes the task execution process to execute the target task in the target task instance.

[0104] Based on this, the system receives task execution requests submitted by the task client for the target task. These requests can include requirements such as code execution, automated testing, command execution, and file I / O. The system then sends the task execution request to the task execution process within the execution node. Finally, the system invokes the task execution process to perform code execution, automated testing, command execution, and file I / O within the target task instance, thus executing the target task.

[0105] Continuing with the previous example, the compute node is the Ray worker node that hosts the sandbox, and the lightweight proxy process (task execution process) is the daemon process such as SandboxSupervisor running inside the sandbox isolation environment of that compute node. After the sandbox environment is successfully created, the scheduling and metadata management components return the sandbox_id and access address to the requester. The requester can then send code execution, automated testing, command execution, and file read / write requests through the client SDK, API gateway, or Proxy. The requests are routed to the corresponding SandboxSupervisor inside the sandbox. SandboxSupervisor starts the corresponding child process to execute the task within the isolation environment, collects standard output, error output, exit codes, and resource usage, and returns the execution result to the requester. SandboxKeeper is mainly responsible for maintaining the sandbox lifecycle, runtime connections, heartbeat status, and resource reclamation. In one implementation, the Proxy can communicate directly with SandboxSupervisor; in another implementation, the request can be sent to SandboxKeeper first, and then SandboxKeeper forwards it to SandboxSupervisor for execution.

[0106] In summary, by invoking the task execution process, code execution, automated testing, command execution, and file reading and writing are performed within the target task instance, thereby achieving the execution of the target task and improving its security and efficiency.

[0107] This specification provides a data processing method according to one embodiment, which determines an instance identifier and task data of the target task in response to an instance creation request associated with a target task. A resource management component is invoked, and a task management component is determined based on the task data. This task management component is then associated with the instance identifier and execution node. The task management component initiates a target task instance matching the target task, enabling the selection of an execution node based on the target task's task data and the initiation of a target task instance matching the target task. The task management component and resource management component collaborate to complete the initiation and initialization of the target task instance, as well as the subsequent execution of the target task and the state changes of the target task instance. This achieves rapid allocation of target task instances to target tasks and continuous maintenance of target task instances. The instance data of the target task instance is determined and sent to the task end of the target task, quickly responding to the instance creation request and shortening the task execution waiting time at the task end.

[0108] The following is in conjunction with the appendix Figure 2 Taking the application of the data processing method provided in this specification in the management of a distributed sandbox environment as an example, the data processing method will be further explained. Figure 2 A flowchart illustrating the processing procedure of a data processing method according to an embodiment of this specification is shown, specifically including the following steps.

[0109] Step 202: In response to the instance creation request associated with the target task, determine the instance identifier and the task data of the target task.

[0110] In practical applications, the target task can be a task that needs to be executed in a separate, isolated execution environment. The types of target tasks include, but are not limited to, proxy code execution, temporary file processing, just-in-time (JIT) compilation and execution, programming, data analysis, automated testing, and multi-tenant isolation tasks. The instance creation request is used to request the allocation of a separate, isolated execution environment for executing the target task. This isolated execution environment can be a sandbox environment. The instance identifier can be a sandbox identifier generated by the server based on the instance creation request, such as `sandbox_id`.

[0111] Step 204: Invoke the resource management component. If it is determined that there is at least one candidate task management component, determine the task management component from at least one candidate task management component based on the task data.

[0112] Step 206: Invoke the resource management component. If no candidate management component is found, create the task management component corresponding to the task data.

[0113] In practical applications, the resource management component is a scheduling and metadata management component used to receive instance creation requests, select execution nodes, generate and manage instance identifiers, maintain the lifecycle state of the sandbox environment, and record routing relationships. The task management component can be a sandbox execution management component included in the server-side distributed execution unit, used to complete sandbox startup, runtime connection, command execution, and resource reclamation. The server-side sandbox execution management component is distributed across the server's compute nodes.

[0114] Upon receiving an instance creation request, the scheduling and metadata management component selects an execution node based on the task metadata and creates or binds the corresponding Sandbox execution management component (SandboxKeeper). If an idle or pre-created SandboxKeeper already exists, or if the requester wishes to continue accessing an existing sandbox, the request is associated with an existing SandboxKeeper. If a SandboxKeeper in the preheating pool is already running but has not yet been assigned a task, the scheduling and metadata management component can bind the sandbox_id, tenant information, and task information to that SandboxKeeper, thus saving time from recreating the Actor and initializing the runtime environment. During binding, the scheduling and metadata management component records the correspondence between the sandbox_id, SandboxKeeper Actor name, execution node, runtime instance, and routing address, and prevents the same idle SandboxKeeper from being repeatedly assigned through status version numbers, leases, or atomic update mechanisms. If no reusable SandboxKeeper meets the requirements, the scheduling and metadata management component creates a new SandboxKeeper Actor (task management component) via Ray and establishes a mapping between it and the sandbox_id. This method is suitable for situations where a sandbox is being created for the first time, there are no matching warm-up resources, or the runtime type, resource specifications, or security level of an existing SandboxKeeper do not meet the task requirements.

[0115] Step 208: Determine at least one execution capability dimension based on the task data, and perform capability detection on the nodes in the node cluster based on at least one execution capability dimension.

[0116] In practical applications, execution capability can refer to the type of runtime environment and computing resources required for the isolated execution environment of the target task. This includes, but is not limited to, the target task's security level, CPU quantity requirements, memory size requirements, GPU requirements, processor architecture, runtime type, image type, and network permissions. A node cluster refers to a cluster of computing nodes maintained by the server. Capability testing of nodes in a node cluster can involve testing their capabilities in dimensions such as CPU, memory, available sandbox slots, and KVM capabilities. The execution node must meet the target task's execution requirements in all dimensions, including CPU, memory, available sandbox slots, and KVM capabilities.

[0117] Step 210: Determine the execution node based on the detection results, and associate the task management component with the execution node and the instance identifier.

[0118] In practice, for a target task requiring 2 CPUs, 4GB of memory, and high-security isolation, the scheduling and metadata management component can create a SandboxKeeper Actor with resource requirements of `CPU=2, memory=4GB, sandbox_slot=1, KVM=1`. Ray will schedule this Actor to a compute node that has sufficient CPU, memory, available sandbox slots, and KVM capabilities. If no suitable node is currently available, the Actor remains in a pending scheduling state, waiting for resources to be released or for Ray Autoscaler to trigger the addition of a compute node.

[0119] Step 212: Invoke the task management component, determine the instance type based on the task requirements information of the target task, and identify the target task instance that matches the instance type in the instance set.

[0120] In practical applications, the task management component is invoked to determine the instance type based on the target task's requirements. A target task instance matching this type is then selected from the instance set. The selection of the target task instance can prioritize security level, with performance requirements and resource status as secondary considerations. The target task instance is then launched by invoking the adaptation interface through the task management component. For target tasks with high trustworthiness and sensitivity to startup speed, lightweight process isolation or container isolation can be selected. For semi-trusted target tasks, a container environment with enabled namespaces, control groups, and network whitelists can be chosen. For target tasks executing untrusted code or with high security requirements, a hardware virtualization-based micro-virtual machine environment can be selected. The above levels and runtime types can be expanded according to business scenarios and are not limited to a single metric or a fixed number of levels.

[0121] Step 214: Determine at least one instance detection item associated with the target task instance. Perform instance detection on the target task instance based on at least one instance detection item.

[0122] At least one instance detection item includes at least one of the following: control plane service status, execution environment liveness status, agent process online status, control link handshake status, identity and metadata consistency, storage mounting and access permissions, resource quota effective status, security policy loading status, and data plane routing connectivity status, used to perform health checks on the target task instance.

[0123] Step 216: If the target task instance passes the test based on the test results, start the target task instance by calling the adaptation interface through the task management component.

[0124] Step 218: Determine the instance data of the target task instance and send the instance data to the task terminal of the target task.

[0125] The instance data of the target task instance includes, but is not limited to, the route address, runtime type, expiration time, and state version of the target task instance. The route address is the access address. The task client of the target task is the request initiator of the target task.

[0126] Step 220: Receive the task execution request submitted by the task client for the target task, and send the task execution request to the task execution process in the execution node.

[0127] Step 222: Invoke the task execution process to execute the target task in the target task instance.

[0128] The compute node is the Ray worker node that hosts the sandbox. The lightweight proxy process (task execution process) is a daemon process such as SandboxSupervisor running within the sandbox isolation environment of that compute node. After the sandbox environment is successfully created, the scheduling and metadata management components return the sandbox_id and access address to the requester. The requester can then send code execution, automated testing, command execution, and file read / write requests through the client SDK, API gateway, or proxy. The requests are routed to the corresponding SandboxSupervisor within the sandbox. SandboxSupervisor starts the corresponding child process within the isolation environment to execute the task, collect standard output, error output, exit codes, and resource usage, and returns the execution result to the requester.

[0129] The data processing method provided in one embodiment of this specification integrates the sandbox creation, initialization, command execution, file operations, renewal, querying, and destruction processes into a distributed lifecycle management system. This enables a large number of short-lifecycle tasks to be processed in parallel by different computing nodes, reducing the impact of centralized control links on response speed and concurrency capabilities. Each sandbox is configured with a corresponding management entity to continuously maintain its state, runtime connections, task execution results, heartbeat information, and resource reclamation process. This is suitable for scenarios where AI agents need to retain temporary context during continuous interaction. Through a unified runtime interface, different execution methods such as process isolation, lightweight containers, enhanced containers, and micro-virtual machines are connected to the same management system. The appropriate isolation method is dynamically selected based on task trust level, security requirements, performance requirements, and resource status, thereby expanding the system's applicability. By maintaining initialized or partially initialized sandbox resources, available execution environments are quickly allocated when tasks arrive; and resources are automatically reclaimed upon task completion, idle timeout, user-initiated destruction, or resource scarcity, thereby reducing the cost of repeated creation and improving resource utilization efficiency. The data processing methods can be applied to AI programming agents, online code execution platforms, automated testing platforms, data analysis agents, multi-tenant task execution platforms, educational programming environments, enterprise internal automated operation and maintenance platforms, and other cloud computing service architectures that require rapid creation, reuse, and reclamation of isolated execution spaces.

[0130] Corresponding to the above method embodiments, this specification also provides data processing system embodiments. Figure 3 A schematic diagram of the structure of a data processing system according to one embodiment of this specification is shown. Figure 3 As shown, the data processing system 300 includes a task terminal 310 and a server terminal 320. The task terminal 310 is used to send an instance creation request associated with a target task to the server terminal 320. The server terminal 320 is used to respond to the instance creation request by determining an instance identifier and task data of the target task; calling a resource management component, determining the task management component based on the task data, and associating the task management component with the instance identifier and execution node; starting a target task instance matching the target task through the task management component, determining the instance data of the target task instance, and sending the instance data to the task terminal 310 of the target task.

[0131] This specification provides a data processing system in one embodiment that, in response to an instance creation request associated with a target task, determines an instance identifier and the target task's task data. It invokes a resource management component, determines a task management component based on the task data, and associates the task management component with the instance identifier and execution node. The task management component then starts a target task instance matching the target task, enabling the selection of an execution node based on the target task's task data and the initiation of a target task instance matching the target task. The task management component and resource management component collaborate to complete the initiation and initialization of the target task instance, as well as the subsequent execution of the target task and the state changes of the target task instance, achieving rapid allocation of target task instances and continuous maintenance of target task instances. The system determines the instance data of the target task instance and sends it to the target task's endpoint, quickly responding to the instance creation request and shortening the task execution waiting time at the endpoint.

[0132] like Figure 4 As shown, the data processing system includes a user access layer, an external gateway, an internal access layer, a control plane layer, compute nodes, and underlying support. The user access layer submits HTTP requests to the external gateway. The external mesh forwards routes to the internal access layer, and the internal access layer provides dynamically registered routing rules to the external mesh. The internal access layer requests the control plane layer to create a sandbox and perform heartbeat registration. The compute nodes provide isolated environments and corresponding sandbox managers. The underlying support provides metadata storage services to ensure distributed consistency and enable elastic scaling of the cluster.

[0133] In practical applications, the server-side of the data processing system serves as a distributed sandbox management terminal. The distributed sandbox management terminal treats each sandbox as an independently manageable, isolated execution instance, and uses distributed execution units to handle sandbox creation, initialization, operation, state maintenance, command execution, file processing, renewal, and destruction. The system employs a unified scheduling and metadata management component to receive sandbox creation requests, select execution nodes, generate and manage sandbox identifiers, maintain lifecycle states, and record routing relationships. The actual sandbox startup, runtime connection, command execution, and resource reclamation are handled by execution management components distributed across various computing nodes. In one implementation, sandbox creation requests can be initiated by AI programming agents, online code execution platforms, automated testing systems, data analysis agents, or other business services. Requests typically enter the system through a client SDK or gateway component, carrying tenant identifiers, task type, security level, resource specifications, timeout, and optional runtime preferences. After receiving the request, the scheduling and metadata management component first performs authentication and parameter verification, then generates a globally unique sandbox_id, records the sandbox status as Pending, and selects the target execution node or reusable sandbox instance based on node resources, preheating pool level, task type, and security level.

[0134] Corresponding to the above method embodiments, this specification also provides data processing apparatus embodiments. Figure 5 A schematic diagram of the structure of a data processing apparatus according to one embodiment of this specification is shown. Figure 5 As shown, the device includes:

[0135] The determination module 502 is configured to determine an instance identifier and task data of the target task in response to an instance creation request associated with the target task;

[0136] The association module 504 is configured to invoke the resource management component, determine the task management component based on the task data, and associate the task management component with the instance identifier and execution node;

[0137] The sending module 506 is configured to initiate a target task instance matching the target task through the task management component, determine the instance data of the target task instance, and send the instance data to the task end of the target task.

[0138] In an optional embodiment, the step of invoking the resource management component, and determining the task management component based on the task data, includes:

[0139] Invoke the resource management component, and if it is determined that there is at least one candidate task management component, determine the task management component from the at least one candidate task management component based on the task data;

[0140] Invoke the resource management component, and if it is determined that no candidate management component exists, create the task management component corresponding to the task data.

[0141] In an optional embodiment, associating the task management component with the instance identifier and execution node includes:

[0142] Based on the task data, at least one execution capability dimension is determined, and the capability of nodes in the node cluster is detected based on the at least one execution capability dimension.

[0143] The execution node is determined based on the detection results, and the task management component is associated with the execution node and the instance identifier.

[0144] In an optional embodiment, launching the target task instance matching the target task through the task management component includes:

[0145] The task management component is invoked to determine the instance type based on the task requirement information of the target task, and to determine the target task instance that matches the instance type in the instance set;

[0146] The target task instance is started by calling the adaptation interface through the task management component.

[0147] In an optional embodiment, after launching the target task instance matching the target task through the task management component, the method further includes:

[0148] If the target task instance meets the update requirements, the resource management component sends an instance update command to the task management component.

[0149] The task management component is invoked to update the target task instance in response to the instance update instruction.

[0150] In an optional embodiment, before launching the target task instance matched by the target task through the task management component, the method further includes:

[0151] Identify at least one instance detection item associated with the target task instance;

[0152] Instance detection is performed on the target task instance based on the at least one instance detection item.

[0153] In an optional embodiment, after sending the instance data to the task terminal of the target task, the method further includes:

[0154] Receive the task execution request submitted by the task terminal for the target task, and send the task execution request to the task execution process in the execution node;

[0155] The task execution process is invoked to execute the target task within the target task instance.

[0156] In an optional embodiment, before determining the instance identifier and the task data of the target task in response to the instance creation request associated with the target task, the method further includes:

[0157] Determine at least one task type and initialize the initial instance corresponding to each of the at least one task type.

[0158] This specification provides a data processing apparatus in one embodiment that, in response to an instance creation request associated with a target task, determines an instance identifier and the task data of the target task. It invokes a resource management component, determines a task management component based on the task data, and associates the task management component with the instance identifier and execution node. The task management component initiates a target task instance matching the target task, thereby selecting an execution node based on the target task's task data and initiating a target task instance matching the target task. The task management component and the resource management component collaborate to complete the initiation and initialization of the target task instance, as well as the subsequent execution of the target task and the state changes of the target task instance, enabling rapid allocation of target task instances to target tasks and continuous maintenance of target task instances. The instance data of the target task instance is determined and sent to the task terminal of the target task, quickly responding to the instance creation request and shortening the task execution waiting time at the task terminal.

[0159] The above is an illustrative scheme of a data processing apparatus according to this embodiment. It should be noted that the technical solution of this data processing apparatus and the technical solution of the data processing method described above belong to the same concept. For details not described in detail in the technical solution of the data processing apparatus, please refer to the description of the technical solution of the data processing method described above.

[0160] Figure 6 A structural block diagram of a computing device 600 according to one embodiment of this specification is shown. The components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is connected to the memory 610 via a bus 630, and a database 650 is used to store data.

[0161] The computing device 600 also includes an access device 640, which enables the computing device 600 to communicate via one or more networks 660. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. The access device 640 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Wi-MAX (Worldwide Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, or a Near Field Communication (NFC) interface.

[0162] In one embodiment of this specification, the above-described components of the computing device 600 and Figure 6 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 6 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0163] The computing device 600 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or personal computers (PCs). The computing device 600 can also be a mobile or stationary server.

[0164] The processor 620 is configured to execute the following computer-executable instructions, which, when executed by the processor, implement the steps of the above-described data processing method.

[0165] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the data processing method described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the data processing method described above.

[0166] An embodiment of this specification also provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the above-described data processing method.

[0167] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the data processing method described above belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the data processing method described above.

[0168] An embodiment of this specification also provides a computer program product, including a computer program or instructions that, when executed by a processor, implement the steps of the above-described data processing method.

[0169] The above is an illustrative scheme of a computer program product according to this embodiment. It should be noted that the technical solution of this computer program product and the technical solution of the data processing method described above belong to the same concept. For details not described in detail in the technical solution of the computer program product, please refer to the description of the technical solution of the data processing method described above.

[0170] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0171] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or certain intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added or removed according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.

[0172] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments in this specification are not limited to the described order of actions, because according to the embodiments in this specification, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments in this specification.

[0173] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0174] The preferred embodiments disclosed above are merely illustrative of this specification. Optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the embodiments described in this specification. These embodiments are selected and specifically described in this specification to better explain the principles and practical applications of the embodiments, thereby enabling those skilled in the art to better understand and utilize this specification.

Claims

1. A data processing method, characterized by, include: In response to an instance creation request associated with a target task, determine the instance identifier and the task data of the target task; Invoke the resource management component, determine the task management component based on the task data, and associate the task management component with the instance identifier and execution node; The target task instance matching the target task is launched through the task management component, and the instance data of the target task instance is determined and sent to the task end of the target task.

2. The data processing method according to claim 1, characterized in that, The process of invoking the resource management component, which determines the task management component based on the task data, includes: Invoke the resource management component, and if it is determined that there is at least one candidate task management component, determine the task management component from the at least one candidate task management component based on the task data; Invoke the resource management component, and if it is determined that no candidate management component exists, create the task management component corresponding to the task data.

3. The data processing method of claim 1, wherein, Associating the task management component with the instance identifier and execution node includes: Based on the task data, at least one execution capability dimension is determined, and the capability of nodes in the node cluster is detected based on the at least one execution capability dimension. The execution node is determined based on the detection results, and the task management component is associated with the execution node and the instance identifier.

4. The data processing method of claim 1, wherein, The step of launching the target task instance matching the target task through the task management component includes: The task management component is invoked to determine the instance type based on the task requirement information of the target task, and to determine the target task instance that matches the instance type in the instance set; The target task instance is started by calling the adaptation interface through the task management component.

5. The data processing method of claim 1, wherein, After launching the target task instance matched by the target task through the task management component, the process further includes: If the target task instance meets the update requirements, the resource management component sends an instance update command to the task management component. The task management component is invoked to update the target task instance in response to the instance update instruction.

6. The data processing method of claim 1, wherein, Before launching the target task instance matched by the target task through the task management component, the method further includes: Identify at least one instance detection item associated with the target task instance; Instance detection is performed on the target task instance based on the at least one instance detection item.

7. The data processing method of claim 1, wherein, After sending the instance data to the task terminal of the target task, the method further includes: Receive the task execution request submitted by the task terminal for the target task, and send the task execution request to the task execution process in the execution node; The task execution process is invoked to execute the target task within the target task instance.

8. The data processing method of claim 1, wherein, Before determining the instance identifier and the task data of the target task in response to the instance creation request associated with the target task, the method further includes: Determine at least one task type and initialize the initial instance corresponding to each of the at least one task type.

9. A data processing system, characterized by Including the task side and the server side, including: The task terminal is used to send an instance creation request associated with the target task to the server. The server is used to determine the instance identifier and the task data of the target task in response to the instance creation request; The resource management component is invoked, the task management component is determined based on the task data, and the task management component is associated with the instance identifier and execution node; the target task instance matching the target task is started through the task management component, the instance data of the target task instance is determined, and the instance data is sent to the task end of the target task.

10. A data processing apparatus, characterized by, include: The determination module is configured to determine the instance identifier and the task data of the target task in response to an instance creation request associated with the target task; The association module is configured to invoke the resource management component, determine the task management component based on the task data, and associate the task management component with the instance identifier and execution node; The sending module is configured to initiate a target task instance matching the target task through the task management component, determine the instance data of the target task instance, and send the instance data to the task end of the target task.

11. A computing device, comprising: include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, which, when executed by the processor, implement the steps of the data processing method according to any one of claims 1 to 8.

12. A computer-readable storage medium, characterized in that, It stores computer-executable instructions that, when executed by a processor, implement the steps of the data processing method according to any one of claims 1 to 8.

13. A computer program product, characterised in that, It includes a computer program or instructions that, when executed by a processor, implement the steps of the data processing method according to any one of claims 1 to 8.