Skip to content

Commit 3defdf5

Browse files
committed
updates to main
1 parent 5d9c5b4 commit 3defdf5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gateway/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,15 @@ async def get_process_metadata(
126126
config: UploadFile = File(..., title="Process Config"),
127127
model_files: List[UploadFile] = File(..., title="Files"),
128128
return_composite_state: bool = Query(default=True, title="Return Composite State"),
129-
local_registry: bool = Query(default=True, title="Whether to use the local registry. Please note that this must be true by default for now."),
129+
# local_registry: bool = Query(default=True, title="Whether to use the local registry. Please note that this must be true by default for now."),
130130
) -> ProcessMetadata:
131131
if not config.filename.endswith('.json') and config.content_type != 'application/json':
132132
raise HTTPException(status_code=400, detail="Invalid file type. Only JSON files are supported.")
133133
try:
134134
from bsp import app_registrar
135+
136+
# TODO: implement this as a method param once new registries are established
137+
# assert local_registry, "You must use the local registry. Please note that this must be true by default for now."
135138
registry = app_registrar.core.process_registry
136139
process_constructor = registry.access(process_id)
137140
job_id = f'get-process-metadata-{process_id}-' + str(uuid.uuid4())

0 commit comments

Comments
 (0)