@@ -64,6 +64,7 @@ def __init__(
6464 stop_grace_period : str = "120s" ,
6565 cluster_replica_size : dict [str , dict [str , Any ]] | None = None ,
6666 network_mode : str | None = None ,
67+ set_persist_urls : bool = True ,
6768 ) -> None :
6869 depends_graph : dict [str , ServiceDependency ] = {}
6970
@@ -161,27 +162,30 @@ def __init__(
161162 f"--fivetran-destination-files-path={ fivetran_destination_files_path } "
162163 )
163164
164- if external_blob_store :
165- blob_store = "azurite" if blob_store_is_azure else "minio"
166- address = blob_store if external_blob_store == True else external_blob_store
167- persist_blob_url = (
168- azure_blob_uri (address )
169- if blob_store_is_azure
170- else minio_blob_uri (address )
171- )
172- entrypoint .append (f"--persist-blob-url={ persist_blob_url } " )
173- else :
174- entrypoint .append ("--persist-blob-url=file:///mzdata/persist/blob" )
175-
176- if external_metadata_store :
177- depends_graph [metadata_store ] = {"condition" : "service_healthy" }
178- entrypoint .append (
179- "--persist-consensus-url=postgres://root@cockroach:26257?options=--search_path=consensus"
180- )
181- else :
182- entrypoint .append (
183- f"--persist-consensus-url=postgres://root@{ mz_service } :26257?options=--search_path=consensus"
184- )
165+ if set_persist_urls :
166+ if external_blob_store :
167+ blob_store = "azurite" if blob_store_is_azure else "minio"
168+ address = (
169+ blob_store if external_blob_store == True else external_blob_store
170+ )
171+ persist_blob_url = (
172+ azure_blob_uri (address )
173+ if blob_store_is_azure
174+ else minio_blob_uri (address )
175+ )
176+ entrypoint .append (f"--persist-blob-url={ persist_blob_url } " )
177+ else :
178+ entrypoint .append ("--persist-blob-url=file:///mzdata/persist/blob" )
179+
180+ if external_metadata_store :
181+ depends_graph [metadata_store ] = {"condition" : "service_healthy" }
182+ entrypoint .append (
183+ "--persist-consensus-url=postgres://root@cockroach:26257?options=--search_path=consensus"
184+ )
185+ else :
186+ entrypoint .append (
187+ f"--persist-consensus-url=postgres://root@{ mz_service } :26257?options=--search_path=consensus"
188+ )
185189
186190 entrypoint .extend (entrypoint_extra )
187191
0 commit comments