list_executors
async
¶
list_executors(
session_id: SessionId,
*,
config_overrides: Optional[AsyncAthenaClientConfig] = 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/async_athena.py
3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 | |