cnvrg 1.5.8 → 1.5.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bb929c39052ccbc263adada639b4fd21f763dbc8a35b6a0c8dffa104f45b1fc
4
- data.tar.gz: 5d5cac1aa19c0bee6b63efd1168146d7ffb243de7dfb7e57147f8d0ae3465982
3
+ metadata.gz: 72f32f689230c745d3b074b5c5cca03f8215e5b334a4b0f8b59268dcb534dfc5
4
+ data.tar.gz: 60f32fdcede705e8a33b878f49ab9917ed9708780704d90934b38667016d426d
5
5
  SHA512:
6
- metadata.gz: 9816c45ef55dbf0d158384f484d1e65fe5aa67003f9e91080c9f6347ea88e9cf4a9fc00318605a214fc7765e6e3161b0bd64be47031547ef6dfb2aa14f6fffaa
7
- data.tar.gz: b267a3a3a0b3617848ce928eb970dd8a7914c9a1470826977a7a5e2d24505eedaf65a0a172701b7ebe0718c426b4d1a088c4138af6bed1e796456551e246243f
6
+ metadata.gz: bcf3622b7469a02697579bf741370d2245d9b45bd7f62a898b272d43d90cbb992364ea4d1d2140d2eee7be080c32aecc20faec384387689381349fad058c9db2
7
+ data.tar.gz: e2339587f9709a86715b81066b4150090dc649185dc2744133acdc64679436580bb29f75ed9650b7fb88ba8e089448f051baebfb0de115f605e2236cc3ea0378
@@ -973,6 +973,7 @@ module Cnvrg
973
973
  isolation: true
974
974
  }
975
975
  Parallel.map(files["keys"], parallel_options) do |f|
976
+ begin
976
977
  local_path = @dataset.local_path + '/' + f['name']
977
978
  Cnvrg::Logger.log_info("Downloading #{local_path}")
978
979
  progressbar.progress += 1 if progressbar.present?
@@ -981,13 +982,17 @@ module Cnvrg
981
982
  next
982
983
  end
983
984
  # blob
984
- begin
985
- local_path = "#{local_path}.conflict" if conflict
986
- storage_path = f["path"]
987
-
988
- resp = @downloader.download(storage_path, local_path)
989
- Cnvrg::Logger.log_info("Download #{local_path} success resp: #{resp}")
990
- end
985
+ local_path = "#{local_path}.conflict" if conflict
986
+ storage_path = f["path"]
987
+ if File.exists? local_path
988
+ Cnvrg::Logger.log_info("Trying to download #{local_path} but its already exists, skipping..")
989
+ next
990
+ end
991
+ resp = @downloader.download(storage_path, local_path)
992
+ Cnvrg::Logger.log_info("Download #{local_path} success resp: #{resp}")
993
+ rescue => e
994
+ Cnvrg::Logger.log_error(e)
995
+ end
991
996
  end
992
997
  return Cnvrg::Result.new(true,"Downloaded successfully")
993
998
  rescue => e
@@ -1,4 +1,4 @@
1
1
  module Cnvrg
2
- VERSION = '1.5.8'
2
+ VERSION = '1.5.8.1'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cnvrg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.8
4
+ version: 1.5.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yochay Ettun