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, optional) – Time to wait between two polling attempts.

  • boto3_session (boto3.Session(), optional) – Boto3 Session. The default boto3 session is used if None.

Returns:

Dictionary with the describe_batch_load_task response.

Return type:

Dict[str, Any]

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.