From f6c7c82f2f281ff9f87ea9dc87d6c69ceb1abcf6 Mon Sep 17 00:00:00 2001 From: MrCreosote Date: Mon, 9 Feb 2026 15:20:11 -0800 Subject: [PATCH] Update log endpoint docs to clarify when logs are available --- cdmtaskservice/routes.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cdmtaskservice/routes.py b/cdmtaskservice/routes.py index 4760ba4..f49cd4d 100644 --- a/cdmtaskservice/routes.py +++ b/cdmtaskservice/routes.py @@ -351,7 +351,9 @@ async def get_job_exit_codes( response_class=StreamingResponse, summary="Get a job's stdout logs", description="Get the stdout stream from a job container. " - + "Only the submitting user may view the logs." + + "Only the submitting user may view the logs.\n\n" + + "Note that only jobs that have gone through the error processing stages will have logs. " + + "If this is the case, the `logpath` field in the job record will be populated." ) async def get_job_stdout( r: Request, @@ -367,7 +369,9 @@ async def get_job_stdout( response_class=StreamingResponse, summary="Get a job's stderr logs", description="Get the stderr stream from a job container. " - + "Only the submitting user may view the logs." + + "Only the submitting user may view the logs.\n\n" + + "Note that only jobs that have gone through the error processing stages will have logs. " + + "If this is the case, the `logpath` field in the job record will be populated." ) async def get_job_stderr( r: Request,