-
Notifications
You must be signed in to change notification settings - Fork 6.5k
[core] Returning a useful message when trying to get logs for a job that has not started yet #53174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
has not been started yet. Signed-off-by: irabbani <irabbani@anyscale.com>
@@ -145,8 +145,13 @@ async def _resolve_job_filename(self, sub_job_id: str) -> Tuple[str, str]: | |||
logger.info(f"Submission job ID {sub_job_id} not found.") | |||
return None, None | |||
|
|||
node_id = job_info.driver_node_id | |||
node_id = target_job.driver_node_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qq: was this fixing a bug? does it make sense to write a quick unittest for this function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How's this intended to be consumed? Job CLI, REST API, dashboard? (or all of the above)
if target_job.status == JobStatus.PENDING: | ||
raise ValueError( | ||
f"Job {sub_job_id} is still {JobStatus.PENDING}." | ||
"Since it has not started yet, there are no logs available yet." | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this will result in a 500
internal server error (which is not ideal)
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
[core] Returning a useful message when trying to get logs for a job that has not been started yet.
This was reported by an OSS user.