-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
feat(ui): allow to cancel ops #7264
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
Conversation
✅ Deploy Preview for localai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
72598ab to
b6ba65d
Compare
| // Check if error is due to context cancellation | ||
| if errors.Is(err, context.Canceled) { | ||
| // Clean up partial file on cancellation | ||
| removePartialFile(tmpFilePath) |
Check warning
Code scanning / gosec
Errors unhandled Warning
| // Check if error is due to context cancellation | ||
| if errors.Is(err, context.Canceled) { | ||
| // Clean up partial file on cancellation | ||
| removePartialFile(tmpFilePath) |
Check warning
Code scanning / gosec
Errors unhandled Warning
| // Check for cancellation before finalizing | ||
| select { | ||
| case <-ctx.Done(): | ||
| removePartialFile(tmpFilePath) |
Check warning
Code scanning / gosec
Errors unhandled Warning
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Description
This PR fixes #7134 and also displays the size of artifacts being downloaded in the progress
Notes for Reviewers
Signed commits