Move long-running tasks to the end of the deployment process