Delete a Human Loop
When you delete a human loop, the status changes to Deleting
. When the
human loop is deleted, the associated human review task is no longer available to workers.
You might want to delete a human loop in one of the following circumstances:
-
The worker task template used to generate your worker user interface does not render correctly or is not functioning as expected.
-
A single data object was accidentally sent to workers multiple times.
-
You no longer need a data object reviewed by a human.
If the status of a human loop is InProgress
, you must stop the human loop
before deleting it. When you stop a human loop, the status changes to Stopping
while it is being stopped. When the status changes to Stopped
, you can delete
the human loop.
If human workers are already working on a task when you stop the associated human loop,
that task continues to be available until it is completed or expires. As long as workers are
still working on a task, your human loop's status is Stopping
. If these tasks
are completed, the results are stored in the Amazon S3 bucket URI specified in your human review
workflow. If the worker leaves the task without submitting work, it is stopped and the
worker can't return to the task. If no worker has started working on the task, it is stopped
immediately.
If you delete the AWS account used to create the human loop, it is stopped and deleted automatically.
Human Loop Data Retention and Deletion
When a human worker completes a human review task, the results are stored in the Amazon S3 output bucket you specified in the human review workflow used to create the human loop. Deleting or stopping a human loop does not remove any worker answers from your S3 bucket.
Additionally, Amazon A2I temporarily stores human loop input and output data internally for the following reasons:
-
If you configure your human loops so that a single data object is sent to multiple workers for review, Amazon A2I does not write output data to your S3 bucket until all workers have completed the review task. Amazon A2I stores partial answers—answers from individual workers—internally so that it can write full results to your S3 bucket.
-
If you report a low-quality human review result, Amazon A2I can investigate and respond to your issue.
-
If you lose access to or delete the output S3 bucket specified in the human review workflow used to create a human loop, and the task has already been sent to one or more workers, Amazon A2I needs a place to temporarily store human review results.
Amazon A2I deletes this data internally 30 days after a human loop's status changes to
one of the following: Deleted
, Stopped
, or
Completed
. In other words, data is deleted 30 days after the human loop
has been completed, stopped, or deleted. Additionally, this data is deleted after 30
days if you close the AWS account used to create associated human loops.
Stop and Delete a Flow Definition Using the Console or the Amazon A2I API
You can stop and delete a human loop in the Augmented AI console or by using the SageMaker API.
When the human loop has been deleted, the status changes to Deleted
.
Delete a human loop (console)
-
Navigate to the Augmented AI console at https://console.aws.amazon.com/a2i/
. -
In the navigation pane, under the Augmented AI section, choose Human review workflows.
-
Choose the hyperlinked name of the human review workflow you used to create the human loop you want to delete.
-
In the Human loops section at the bottom of the page, select the human loop you want to stop and delete.
-
If the human loop status is
Completed
,Stopped
, orFailed
, select Delete.If the human loop Status is
InProgress
, select Stop. When the status changes to Stopped, select Delete.
Delete a human loop (API)
-
Check the status of your human loop using the Augmented AI Runtime API operation
DescribeHumanLoop
. See examples using this operation in the following table. -
If the flow definition status is
Completed
,Stopped
, orFailed
, delete the flow definition using the Augmented AI Runtime API operationDeleteHumanLoop
.If the human loop status is
InProgress
, stop the human loop usingStopHumanLoop
and then useDeleteHumanLoop
to delete it.