awswrangler.timestream.wait_batch_load_task¶
- awswrangler.timestream.wait_batch_load_task(task_id: str, timestream_batch_load_wait_polling_delay: float = 2, boto3_session: Session | None = None) dict[str, Any] ¶
Wait for the Timestream batch load task to complete.
Note
This function has arguments which can be configured globally through wr.config or environment variables:
timestream_batch_load_wait_polling_delay
Check out the Global Configurations Tutorial for details.
- Parameters:
task_id (
str
) – The ID of the batch load task.timestream_batch_load_wait_polling_delay (
float
) – Time to wait between two polling attempts.boto3_session (
Session
|None
) – The default boto3 session will be used if boto3_session isNone
.
- Return type:
dict
[str
,Any
]- Returns:
Dictionary with the describe_batch_load_task response.
Examples
>>> import awswrangler as wr >>> res = wr.timestream.wait_batch_load_task(task_id='task-id')
- Raises:
exceptions.TimestreamLoadError – Error message raised by failed task.