arvados-cli 0.1.20150227192315 → 0.1.20150316190023

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/crunch-job +5 -4
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fee9adf2c5e05f6708bcac31dde6f59bf2fe0247
4
- data.tar.gz: 32b1e5d39a1e99b697efdb7c4a46f071c241ef4c
3
+ metadata.gz: 588401acaf0d304d733e96d273fcdd9aa2784d23
4
+ data.tar.gz: b9b21e337625de3d064ec0d10176e9f8ba47b02d
5
5
  SHA512:
6
- metadata.gz: a53ba2e71b329d22e97800f5aca9bd765f63e4155d17c4ca1883b0939dbc411a29591fa33fee741c04975b9ee4533a3b2ab0bd8814f237e29b549e32f49639e6
7
- data.tar.gz: aab8e8575cb748acb045b39ad2d24ba0ef503468e3a503c3529fc98eb21ea44334dfc8a22eecc3615649af496b40142ad03661386c3cba4746ea8c7db5ff5966
6
+ metadata.gz: 762e7cfdeb67a3e7d32218626b8c63f68a566ea04321b3770e99f1c5928fc05e88c942f6160e6f735a817b81b74f8607a918313c384de01c8464aa533d5f428c
7
+ data.tar.gz: c7bdb2e8c86a07f38574f784e7d703df0da4c0fceac9d56a2a23590dc8aae960a0b1613509542ae7d0a08ecc098fdc13d4136d1c2c76edc691bae86aae62ed9d
data/bin/crunch-job CHANGED
@@ -361,7 +361,7 @@ if (!defined $no_clear_tmp) {
361
361
  # TODO: When #5036 is done and widely deployed, we can get rid of the
362
362
  # regular expression and just unmount everything with type fuse.keep.
363
363
  srun (["srun", "--nodelist=$nodelist", "-D", $ENV{'TMPDIR'}],
364
- ['bash', '-ec', 'mount -t fuse,fuse.keep | awk \'($3 ~ /\ykeep\y/){print $3}\' | xargs -r -n 1 fusermount -u -z; sleep 1; rm -rf $JOB_WORK $CRUNCH_INSTALL $CRUNCH_TMP/task $CRUNCH_TMP/src*']);
364
+ ['bash', '-ec', 'mount -t fuse,fuse.keep | awk \'($3 ~ /\ykeep\y/){print $3}\' | xargs -r -n 1 fusermount -u -z; sleep 1; rm -rf $JOB_WORK $CRUNCH_INSTALL $CRUNCH_TMP/task $CRUNCH_TMP/src* $CRUNCH_TMP/*.cid']);
365
365
  exit (1);
366
366
  }
367
367
  while (1)
@@ -384,7 +384,7 @@ if ($docker_locator = $Job->{docker_image_locator}) {
384
384
  }
385
385
  $docker_stream =~ s/^\.//;
386
386
  my $docker_install_script = qq{
387
- if ! $docker_bin images -q --no-trunc | grep -qxF \Q$docker_hash\E; then
387
+ if ! $docker_bin images -q --no-trunc --all | grep -qxF \Q$docker_hash\E; then
388
388
  arv-get \Q$docker_locator$docker_stream/$docker_hash.tar\E | $docker_bin load
389
389
  fi
390
390
  };
@@ -670,6 +670,7 @@ for (my $todo_ptr = 0; $todo_ptr <= $#jobstep_todo; $todo_ptr ++)
670
670
  my $childslotname = join (".",
671
671
  $slot[$childslot]->{node}->{name},
672
672
  $slot[$childslot]->{cpu});
673
+
673
674
  my $childpid = fork();
674
675
  if ($childpid == 0)
675
676
  {
@@ -721,7 +722,7 @@ for (my $todo_ptr = 0; $todo_ptr <= $#jobstep_todo; $todo_ptr ++)
721
722
  $command .= "&& exec arv-mount --by-id --allow-other $ENV{TASK_KEEPMOUNT} --exec ";
722
723
  if ($docker_hash)
723
724
  {
724
- my $cidfile = "$ENV{CRUNCH_TMP}/$ENV{TASK_UUID}.cid";
725
+ my $cidfile = "$ENV{CRUNCH_TMP}/$Jobstep->{arvados_task}->{uuid}-$Jobstep->{failures}.cid";
725
726
  $command .= "crunchstat -cgroup-root=/sys/fs/cgroup -cgroup-parent=docker -cgroup-cid=$cidfile -poll=10000 ";
726
727
  $command .= "$docker_bin run --rm=true --attach=stdout --attach=stderr --attach=stdin -i --user=crunch --cidfile=$cidfile --sig-proxy ";
727
728
 
@@ -831,7 +832,7 @@ for (my $todo_ptr = 0; $todo_ptr <= $#jobstep_todo; $todo_ptr ++)
831
832
  ||
832
833
  (@slot > @freeslot && $todo_ptr+1 > $#jobstep_todo))
833
834
  {
834
- last THISROUND if $main::please_freeze;
835
+ last THISROUND if $main::please_freeze || defined($main::success);
835
836
  if ($main::please_info)
836
837
  {
837
838
  $main::please_info = 0;
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.20150227192315
4
+ version: 0.1.20150316190023
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-27 00:00:00.000000000 Z
11
+ date: 2015-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arvados
@@ -178,7 +178,7 @@ dependencies:
178
178
  - - "<"
179
179
  - !ruby/object:Gem::Version
180
180
  version: 1.0.0
181
- description: Arvados command line tools, git commit 62fea2a463eb0d8c3aef84a56ba84561a196666b
181
+ description: Arvados command line tools, git commit e3f359d1cf36bca2b675c495fcff0a76a89cbd38
182
182
  email: gem-dev@curoverse.com
183
183
  executables:
184
184
  - arv