Skip to content

Commit 01a59b1

Browse files
committed
wrapped wait time in function
1 parent cf00235 commit 01a59b1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

sagemaker-featurestore/feature_store_introduction.ipynb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,16 @@
290290
"metadata": {},
291291
"outputs": [],
292292
"source": [
293-
"time.sleep(60)"
293+
"def check_feature_group_status(feature_group):\n",
294+
" status = feature_group.describe().get(\"FeatureGroupStatus\")\n",
295+
" while status == \"Creating\":\n",
296+
" print(\"Waiting for Feature Group to be Created\")\n",
297+
" time.sleep(5)\n",
298+
" status = feature_group.describe().get(\"FeatureGroupStatus\")\n",
299+
" print(f\"FeatureGroup {feature_group.name} successfully created.\")\n",
300+
" \n",
301+
"check_feature_group_status(customers_feature_group)\n",
302+
"check_feature_group_status(orders_feature_group)"
294303
]
295304
},
296305
{

0 commit comments

Comments
 (0)