---
schema_version: "1"
id: b41826288307f76345e01edd39c547cb7263981e77bd59e2ea71dc9598ed6a5d
title: Checking the Status of a Task
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-migration-guide/guides/daas/forcemigrationtool-checkstatus.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-migration-guide/guide/forcemigrationtool-checkstatus.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5a469e72794506ca9b83d8b6c9977487e723e6c1dc6913b355afdf5f7ec8fbb8
products:
  - Ant Migration Tool Guide
  - Platform Developer Content
---

# Checking the Status of a Task

**note:** The Ant Migration Tool is retired with Spring ’24. The tool continues to function as-is for future API versions but isn’t updated with new functionality and isn’t supported. If Salesforce adds a new feature that is incompatible with Ant, the Ant Migration Tool won't be updated to support it. To manage metadata changes, switch to Salesforce CLI for a modern, supported developer experience.

When you run a target, the Ant Migration Tool outputs the request ID for each deploy or retrieve task included in the target. You can use the request ID to check the status of a deploy or retrieve task. This is particularly useful if a client is running for a long time and there is a network issue that breaks the connectivity between the Ant Migration Tool on your machine and Salesforce.

To check the status of a run target, use the following command:

```nolang
ant -Dsf.asyncRequestId=requestID targetName
```

Use the _requestID_ that was printed out when you ran the target. For example, if you run the `deployZip` target, you can run the following command to check the status of the retrieval:

```nolang
ant -Dsf.asyncRequestId=04sx00000002aGuAAI deployZip
```

**note:** You should not use this command with targets that contain multiple retrieve or deploy tasks. You should not use this command with the `bulkRetrieve` task also as this task batches retrievals in multiple requests.

To track the status of deployments from within Salesforce, from Setup, enter `Deployment` in the `Quick Find` box, then select **Deployment Status**.

