-
Notifications
You must be signed in to change notification settings - Fork 9
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
backend: Refresh job status #451
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpoulopoulos
force-pushed
the
382-job-status-endpoint
branch
from
November 28, 2024 15:15
baf16c3
to
92ed207
Compare
github-actions
bot
added
the
schemas
Changes to schemas (which may be public facing)
label
Nov 28, 2024
dpoulopoulos
force-pushed
the
382-job-status-endpoint
branch
2 times, most recently
from
November 29, 2024 12:15
76f2d15
to
f94fb20
Compare
dpoulopoulos
added
bug
Something isn't working
api
Changes which impact API/presentation layer
and removed
schemas
Changes to schemas (which may be public facing)
labels
Nov 29, 2024
dpoulopoulos
force-pushed
the
382-job-status-endpoint
branch
from
November 29, 2024 13:29
f94fb20
to
00f483a
Compare
github-actions
bot
added
the
schemas
Changes to schemas (which may be public facing)
label
Nov 29, 2024
dpoulopoulos
force-pushed
the
382-job-status-endpoint
branch
from
November 29, 2024 13:31
00f483a
to
9d2e26f
Compare
aittalam
reviewed
Nov 29, 2024
lumigator/python/mzai/backend/backend/tests/unit/api/routes/test_jobs.py
Outdated
Show resolved
Hide resolved
aittalam
reviewed
Nov 29, 2024
lumigator/python/mzai/backend/backend/tests/unit/api/routes/test_jobs.py
Show resolved
Hide resolved
aittalam
reviewed
Nov 29, 2024
aittalam
approved these changes
Nov 29, 2024
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.
Thanks Dimitris! I added a few comments but after addressing them this LGTM 👍
dpoulopoulos
force-pushed
the
382-job-status-endpoint
branch
2 times, most recently
from
November 29, 2024 15:39
cbf856f
to
edd5051
Compare
The `/jobs` endpoint can return the status of a specific Ray job, but this status is not updated beyond "created". Optionally refresh the database record before returning: * Immediately return statuses "Succeeded" and "Failed" because they cannot change. * Otherwise, consult Ray first, and if the status differs from the one in the DB, update the DB and return the updated record. Refs #382 Signed-off-by: Dimitris Poulopoulos <[email protected]>
When a new job is created, the initial status in the database is set to "created." Verify that the status stored in the database matches the status of the job returned by Ray. Closes #382 Signed-off-by: Dimitris Poulopoulos <[email protected]>
dpoulopoulos
force-pushed
the
382-job-status-endpoint
branch
from
November 29, 2024 15:40
edd5051
to
53c2ccb
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's changing
The
/jobs
endpoint can return the status of a specific Ray job, but this status is not updated beyond "created".Optionally refresh the database record before returning:
Closes #382
How to test it
I already...