list_calculation_executions
async
¶
list_calculation_executions(
session_id: SessionId,
*,
config_overrides: Optional[AsyncAthenaClientConfig] = None,
state_filter: Optional[CalculationExecutionState] = None,
max_results: Optional[MaxCalculationsCount] = None,
next_token: Optional[SessionManagerToken] = None,
) -> ListCalculationExecutionsResponse
Lists the calculations that have been submitted to a session in descending order. Newer calculations are listed first; older calculations are listed later.
Parameters:
-
session_id(SessionId) –The session ID.
-
state_filter(Optional[CalculationExecutionState], default:None) –A filter for a specific calculation execution state. A description of each state follows.
CREATING- The calculation is in the process of being created.CREATED- The calculation has been created and is ready to run.QUEUED- The calculation has been queued for processing.RUNNING- The calculation is running.CANCELING- A request to cancel the calculation has been received and the system is working to stop it.CANCELED- The calculation is no longer running as the result of a cancel request.COMPLETED- The calculation has completed without error.FAILED- The calculation failed and is no longer running. -
max_results(Optional[MaxCalculationsCount], default:None) –The maximum number of calculation executions to return.
-
next_token(Optional[SessionManagerToken], default:None) –A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
Raises:
-
InternalServerException–Indicates a platform issue, which may be due to a transient condition or outage.
-
InvalidRequestException–Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.
-
ResourceNotFoundException–A resource, such as a workgroup, was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_athena/_services/async_athena.py
2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 | |