-
Notifications
You must be signed in to change notification settings - Fork 402
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
[Test][RayJob] Transition to Complete
if the JobStatus is STOPPED
#1871
Conversation
Complete
if the JobStatus is STOPPED
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.
LTGM. This is great!
from ray.job_submission import JobSubmissionClient | ||
|
||
print("Sleep 20 seconds to enable the RayJob to transition to RUNNING state") | ||
time.sleep(20) |
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.
Could we pass in submission ID into stop.py and poll the job status until it's RUNNING?
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 agree. Or could we even delete the sleep entirely? Isn't it be guaranteed to be RUNNING at the time this Python code is being executed?
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.
RUNNING here refers to JobDeploymentStatus rather than JobStatus.
Isn't it be guaranteed to be RUNNING at the time this Python code is being executed?
JobStatus
guaranteed to be RUNNING at the time this Python code is being executed. That's why I said "RayJob transition to RUNNING state" instead of "Ray job".
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 see, thanks for clarifying. Sleeping in a test isn't ideal but I don't know a better way right now
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.
Yes, we don't have a method to know the JobDeploymentStatus without implementing some RBAC configurations.
Why are these changes needed?
This is the test for #1855.
Related issue number
Closes #1866
Checks