arvados-cli 0.1.20131210143944 → 0.1.20131212092848
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 +4 -4
- data/bin/crunch-job +14 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36df8ebef84cf051f379ac5a6a6b5af046c05f56
|
4
|
+
data.tar.gz: 4ce7491264c103239c91fe32ce0ebebb0d2b65a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d128b81c73238652be314df89814fad01ea2ed01af72d4707994480bcf45faa46ba549749b97df3debe6ff703b85022b35b584832ad3fa5153396d49a27a9428
|
7
|
+
data.tar.gz: 403f2e4d70b2c565d22b07fbeca1a221ae6b77a72254cf10a6e90449aafb43714bc6613eeeab2baef42b1408c47cc2273415b3098cd109171e805e421d57a2ec
|
data/bin/crunch-job
CHANGED
@@ -120,9 +120,7 @@ $SIG{'USR2'} = sub
|
|
120
120
|
|
121
121
|
|
122
122
|
my $arv = Arvados->new;
|
123
|
-
my $metastream
|
124
|
-
$metastream->clear;
|
125
|
-
$metastream->write_start('log.txt');
|
123
|
+
my $metastream;
|
126
124
|
|
127
125
|
my $User = $arv->{'users'}->{'current'}->execute;
|
128
126
|
|
@@ -167,6 +165,10 @@ else
|
|
167
165
|
}
|
168
166
|
$job_id = $Job->{'uuid'};
|
169
167
|
|
168
|
+
$metastream = Warehouse::Stream->new(whc => new Warehouse);
|
169
|
+
$metastream->clear;
|
170
|
+
$metastream->name('.');
|
171
|
+
$metastream->write_start($job_id . '.log.txt');
|
170
172
|
|
171
173
|
|
172
174
|
$Job->{'runtime_constraints'} ||= {};
|
@@ -339,13 +341,13 @@ else
|
|
339
341
|
Log (undef, "Install revision ".$Job->{script_version});
|
340
342
|
my $nodelist = join(",", @node);
|
341
343
|
|
342
|
-
# Clean out crunch_tmp/work
|
344
|
+
# Clean out crunch_tmp/work, crunch_tmp/opt, crunch_tmp/src
|
343
345
|
|
344
346
|
my $cleanpid = fork();
|
345
347
|
if ($cleanpid == 0)
|
346
348
|
{
|
347
349
|
srun (["srun", "--nodelist=$nodelist", "-D", $ENV{'TMPDIR'}],
|
348
|
-
['bash', '-c', 'if mount | grep -q $JOB_WORK/; then sudo /bin/umount $JOB_WORK/* 2>/dev/null; fi; sleep 1; rm -rf $JOB_WORK $CRUNCH_TMP/opt']);
|
350
|
+
['bash', '-c', 'if mount | grep -q $JOB_WORK/; then sudo /bin/umount $JOB_WORK/* 2>/dev/null; fi; sleep 1; rm -rf $JOB_WORK $CRUNCH_TMP/opt $CRUNCH_TMP/src']);
|
349
351
|
exit (1);
|
350
352
|
}
|
351
353
|
while (1)
|
@@ -1166,9 +1168,14 @@ sub save_meta
|
|
1166
1168
|
my $m = $metastream;
|
1167
1169
|
$m = $m->copy if $justcheckpoint;
|
1168
1170
|
$m->write_finish;
|
1169
|
-
my $
|
1171
|
+
my $whc = Warehouse->new;
|
1172
|
+
my $loglocator = $whc->store_block ($m->as_string);
|
1173
|
+
$arv->{'collections'}->{'create'}->execute('collection' => {
|
1174
|
+
'uuid' => $loglocator,
|
1175
|
+
'manifest_text' => $m->as_string,
|
1176
|
+
});
|
1170
1177
|
undef $metastream if !$justcheckpoint; # otherwise Log() will try to use it
|
1171
|
-
Log (undef, "
|
1178
|
+
Log (undef, "log manifest is $loglocator");
|
1172
1179
|
$Job->{'log'} = $loglocator;
|
1173
1180
|
$Job->update_attributes('log', $loglocator) if $job_has_uuid;
|
1174
1181
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arvados-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20131212092848
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arvados Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|
@@ -94,7 +94,7 @@ dependencies:
|
|
94
94
|
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 2.0.3
|
97
|
-
description: This is the Arvados SDK CLI gem, git revision
|
97
|
+
description: This is the Arvados SDK CLI gem, git revision 4a05680dd6991129385046ce646c32e1b595055a
|
98
98
|
email: gem-dev@clinicalfuture.com
|
99
99
|
executables:
|
100
100
|
- arv
|