def check(self):
        try:
            self._client.get_deployment(self._deployment_id)
        except DeploymentNotFound:
            # if the deployment isn't listed, then we can consider the deployment as completed
            # successfully and return True. According to the marathon docs: "If the deployment
            # is gone from the list of deployments, then this means it is finished."
            return True

        return False
Check if this deployment has completed.
dataset/ETHPy150Open shopkeep/shpkpr/shpkpr/marathon/deployment.py/MarathonDeployment.check