Comprehend / Client / stop_entities_detection_job
stop_entities_detection_job#
- Comprehend.Client.stop_entities_detection_job(**kwargs)#
Stops an entities detection job in progress.
If the job state is
IN_PROGRESS
the job is marked for termination and put into theSTOP_REQUESTED
state. If the job completes before it can be stopped, it is put into theCOMPLETED
state; otherwise the job is stopped and put into theSTOPPED
state.If the job is in the
COMPLETED
orFAILED
state when you call theStopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.When a job is stopped, any documents already processed are written to the output location.
See also: AWS API Documentation
Request Syntax
response = client.stop_entities_detection_job( JobId='string' )
- Parameters:
JobId (string) –
[REQUIRED]
The identifier of the entities detection job to stop.
- Return type:
dict
- Returns:
Response Syntax
{ 'JobId': 'string', 'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'FAILED'|'STOP_REQUESTED'|'STOPPED' }
Response Structure
(dict) –
JobId (string) –
The identifier of the entities detection job to stop.
JobStatus (string) –
Either
STOP_REQUESTED
if the job is currently running, orSTOPPED
if the job was previously stopped with theStopEntitiesDetectionJob
operation.
Exceptions
Comprehend.Client.exceptions.InvalidRequestException
Comprehend.Client.exceptions.JobNotFoundException
Comprehend.Client.exceptions.InternalServerException