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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/arv-run-pipeline-instance +23 -10
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ebc834ac4efeb562f01beeb994c1b599f6f8f8d
4
- data.tar.gz: 16a45c0a08794cb09cc473c6772725a3317dd919
3
+ metadata.gz: 00e797969da0fa5d629cdddbdd03465bf1c2f06e
4
+ data.tar.gz: 071e35af30962776b9f6554e821a6651b770ee33
5
5
  SHA512:
6
- metadata.gz: 292ebcad2872ae49e78b920bf73974f778975c43e316470f6d8ef30b9fa1004eb197652329b1c90f6158db319f3e4f7b57c1266f4d325056434c487e06e7aa4c
7
- data.tar.gz: 14068afee1bd98fc6042bb60f158afa4a2283d835eff77e6331f0455d2de0f15d3b278d000f7927809b3ec2bea5bcf08a120c80511a3d8535750467b27488e3c
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 $options[:submit]
458
- @instance ||= PipelineInstance.
459
- create(:components => @components,
460
- :pipeline_template_uuid => @template[:uuid],
461
- :state => 'New')
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 ||= PipelineInstance.
464
- create(:components => @components,
465
- :pipeline_template_uuid => @template[:uuid],
466
- :state => 'RunningOnClient')
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 => !(@options[:no_reuse] || c[:nondeterministic]),
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.20140808173203
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-08 00:00:00.000000000 Z
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 381926c94a3b41d04101f68ec6a33e88fc795254
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