Skip to content

Commit

Permalink
Refined endpoint waiting logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jhp612 committed Aug 4, 2022
1 parent 7128084 commit 0386ad3
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -674,18 +674,13 @@
"metadata": {},
"outputs": [],
"source": [
"resp = sm.describe_endpoint(EndpointName=endpoint_name)\n",
"status = resp[\"EndpointStatus\"]\n",
"print(\"Status: \" + status)\n",
"\n",
"waiter = sm.get_waiter(\"endpoint_in_service\")\n",
"print(\"Waiting for endpoint to create...\")\n",
"waiter.wait(EndpointName=endpoint_name)\n",
"resp = sm.describe_endpoint(EndpointName=endpoint_name)\n",
"print(f\"Endpoint Status: {resp['EndpointStatus']}\")\n",
"\n",
"print(\"Arn: \" + resp[\"EndpointArn\"])\n",
"print(\"Status: \" + status)"
"print(\"Arn: \" + resp[\"EndpointArn\"])"
]
},
{
Expand Down

0 comments on commit 0386ad3

Please sign in to comment.