catalog_ai_lake.
get_operation
get_operation(operation_id: str) -> CatalogAILakeOperation
Fetch the current state of a long-running AI Lake operation.
Parameters
| name | type | description |
|---|---|---|
| operation_id: str | str |
Returns
| type | description |
|---|---|
| CatalogAILakeOperation |
Example
operation_id = sdk.catalog_ai_lake.analyze_statistics(instance_id="warehouse-prod")
op = sdk.catalog_ai_lake.get_operation(operation_id)
if op.is_terminal:
print(op.status, op.result or op.error)