list_executors
¶
list_executors(
session_id: SessionId,
*,
config_overrides: Optional[AthenaClientConfig] = None,
executor_state_filter: Optional[ExecutorState] = None,
max_results: Optional[MaxListExecutorsCount] = None,
next_token: Optional[SessionManagerToken] = None,
) -> ListExecutorsResponse
Lists, in descending order, the executors that joined a session. Newer executors are listed first; older executors are listed later. The result can be optionally filtered by state.
Parameters:
-
session_id(SessionId) –The session ID.
-
executor_state_filter(Optional[ExecutorState], default:None) –A filter for a specific executor state. A description of each state follows.
CREATING- The executor is being started, including acquiring resources.CREATED- The executor has been started.REGISTERED- The executor has been registered.TERMINATING- The executor is in the process of shutting down.TERMINATED- The executor is no longer running.FAILED- Due to a failure, the executor is no longer running. -
max_results(Optional[MaxListExecutorsCount], default:None) –The maximum number of executors 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
2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 | |