OCI Batch Task Environment Variables
When Oracle Cloud Infrastructure (OCI) Batch runs a task, it injects environment variables into the task container in addition to the variables that you configure. Your application can read these variables to understand its execution context.
Variables Injected by OCI Batch
OCI_BATCH_CONTEXT_ID: Oracle Cloud Identifier (OCID) of the Batch Context that the task and job are associated with.OCI_BATCH_FLEET_NAME: Name of the Batch fleet that ran the task.OCI_BATCH_JOB_POOL_ID: OCID of the Job Pool that the task and job are associated with.OCI_BATCH_JOB_ID: OCID of the job that includes this task.OCI_BATCH_TASK_NAME: Task name as defined in the job configuration.OCI_BATCH_TASK_RUN_ID: Unique identifier for this specific task run (retry attempt).