def restart_f(service_uuid, deploy_uuid, hard_restart=False): dp = DeployService(service_uuid, deploy_uuid) dp.restart_deploy(hard_restart=hard_restart)