Changes the schedule state of the specified crawler to SCHEDULED, unless the crawler is already running or the schedule state is already SCHEDULED.
Parameters:
-
crawler_name
(NameString)
–
Name of the crawler to schedule.
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def start_crawler_schedule(
self,
crawler_name: "capo_glue.types.name_string.NameString",
*,
config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.start_crawler_schedule_response.StartCrawlerScheduleResponse":
"""<p>Changes the schedule state of the specified crawler to <code>SCHEDULED</code>, unless the crawler is already running or the schedule state is already <code>SCHEDULED</code>.</p>
Args:
crawler_name: <p>Name of the crawler to schedule.</p>
Raises:
capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
capo_glue.errors.no_schedule_exception.NoScheduleException: <p>There is no applicable schedule.</p>
capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
capo_glue.errors.scheduler_running_exception.SchedulerRunningException: <p>The specified scheduler is already running.</p>
capo_glue.errors.scheduler_transitioning_exception.SchedulerTransitioningException: <p>The specified scheduler is transitioning.</p>
capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_glue.types.start_crawler_schedule_request.StartCrawlerScheduleRequest]",
) -> OperationResponse[
"capo_glue.types.start_crawler_schedule_response.StartCrawlerScheduleResponse"
]:
import capo_glue._operations.aws_glue.start_crawler_schedule
output, http_response = (
capo_glue._operations.aws_glue.start_crawler_schedule.start_crawler_schedule(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StartCrawlerSchedule")
)
input_: capo_glue.types.start_crawler_schedule_request.StartCrawlerScheduleRequest = {
"crawler_name": crawler_name
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|