From b4e732adbf91afdd423908fb9c76cc2cc894674e Mon Sep 17 00:00:00 2001 From: Jason Baumohl Date: Fri, 25 Oct 2024 22:25:04 +0000 Subject: [PATCH] dealing with ws_url hitting cloudflare problem --- source/custom_scripts/get_copy_info_for_narratives.py | 2 +- source/custom_scripts/get_duplicate_narrative_object_ids.py | 2 +- .../populate_orphaned_blobstore_nodes_handles.py | 4 ++-- source/custom_scripts/upload_get_copy_info_for_narratives.py | 2 +- source/daily_cron_jobs/methods_upload_blobstore_details.py | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/custom_scripts/get_copy_info_for_narratives.py b/source/custom_scripts/get_copy_info_for_narratives.py index 225df03..51c7374 100644 --- a/source/custom_scripts/get_copy_info_for_narratives.py +++ b/source/custom_scripts/get_copy_info_for_narratives.py @@ -26,7 +26,7 @@ mongoDB_metrics_connection = os.environ["MONGO_PATH"] -ws_url = os.environ["WS_URL"] +#ws_url = os.environ["WS_URL"] ws_user_token = os.environ["METRICS_WS_USER_TOKEN"] to_workspace = os.environ["WRK_SUFFIX"] diff --git a/source/custom_scripts/get_duplicate_narrative_object_ids.py b/source/custom_scripts/get_duplicate_narrative_object_ids.py index b1ce05c..43a15a5 100644 --- a/source/custom_scripts/get_duplicate_narrative_object_ids.py +++ b/source/custom_scripts/get_duplicate_narrative_object_ids.py @@ -27,7 +27,7 @@ mongoDB_metrics_connection = os.environ["MONGO_PATH"] -ws_url = os.environ["WS_URL"] +#ws_url = os.environ["WS_URL"] ws_user_token = os.environ["METRICS_WS_USER_TOKEN"] to_workspace = os.environ["WRK_SUFFIX"] diff --git a/source/custom_scripts/populate_orphaned_blobstore_nodes_handles.py b/source/custom_scripts/populate_orphaned_blobstore_nodes_handles.py index 901d148..3d06eab 100644 --- a/source/custom_scripts/populate_orphaned_blobstore_nodes_handles.py +++ b/source/custom_scripts/populate_orphaned_blobstore_nodes_handles.py @@ -1,6 +1,6 @@ from pymongo import MongoClient from pymongo import ReadPreference -from biokbase.workspace.client import Workspace +#from biokbase.workspace.client import Workspace #from installed_clients.AbstractHandleClient import AbstractHandle as HandleService from biokbase.service.Client import Client as ServiceClient import json as _json @@ -22,7 +22,7 @@ mongoDB_metrics_connection = os.environ["MONGO_PATH"] -ws_url = os.environ["WS_URL"] +#ws_url = os.environ["WS_URL"] ws_user_token = os.environ["METRICS_WS_USER_TOKEN"] to_workspace = os.environ["WRK_SUFFIX"] diff --git a/source/custom_scripts/upload_get_copy_info_for_narratives.py b/source/custom_scripts/upload_get_copy_info_for_narratives.py index 251a830..350fcbf 100644 --- a/source/custom_scripts/upload_get_copy_info_for_narratives.py +++ b/source/custom_scripts/upload_get_copy_info_for_narratives.py @@ -27,7 +27,7 @@ mongoDB_metrics_connection = os.environ["MONGO_PATH"] -ws_url = os.environ["WS_URL"] +#ws_url = os.environ["WS_URL"] ws_user_token = os.environ["METRICS_WS_USER_TOKEN"] to_workspace = os.environ["WRK_SUFFIX"] diff --git a/source/daily_cron_jobs/methods_upload_blobstore_details.py b/source/daily_cron_jobs/methods_upload_blobstore_details.py index 0ea3f5a..b7919e9 100644 --- a/source/daily_cron_jobs/methods_upload_blobstore_details.py +++ b/source/daily_cron_jobs/methods_upload_blobstore_details.py @@ -1,6 +1,6 @@ from pymongo import MongoClient from pymongo import ReadPreference -from biokbase.workspace.client import Workspace +#from biokbase.workspace.client import Workspace #from installed_clients.AbstractHandleClient import AbstractHandle as HandleService from biokbase.service.Client import Client as ServiceClient import json as _json @@ -18,7 +18,7 @@ mongoDB_metrics_connection = os.environ["MONGO_PATH"] -ws_url = os.environ["WS_URL"] +#ws_url = os.environ["WS_URL"] ws_user_token = os.environ["METRICS_WS_USER_TOKEN"] to_workspace = os.environ["WRK_SUFFIX"]