When you configure a Command task, you can choose a recovery strategy to restart or fail:
Fail task and continue workflow.
If you want to suspend the workflow on Command task error, you must configure the task with a fail strategy. If the Command task has more than one command, and you configure a fail strategy, you need to configure the task to fail if any command fails.
When the Integration Service recovers a workflow, it restarts a Command task that is configured with a restart strategy.
Configure the recovery strategy on the Properties page of the Command task.