If you cancel a job with the client, it will keep running on the remote server.
I think the reason is that cancel will only tell the thread that's pulling results off the queue that it should stop. It won't stop the thread that's connecting to the server.
Have you searched existing issues? 🔎
[X] I have searched and found no existing issues
Reproduction
Run the cancel_events demo (increase the sleep to 1 second so that you have time to cancel)
Describe the bug
If you cancel a job with the client, it will keep running on the remote server.
I think the reason is that
cancel
will only tell the thread that's pulling results off the queue that it should stop. It won't stop the thread that's connecting to the server.Have you searched existing issues? 🔎
Reproduction
Run the
cancel_events
demo (increase the sleep to 1 second so that you have time to cancel)You will see that the server keeps printing output in the console
Screenshot
Logs
No response
System Info
Severity
Blocking usage of gradio