Canceling a data repository task - FSx for Lustre
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.

  1. Open the Amazon FSx console at https://console.amazonaws.cn/fsx/.

  2. Click on the file system for which you want to cancel a data repository task.

  3. Open the Data Repository tab and scroll down to view the Data Repository Tasks panel.

  4. Choose Task ID or Task name for the task that you want to cancel.

  5. Choose Cancel task to cancel the task.

  6. 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" }