Skip to content

Commit

Permalink
[Job] Add "no logs available" to status message if no logs available
Browse files Browse the repository at this point in the history
Previously if a job failed with no logs, the status message would just say "Job Failed."

This PR adds the message "No logs available" so the user isn't confused about whether or not there are logs or they should be trying to look for them.

Signed-off-by: Archit Kulkarni <[email protected]>
  • Loading branch information
architkulkarni committed Sep 21, 2023
1 parent df8dd53 commit c717a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/modules/job/job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ async def run(
else:
message = (
"Job entrypoint command "
f"failed with exit code {return_code}"
f"failed with exit code {return_code}. No logs available."
)
await self._job_info_client.put_status(
self._job_id, JobStatus.FAILED, message=message
Expand Down

0 comments on commit c717a3f

Please sign in to comment.