fine tune updateDeploymentStatus method