From 085b6e0841b99394391794452c804c5d6a40ea81 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Fri, 18 Nov 2022 10:45:03 -0500 Subject: [PATCH] debugging we don't want --- lib/galaxy/webapps/galaxy/api/jobs.py | 3 ++- lib/galaxy/webapps/galaxy/api/tools.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/webapps/galaxy/api/jobs.py b/lib/galaxy/webapps/galaxy/api/jobs.py index 4cb06d29f413..fb8fedeaf243 100644 --- a/lib/galaxy/webapps/galaxy/api/jobs.py +++ b/lib/galaxy/webapps/galaxy/api/jobs.py @@ -222,7 +222,8 @@ def create( self, trans: ProvidesHistoryContext = DependsOnTrans, job_request: JobRequest = Body(...) ) -> JobCreateResponse: validate_not_protected(job_request.tool_id) - return self.service.create(trans, job_request) + rval = self.service.create(trans, job_request) + return rval @router.get("/api/jobs") def index( diff --git a/lib/galaxy/webapps/galaxy/api/tools.py b/lib/galaxy/webapps/galaxy/api/tools.py index 3bab12e9889b..1677dd648669 100644 --- a/lib/galaxy/webapps/galaxy/api/tools.py +++ b/lib/galaxy/webapps/galaxy/api/tools.py @@ -133,7 +133,9 @@ def tool_request_state( id: DecodedDatabaseIdField, trans: ProvidesHistoryContext = DependsOnTrans, ) -> str: - return trans.app.model.context.query(ToolRequest).get(id).state + rval = trans.app.model.context.query(ToolRequest).get(id).state + log.info(f"RETURNING STATE OF {rval}") + return rval @router.get( "/api/tools/{tool_id}/inputs",