list_calculation_executions
¶
list_calculation_executions(
session_id: SessionId,
*,
config_overrides: Optional[AthenaClientConfig] = 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/athena.py
2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 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 | |