list_workflow_runs
async
¶
list_workflow_runs(
workflow_arn: WorkflowArn,
*,
config_overrides: Optional[AsyncMWAAServerlessClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
workflow_version: Optional[VersionId] = None,
) -> ListWorkflowRunsResponse
Lists all runs for a specified workflow, with optional pagination and filtering support.
Parameters:
-
max_results(Optional[int], default:None) –The maximum number of workflow runs to return in a single response.
-
next_token(Optional[str], default:None) –The pagination token you need to use to retrieve the next set of results. This value is returned from a previous call to
ListWorkflowRuns. -
workflow_arn(WorkflowArn) –The Amazon Resource Name (ARN) of the workflow for which you want a list of runs.
-
workflow_version(Optional[VersionId], default:None) –Optional. The specific version of the workflow for which you want a list of runs. If not specified, runs for all versions are returned.
Raises:
-
AccessDeniedException–You do not have sufficient permission to perform this action.
-
InternalServerException–An unexpected server-side error occurred during request processing.
-
OperationTimeoutException–The operation timed out.
-
ThrottlingException–The request was denied because too many requests were made in a short period, exceeding the service rate limits. Amazon Managed Workflows for Apache Airflow Serverless implements throttling controls to ensure fair resource allocation across all customers in the multi-tenant environment. This helps maintain service stability and performance. If you encounter throttling, implement exponential backoff and retry logic in your applications, or consider distributing your API calls over a longer time period.
-
ValidationException–The specified request parameters are invalid, missing, or inconsistent with Amazon Managed Workflows for Apache Airflow Serverless service requirements. This can occur when workflow definitions contain unsupported operators, when required IAM permissions are missing, when S3 locations are inaccessible, or when network configurations are invalid. The service validates workflow definitions, execution roles, and resource configurations to ensure compatibility with the managed Airflow environment and security requirements.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mwaa_serverless/_services/async_mwaa_serverless.py
1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 | |