Skip to content

Commit

Permalink
Update entrypoint.sh to use /bin/sh instead of /bin/bash. Add new par…
Browse files Browse the repository at this point in the history
…ameters to fetch_and_process_urls function.
  • Loading branch information
Cdaprod committed Mar 6, 2024
1 parent 52b3bbd commit b967315
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

# Function to check if Weaviate is up
wait_for_weaviate() {
Expand Down
3 changes: 2 additions & 1 deletion app/hydrate_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def process_documents_in_minio(bucket_name, processed_object_names):
os.remove(file_path)
print(f"MinIO and Weaviate have ingested '{object_name}'! :)")

def fetch_and_process_urls(url_list.urls, BUCKET_NAME):
#def fetch_and_process_urls(url_list.urls, BUCKET_NAME):
def fetch_and_process_urls(urls, bucket_name, minio_client, weaviate_client):
processed_object_names = [] # Track successfully processed URLs

if not minio_client.bucket_exists(bucket_name):
Expand Down

0 comments on commit b967315

Please sign in to comment.