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",