Skip to content

Commit 64585af

Browse files
committed
Merge remote-tracking branch 'origin/develop' into fix/rspy448-staging-jobs-wrong-id-handling
2 parents 4176e3b + 18b1d71 commit 64585af

File tree

5 files changed

+301
-290
lines changed

5 files changed

+301
-290
lines changed

services/common/rs_server_common/s3_storage_handler/s3_storage_handler.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,12 @@ class CustomSessionRedirect(requests.Session):
112112
"""
113113

114114
def __init__(self, trusted_domains=list[str] | None):
115-
"""Initialize the CustomSession instance."""
115+
"""
116+
Initialize the CustomSession instance.
117+
118+
Args:
119+
trusted_domains (list): List of allowed hosts for redirection in case of change of protocol (HTTP <> HTTPS).
120+
"""
116121
super().__init__()
117122
self.trusted_domains: list[str] = trusted_domains or [] # List of allowed hosts for redirection
118123

@@ -871,6 +876,7 @@ def s3_streaming_upload( # pylint: disable=too-many-locals
871876
872877
Args:
873878
stream_url (str): The URL of the file to be streamed and uploaded.
879+
trusted_domains (list): List of allowed hosts for redirection in case of change of protocol (HTTP <> HTTPS).
874880
auth (Any): Authentication credentials for the HTTP request (if required).
875881
bucket (str): The name of the target S3 bucket.
876882
key (str): The S3 object key (file path) to store the streamed file.

services/staging/rs_server_staging/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,12 @@ async def execute_process(req: Request, resource: str, data: ProcessMetadataMode
271271
processor_name = api.config["resources"][resource]["processor"]["name"]
272272
if processor_name in processors:
273273
processor = processors[processor_name]
274-
status = await processor(
274+
_, status = await processor(
275275
req,
276-
data.inputs.items,
277-
data.inputs.collection.id,
278276
data.outputs["result"].id,
279277
app.extra["process_manager"],
280278
app.extra["dask_cluster"],
281-
).execute()
279+
).execute(data.inputs.dict())
282280
return JSONResponse(status_code=HTTP_200_OK, content={"status": status})
283281

284282
raise HTTPException(status_code=HTTP_404_NOT_FOUND, detail=f"Processor '{processor_name}' not found")

0 commit comments

Comments
 (0)