arvados-cli 0.1.20140807091031 → 0.1.20140807104453

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/crunch-job +6 -12
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5200cc56998342a2cc719353914a4999949c3212
4
- data.tar.gz: 464e8f1e7022630a2576103fa0e589c45ab0de21
3
+ metadata.gz: e5f65f6826fa5e12412a470529847109299b5741
4
+ data.tar.gz: 2b64b8247f2896bf8226df2c3326adaec1ed15e6
5
5
  SHA512:
6
- metadata.gz: ae828cf1c51871193593216ce04111087a0a2280a55099fef76b16b5fd8c0325fd073fd1504300949348d2ffffb439c703b20d2a3699b97e5e7443f0e4b07167
7
- data.tar.gz: a0d773fe39c9a0a0076436a814000dcb1c56693c80b7b3c570c12c1806bb285bb318b4b3f3ce02500f37c7e6471dfa868f6317a60db5df70e4ca5d69dcfa9b6e
6
+ metadata.gz: ecade87cc0ce01e93c1516a71b6e140bead5194e8b9eb1e1dc5ae458b96182320469272b9a83da1067a3e3df93ee4475134ab2590cd812e20131c33bad64a76c
7
+ data.tar.gz: f6898f925a1f1ec9be6c6c69dc715ede9763154bce049d3a14dba79b94e7e90d048e02d29e113ad7ee6b1d3c8b8d2679e3ecb907f8f05aa34e49911b12e2a94e
data/bin/crunch-job CHANGED
@@ -834,8 +834,10 @@ if ($job_has_uuid) {
834
834
  'finished_at' => scalar gmtime)
835
835
  }
836
836
 
837
- if ($collated_output)
838
- {
837
+ if (!$collated_output) {
838
+ Log(undef, "output undef");
839
+ }
840
+ else {
839
841
  eval {
840
842
  open(my $orig_manifest, '-|', 'arv-get', $collated_output)
841
843
  or die "failed to get collated manifest: $!";
@@ -858,7 +860,8 @@ if ($collated_output)
858
860
  'uuid' => md5_hex($stripped_manifest_text),
859
861
  'manifest_text' => $orig_manifest_text,
860
862
  });
861
- $Job->update_attributes('output' => $output->{uuid});
863
+ Log(undef, "output " . $output->{uuid});
864
+ $Job->update_attributes('output' => $output->{uuid}) if $job_has_uuid;
862
865
  if ($Job->{'output_is_persistent'}) {
863
866
  $arv->{'links'}->{'create'}->execute('link' => {
864
867
  'tail_kind' => 'arvados#user',
@@ -1244,15 +1247,6 @@ sub collate_output
1244
1247
  }
1245
1248
  waitpid($pid, 0);
1246
1249
 
1247
- if ($joboutput)
1248
- {
1249
- Log (undef, "output $joboutput");
1250
- $Job->update_attributes('output' => $joboutput) if $job_has_uuid;
1251
- }
1252
- else
1253
- {
1254
- Log (undef, "output undef");
1255
- }
1256
1250
  return $joboutput;
1257
1251
  }
1258
1252
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvados-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20140807091031
4
+ version: 0.1.20140807104453
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
@@ -166,7 +166,7 @@ dependencies:
166
166
  - - "<"
167
167
  - !ruby/object:Gem::Version
168
168
  version: 1.0.0
169
- description: This is the Arvados SDK CLI gem, git revision 862a1fd23f072b7107595755996fc2ec1c62162b
169
+ description: This is the Arvados SDK CLI gem, git revision 1d1069684c35353f9f0ee4020b76f5dfc7406a47
170
170
  email: gem-dev@curoverse.com
171
171
  executables:
172
172
  - arv