arvados-cli 0.1.20140808173203 → 0.1.20140811105915
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/arv-run-pipeline-instance +23 -10
- 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: 00e797969da0fa5d629cdddbdd03465bf1c2f06e
|
4
|
+
data.tar.gz: 071e35af30962776b9f6554e821a6651b770ee33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98658c50eff22505e3eab8e98933ba16ffad4b207f59d0d980f58b21df8ee8a4f5e6f01436e47265d9b493e35fe27f51129b7cbf5dc3530e51e5f31f18474846
|
7
|
+
data.tar.gz: 314ed284d5966bc3e00a146e0fb205519bbea647442a6357463cd827b0c8671415cf8d57152d819f055cfaa3b6e86bccc997b9a0f547f02cc16e2370948ef0e5
|
@@ -454,16 +454,28 @@ class WhRunPipelineInstance
|
|
454
454
|
end
|
455
455
|
|
456
456
|
def setup_instance
|
457
|
-
if
|
458
|
-
@instance ||=
|
459
|
-
|
460
|
-
|
461
|
-
|
457
|
+
if @instance
|
458
|
+
@instance[:properties][:run_options] ||= {}
|
459
|
+
if @options[:no_reuse]
|
460
|
+
# override properties of existing instance
|
461
|
+
@instance[:properties][:run_options][:enable_job_reuse] = false
|
462
|
+
else
|
463
|
+
# Default to "enable reuse" if not specified. (This code path
|
464
|
+
# can go away when old clients go away.)
|
465
|
+
if @instance[:properties][:run_options][:enable_job_reuse].nil?
|
466
|
+
@instance[:properties][:run_options][:enable_job_reuse] = true
|
467
|
+
end
|
468
|
+
end
|
462
469
|
else
|
463
|
-
@instance
|
464
|
-
create(:
|
465
|
-
|
466
|
-
|
470
|
+
@instance = PipelineInstance.
|
471
|
+
create(components: @components,
|
472
|
+
properties: {
|
473
|
+
run_options: {
|
474
|
+
enable_job_reuse: !@options[:no_reuse]
|
475
|
+
}
|
476
|
+
},
|
477
|
+
pipeline_template_uuid: @template[:uuid],
|
478
|
+
state: ($options[:submit] ? 'New' : 'RunningOnClient'))
|
467
479
|
end
|
468
480
|
self
|
469
481
|
end
|
@@ -503,7 +515,8 @@ class WhRunPipelineInstance
|
|
503
515
|
# dealing with new API servers.
|
504
516
|
:minimum_script_version => c[:minimum_script_version],
|
505
517
|
:exclude_script_versions => c[:exclude_minimum_script_versions],
|
506
|
-
:find_or_create =>
|
518
|
+
:find_or_create => (@instance[:properties][:run_options].andand[:enable_job_reuse] &&
|
519
|
+
!c[:nondeterministic]),
|
507
520
|
:filters => c[:filters]
|
508
521
|
})
|
509
522
|
if job
|
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.20140811105915
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arvados Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: arvados
|
@@ -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
|
169
|
+
description: This is the Arvados SDK CLI gem, git revision cedd2b046ddf4d2f819a4d1dedbbe82d4e70e72d
|
170
170
|
email: gem-dev@curoverse.com
|
171
171
|
executables:
|
172
172
|
- arv
|