Skip to content

Conversation

@deep1401
Copy link
Member

No description provided.

# Update final progress and success status
self.progress_update(progress_end)

job_data = self.job.get_json_data()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't hit this while testing, but don't the three get_json_data calls have to be run async?

Side note tangential to this PR: I don't actually get why it does the first one twice with different strings and then call get_json data a third time?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay I made it async.
It is present thrice because I had caching issues with some jobs that finished earlier and if you do get json data while the job just saved the json and an update is running, it would just directly return empty json and then the new update would replace job data causing a lot of issues. Calling get json data buffers it a bit and fixed the issue for me

Copy link
Member Author

@deep1401 deep1401 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@dadmobile dadmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking as approved so we can merge when ready. We have failing tests but that's because of the inference version. Our tests were good before that change so we should just check after we release that!

Copy link
Member Author

@deep1401 deep1401 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All tests passed!
Merging now

@deep1401 deep1401 merged commit 9d26a5d into main Jan 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants