-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[Feature request] Gradio provide probability to restore previous task session (by something like task id), so server and client don't require connection keeping alive #6471
Comments
Hi @garywill can you please provide a repro for us to investigate this issue? |
I think the point is, gradio server should give the client a job id when it receive a request from client. Later client can fetch result using the job id. Currently:
|
Hi @garywill sorry for the long delay. I've just been tackling some issues related to the client and came across this. I suspect that this may have been solved when we migrated from websockets to SSE but am not sure. Do you know what versions of Gradio / Gradio Client you were using? Are you still facing this issue? |
Hi @abidlabs , thank you for replying. Sorry I didn't make my self clear. I was filing a feature request: Gradio provide probability to restore previous "task session" (by something like "task id" machanism), so server and client don't require connection keeping alive. After seeing your reply I upgrade to latest gradio-4.21.0 and gradio_client-0.12.0 ,
Apparently client quickly exited and throw error. And there's no way to restore the broken "task session". Because there's no "task id" machanism currently. |
Is your feature request related to a problem? Please describe.
Sometimes we have slow or unsteady Internet.
And have tasks that need CPU&GPU long time (10 hr) to be done on huggingface.
I've encountered network break many times using python gradio_client.
The network break can be caused by ISP or any reason, which gradio can't control.
Cause we're running long-time task, our server and client code should take that into account.
After network recovery, I open huggingface space on web. I see from the web log that the task still going on and succuessfully finished. But the gradio client can't download the result just because a 5 minutes network break.
Describe the solution you'd like
Gradio provide probability to restore previous "task session" (by something like "task id" machanism), so client can download result.
(I'm not talking about gradio improving code to keep connection alive or prevent network break. Internet unsteady is what we can't control. ISP can cut our connection anytime, if we're trying to run a 10-hour task)
Additional context
The text was updated successfully, but these errors were encountered: