Skip to content

Commit

Permalink
Staging: use pygeoapi processor signature
Browse files Browse the repository at this point in the history
  • Loading branch information
vprivat-ads committed Jan 24, 2025
1 parent 571d74b commit 2c9ef48
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 123 deletions.
6 changes: 2 additions & 4 deletions services/staging/rs_server_staging/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,12 @@ async def execute_process(req: Request, resource: str, data: ProcessMetadataMode
processor_name = api.config["resources"][resource]["processor"]["name"]
if processor_name in processors:
processor = processors[processor_name]
status = await processor(
_, status = await processor(
req,
data.inputs.items,
data.inputs.collection.id,
data.outputs["result"].id,
app.extra["process_manager"],
app.extra["dask_cluster"],
).execute()
).execute(data.inputs.dict())
return JSONResponse(status_code=HTTP_200_OK, content={"status": status})

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

0 comments on commit 2c9ef48

Please sign in to comment.