arvados-cli 0.1.20151125183724 → 0.1.20151201170326

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 +6 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d32481a59099873345949689584d8a5cc1d87633
4
- data.tar.gz: 464a0137b6f1bda89eb4cc455e286a4df0af2eca
3
+ metadata.gz: afbf91ba88b245cb4f61dd90de2ada024c0580de
4
+ data.tar.gz: d8688c417704b4cd9d127d58ac3e146970d76824
5
5
  SHA512:
6
- metadata.gz: 9aa9bcfd65096c81033843eb0f36591d7c18184aede5ee88149a9704a60365cc8a3e8354fe2132e3f3c00d366d1f06ce6a155e3989638b7cfe5ee28ec6b853a9
7
- data.tar.gz: c23b9715c930cc19b18f3d226922cf4fcde5ff0e67cd2800463edae8bab62da7f31e95f617b326336e0f89a9922f91d2f41fc4527f31797ea3ae7f5876ccbf7e
6
+ metadata.gz: cc51a30a250d2c7ae49b002b978ebad08f740b3e1fa8cd21c05372ffd2fa3e942b8315b7d6da9b0c068ab3a8acea8bd522ab3c072669c10f587a26181e4fdf46
7
+ data.tar.gz: 8570166f5a5ee09c1885b3e76d2dc20a28d0c83c987195a659a590d1e6243b7c888de9faec024d136fb958b33ff4ab4da8e7f16d1fd468dc4d260d4d63f5c6a4
data/bin/crunch-job CHANGED
@@ -886,6 +886,11 @@ for (my $todo_ptr = 0; $todo_ptr <= $#jobstep_todo; $todo_ptr ++)
886
886
 
887
887
  my $stdbuf = " stdbuf --output=0 --error=0 ";
888
888
 
889
+ my $arv_file_cache = "";
890
+ if (defined($Job->{'runtime_constraints'}->{'keep_cache_mb_per_task'})) {
891
+ $arv_file_cache = "--file-cache=" . ($Job->{'runtime_constraints'}->{'keep_cache_mb_per_task'} * 1024 * 1024);
892
+ }
893
+
889
894
  my $command =
890
895
  "if [ -e $ENV{TASK_WORK} ]; then rm -rf $ENV{TASK_WORK}; fi; "
891
896
  ."mkdir -p $ENV{CRUNCH_TMP} $ENV{JOB_WORK} $ENV{TASK_WORK} $ENV{TASK_KEEPMOUNT} "
@@ -896,7 +901,7 @@ for (my $todo_ptr = 0; $todo_ptr <= $#jobstep_todo; $todo_ptr ++)
896
901
  .q{&& SWAP=$(awk '($1 == "SwapTotal:"){print $2}' </proc/meminfo) }
897
902
  ."&& MEMLIMIT=\$(( (\$MEM * 95) / ($ENV{CRUNCH_NODE_SLOTS} * 100) )) "
898
903
  ."&& let SWAPLIMIT=\$MEMLIMIT+\$SWAP ";
899
- $command .= "&& exec arv-mount --by-pdh --crunchstat-interval=10 --allow-other $ENV{TASK_KEEPMOUNT} --exec ";
904
+ $command .= "&& exec arv-mount --by-pdh --crunchstat-interval=10 --allow-other $arv_file_cache $ENV{TASK_KEEPMOUNT} --exec ";
900
905
  if ($docker_hash)
901
906
  {
902
907
  my $containername = "$Jobstep->{arvados_task}->{uuid}-$Jobstep->{failures}";
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.20151125183724
4
+ version: 0.1.20151201170326
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-11-25 00:00:00.000000000 Z
11
+ date: 2015-12-01 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 593ed179715e007763a027919b38b69b8bb7d59d
181
+ description: Arvados command line tools, git commit 8788c145b860e19a1f04c4dc6abdcda14c859403
182
182
  email: gem-dev@curoverse.com
183
183
  executables:
184
184
  - arv