---
title: "Check the status of a long running command"
slug: "check-the-status-of-a-long-running-command"
abstract: ""
---
# Check the status of a long running command

You can check the status of a long running command (that you previously invoked from Postman) using the Postman sample request `Check Long Running Command Status` provided in the Commerce Engine software development kit (SDK). 

Some commands, such as importing very large amount of catalog data for example, can take a long time to complete. You can use the `Check Long Running Command Status` to check if the process initiated by the command is still ongoing or has completed.

The following instructions assume that you have installed the Postman application, imported the sample collections from the Sitecore Commerce Engine SDK, configured your environment, and retrieved a bearer token to access the Commerce Engine API, as described [here](https://doc.sitecore.com/xp/en/developers/102/sitecore-experience-commerce/execute-sample-api-calls-in-postman.html "Execute sample API calls in Postman").

To check the status of a long running command:

1. In the Postman  **Collections** pane, expand the *SitecoreCommerce_DevOps* collection.
2. Open the *3 Environment Initialize* folder, and click the `Check Long Running Command Status` request.
3. In the request URL field, replace the variable `{{*LongRunningTaskId*}}` with the task ID included as part of the response from the long running command.  For example, if you are checking the status of a long running import operation, use the task ID returned by the `Import Catalogs (without publishing)` request.

    > [!note]
    > You must ensure that you are calling the same service that the previous command was executed in. For example, if you initialized your environment, you must update the `CheckCommandStatus` request URL by replacing `{{ServiceHost}}` with `{{OpsApiHost}}.`