Hide navigation sidebar
Hide table of contents sidebar
Back to top
Toggle table of contents sidebar

# Batch Attributes

## BatchErrorCode

- Type: `int`

- Modifiable: `No`

Retrieve the last error code received from the Cluster Manager associated with this batch. A non-zero value indicates that a problem occurred. Refer to the Error Codes table for a list of possible return values. Details on the error can be obtained by querying BatchErrorMessage.

Note that all Batch attributes are cached locally, and are only updated when you create a client-side batch object or when you explicitly update this cache (by calling the appropriate update function - `GRBupdatebatch` for C, `update` for Python, etc.).

For examples of how to query or modify attributes, refer to our Attribute Examples.

## BatchErrorMessage

- Type: `string`

- Modifiable: `No`

Retrieve the last error message received from the Cluster Manager associated with this batch. The related error code can be queried through the BatchErrorCode attribute.

Note that all Batch attributes are cached locally, and are only updated when you create a client-side batch object or when you explicitly update this cache (by calling the appropriate update function - `GRBupdatebatch` for C, `update` for Python, etc.).

For examples of how to query or modify attributes, refer to our Attribute Examples.

## BatchID

- Type: `string`

- Modifiable: `No`

The ID for the batch. Please refer to the Batch Optimization section for more details.

Note that all Batch attributes are cached locally, and are only updated when you create a client-side batch object or when you explicitly update this cache (by calling the appropriate update function - `GRBupdatebatch` for C, `update` for Python, etc.).

For examples of how to query or modify attributes, refer to our Attribute Examples.

## BatchStatus

- Type: `int`

- Modifiable: `No`

Current status for the batch request. Status values are described in the Status Code section.

Note that all Batch attributes are cached locally, and are only updated when you create a client-side batch object or when you explicitly update this cache (by calling the appropriate update function - `GRBupdatebatch` for C, `update` for Python, etc.).

For examples of how to query or modify attributes, refer to our Attribute Examples.

Help and Feedback

Press `/` or click to search this documentation | Gurobi website | Gurobi community forum
Go to other Gurobi documentation | Gurobi download | Contact support