awswrangler.athena.list_query_executions

awswrangler.athena.list_query_executions(workgroup: str | None = None, boto3_session: Session | None = None) List[str]

Fetch list query execution IDs ran in specified workgroup or primary work group if not specified.

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_query_executions

Parameters:
  • workgroup (str) – The name of the workgroup from which the query_id are being returned. If not specified, a list of available query execution IDs for the queries in the primary workgroup is returned.

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

Returns:

List of query execution IDs.

Return type:

List[str]

Examples

>>> import awswrangler as wr
>>> res = wr.athena.list_query_executions(workgroup='workgroup-name')