- Documentation
Volcano Engine Function as a Service
User guide
Functions
Function management
Creating tasks
Function management
Creating tasks
Creating tasks
Tasks help users manage one-time script execution tasks, such as executing test scripts, data synchronization, data cleaning, and GPU inference/training. Serverless tasks handle asynchronous invocation requests in task mode, track and persist the status of each task stage, and provide rich task control and observability capabilities. This applies to long-running, compute-intensive scenarios. This topic describes how to create a task.
Prerequisites
- veFaaS has been activated.
- Cross-service authorization has been completed if you use veFaaS for the first time.
- Code development has bee completed locally. For details, refer to Native runtime.
- (Optional) To upload code via TOS, store the code ZIP file in TOS in advance. For specific operations, see Getting started with TOS.
- (Optional) If you need to upload code from your on-premises computer or via TOS, make sure that the code Zip file is not encrypted and its size does not exceed 256 MiB.
- (Optional) If you need to access a VPC, make sure that the VPC service of Volcano Engine has been activated, and a VPC, subnets, and security groups have been created in the region where the function is to be deployed. For details, see Creating VPCs, Creating subnets, and Creating security groups.
- (Recommended) If you need to view function logs, make sure that TLS has been activated. If you need to use a custom logging project to handle function logs, ensure that the project and topics have already been created. For details, see Creating log projects and Creating log topics.
- (Optional) If you need to manage function resources by using projects, create a project in advance. For specific operations, see Creating projects.
Limits
When you deploy a function by using a container image:
- The container image must be pushed to a Volcano Engine CR instance that is deployed in the same region as the function.
- After the function is created, you must wait for the image synchronization to complete before releasing the function.
Procedure
- In the top navigation bar, select the target region.
- In the left navigation bar, click Function > Function management. On the Function page, click Create function.
- On the Select function creation method page, click Task function > Create Task function. Specify the parameters based on the following descriptions.
- Asynchronous tasks are enabled by default and cannot be disabled. For more parameter details, see Configuring functions.
- Click Create to create the function.
What to do next
Release the code and configuration of the function. For detailed operations, see Releasing functions.
Last updated: 2026.08.19 14:06:06