tencent cloud

Batch Compute

Product Introduction
What's Batch?
Scenarios
Strengths
Glossary
Quota & Limits
Data Security
Purchase Guide
Getting Started
Preparation
Using CLI - Submit a Job
Using CLI - Compute Environment
Configuring a Job
Using Console
Console User Guide
Task Template Management
Job Management
User Guide
How to create images usable by BatchCompute
Windows Custom Images
Environment Variables
Entering COS & CFS Paths
Event Notice & Callback
Cloud Access Management
Command Line Interface
Preparation
Quick Start
Running Remote Package
Mapping Remote Storage
Use Cases
Building Cluster Using Compute Environment
Example: 3ds Max 2018 Rendering
Example: Deep Learning
API Documentation
History
Introduction
API Category
Making API Requests
Compute Environment APIs
Configuration Viewing-related APIs
Task Template-related APIs
Job-related APIs
Data Types
Error Codes
SDK Documentation
Instructions
FAQs
Contact Us
Glossary
문서Batch ComputeUser GuideEnvironment Variables

Environment Variables

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-07-14 15:53:19

Summary

BatchCompute provides the instances of a task with the task-related environment variable information to allow user program to execute different computing tasks based on the environment variables.

Details

Variable
Name
Description
BATCH_JOB_ID
Job ID
ID of the job to which an instance belongs. It is included in the returned result after the job is submitted, such as job-n4ohivif
BATCH_TASK_NAME
Task name
Name of the task to which an instance belongs. It is specified when the job is submitted, such as "TaskName": "Task1"
BATCH_TASK_INSTANCE_NUM
Total number of instances of a task
The total number of instances requested to run concurrently in the task to which the instances belong, such as "TaskInstanceNum": 5
BATCH_TASK_INSTANCE_INDEX
Task instance index
The index of an instance in the task to which the instance belongs; for example, if five instances are specified to run concurrently in a task, then the indices of these instances are 0, 1, 2, 3, 4


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백