Canceling a data repository task
You can cancel a data repository task while it's in either the PENDING or EXECUTING state. When you cancel a task, the following occurs:
Amazon FSx doesn't process any files that are in the queue to be processed.
Amazon FSx continues processing any files that are currently in process.
Amazon FSx doesn't revert any files that the task already processed.
Open the Amazon FSx console at https://console.aws.amazon.com/fsx/
. Click on the file system for which you want to cancel a data repository task.
Open the Data Repository tab and scroll down to view the Data Repository Tasks panel.
Choose Task ID or Task name for the task that you want to cancel.
Choose Cancel task to cancel the task.
Enter the task ID to confirm the cancellation request.
Use the Amazon FSx cancel-data-repository-task
CLI command,
to cancel a task. CancelDataRepositoryTask
is the equivalent API command.
Use the following command to cancel a data repository task.
aws fsx cancel-data-repository-task \ --task-id task-0123456789abcdef0
If the command is successful, Amazon FSx returns the response in JSON format.
{ "Status": "CANCELING", "TaskId": "task-0123456789abcdef0" }