From 746da3b26ae8d47f5c85524d62c87a68f83aef30 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 15 May 2024 19:23:43 -0700 Subject: [PATCH] Fix import issue in samples when using new Python Wrapper --- 00_notebooks/import-multiple-buckets.ipynb | 1 + 00_notebooks/ml-reproducibility.ipynb | 1 + .../aws-databricks/unstructuredDataMLDemoSetup.ipynb | 1 + .../databricks-notebooks/Create lakeFS Repo and Import Data.py | 1 + .../image-segmentation-local/ImageSegmentationSetup.ipynb | 1 + .../image-segmentation/ImageSegmentationSetup.ipynb | 1 + 6 files changed, 6 insertions(+) diff --git a/00_notebooks/import-multiple-buckets.ipynb b/00_notebooks/import-multiple-buckets.ipynb index f1901dfc0..2bdeb378a 100644 --- a/00_notebooks/import-multiple-buckets.ipynb +++ b/00_notebooks/import-multiple-buckets.ipynb @@ -243,6 +243,7 @@ " .prefix(importSource2, destination=importDestination)\n", "\n", "importer.start()\n", + "time.sleep(2)\n", "status = importer.status()\n", "print(status)\n", "\n", diff --git a/00_notebooks/ml-reproducibility.ipynb b/00_notebooks/ml-reproducibility.ipynb index 3a33ec8f5..d4c21d587 100644 --- a/00_notebooks/ml-reproducibility.ipynb +++ b/00_notebooks/ml-reproducibility.ipynb @@ -680,6 +680,7 @@ " .prefix(importSource2, destination=importDestination)\n", "\n", "importer.start()\n", + "time.sleep(2)\n", "status = importer.status()\n", "print(status)\n", "\n", diff --git a/01_standalone_examples/aws-databricks/unstructuredDataMLDemoSetup.ipynb b/01_standalone_examples/aws-databricks/unstructuredDataMLDemoSetup.ipynb index 7e7f642a9..be41394a4 100644 --- a/01_standalone_examples/aws-databricks/unstructuredDataMLDemoSetup.ipynb +++ b/01_standalone_examples/aws-databricks/unstructuredDataMLDemoSetup.ipynb @@ -59,6 +59,7 @@ " import time\n", "\n", " importer.start()\n", + " time.sleep(2)\n", " \n", " while not importer.status().completed and importer.status().error is None:\n", " time.sleep(2)\n", diff --git a/01_standalone_examples/databricks-ci-cd/databricks-notebooks/Create lakeFS Repo and Import Data.py b/01_standalone_examples/databricks-ci-cd/databricks-notebooks/Create lakeFS Repo and Import Data.py index 461a9ea89..df8cb8134 100644 --- a/01_standalone_examples/databricks-ci-cd/databricks-notebooks/Create lakeFS Repo and Import Data.py +++ b/01_standalone_examples/databricks-ci-cd/databricks-notebooks/Create lakeFS Repo and Import Data.py @@ -39,6 +39,7 @@ .prefix(importSource, destination=importDestination) importer.start() +time.sleep(2) while not importer.status().completed and importer.status().error is None: time.sleep(2) diff --git a/01_standalone_examples/image-segmentation-local/ImageSegmentationSetup.ipynb b/01_standalone_examples/image-segmentation-local/ImageSegmentationSetup.ipynb index b30b665bf..e0d2fc065 100644 --- a/01_standalone_examples/image-segmentation-local/ImageSegmentationSetup.ipynb +++ b/01_standalone_examples/image-segmentation-local/ImageSegmentationSetup.ipynb @@ -617,6 +617,7 @@ " importer.prefix(\"s3://\"+bucketName+'/'+prefix+'train_ship_segmentations_v2.csv', destination=raw_data_folder)\n", " \n", " importer.start()\n", + " time.sleep(2)\n", " status = importer.status()\n", " print(status)\n", "\n", diff --git a/01_standalone_examples/image-segmentation/ImageSegmentationSetup.ipynb b/01_standalone_examples/image-segmentation/ImageSegmentationSetup.ipynb index dd2b9f3ca..c246437e5 100644 --- a/01_standalone_examples/image-segmentation/ImageSegmentationSetup.ipynb +++ b/01_standalone_examples/image-segmentation/ImageSegmentationSetup.ipynb @@ -540,6 +540,7 @@ " importer.prefix(\"s3://\"+bucketName+'/'+prefix+'train_ship_segmentations_v2.csv', destination=raw_data_folder)\n", " \n", " importer.start()\n", + " time.sleep(2)\n", " status = importer.status()\n", " print(status)\n", "\n",