File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ keywords:
2222 - self-hosted
2323 - portabase
2424license : Apache-2.0
25- version : 1.1.2
25+ version : 1.1.3-rc.1
2626date-released : " 2026-02-16"
Original file line number Diff line number Diff line change 11[package ]
22name = " portabase-agent"
3- version = " 1.1.2 "
3+ version = " 1.1.3-rc.1 "
44edition = " 2024"
55
66[dependencies ]
Original file line number Diff line number Diff line change @@ -88,13 +88,10 @@ impl BackupService {
8888
8989 if result. status == "failed" {
9090 error ! ( "Backup failed early for {}" , result. generated_id) ;
91-
9291 let service = BackupService { ctx : ctx. clone ( ) } ;
93-
9492 let _ = service
9593 . send_result ( result, vec ! [ ] , & backup_id)
9694 . await ;
97-
9895 return ;
9996 }
10097
@@ -280,8 +277,12 @@ impl BackupService {
280277 } else {
281278 "failed"
282279 } ;
283- info ! ( "Storage {} uploaded to remote path {:?}" , storage_id, upload_result. remote_file_path) ;
284280
281+ if status != "success" {
282+ return upload_result;
283+ }
284+
285+ info ! ( "Storage {} uploaded to remote path {:?}" , storage_id, upload_result. remote_file_path) ;
285286
286287 let ( remote_path, total_size) = match (
287288 & upload_result. remote_file_path ,
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ impl StorageProvider for S3Provider {
3232 storage : & DatabaseStorage ,
3333 encrypt : Option < bool > ,
3434 ) -> UploadResult {
35+
3536 let Some ( file_path) = result. backup_file else {
3637 return UploadResult {
3738 storage_id : storage. id . clone ( ) ,
@@ -282,8 +283,6 @@ impl StorageProvider for S3Provider {
282283 "Successfully completed multipart upload: {}" ,
283284 remote_file_path
284285 ) ;
285-
286-
287286 UploadResult {
288287 storage_id : storage. id . clone ( ) ,
289288 success : true ,
You can’t perform that action at this time.
0 commit comments