Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
fix comprehend entities detection job deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
tylersouthwick committed Jun 14, 2021
1 parent eab5b39 commit 4b411d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/comprehend_entities_detection_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ func ListComprehendEntitiesDetectionJobs(sess *session.Session) ([]Resource, err
return nil, err
}
for _, entitiesDetectionJob := range resp.EntitiesDetectionJobPropertiesList {
if *entitiesDetectionJob.JobStatus == "STOPPED" {
// if the job has already been stopped, do not try to delete it again
continue
}
resources = append(resources, &ComprehendEntitiesDetectionJob{
svc: svc,
entitiesDetectionJob: entitiesDetectionJob,
Expand Down

0 comments on commit 4b411d1

Please sign in to comment.