Skip to content

Commit c83698a

Browse files
Fix when new workflow is created without explicitly providing workflow_id
1 parent c28e783 commit c83698a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • inference/core/interfaces/http/builder

inference/core/interfaces/http/builder/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ async def create_or_overwrite_workflow(
201201
logger.error(f"Error deleting {old_id} from {old_file_path}: {e}")
202202
return JSONResponse({"error": "unable to delete file"}, status_code=500)
203203

204-
request_body["id"] = workflow_id
204+
request_body["id"] = workflow_id
205205

206206
workflow_hash = sha256(workflow_id.encode()).hexdigest()
207207
file_path = workflow_local_dir / f"{workflow_hash}.json"

0 commit comments

Comments
 (0)