gradio-app/gradio

Refactor backend cancelling logic

Opened this issue · 0 comments

  • I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.

See this comment by @aliabid94

#8260 (review)

Describe the solution you'd like
Now that we keep track of of which BlockFns cancel events via the is_cancel_fn prop, I think we can modify the front end logic to send a request to the /cancel endpoint directly.

Additional context
Add any other context or screenshots about the feature request here.