cellect-server 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2fd01693d0abe2d137316032e720b4ad598c6d5
4
- data.tar.gz: 350b69704e5f4cf36494886dd85519c9aa240db4
3
+ metadata.gz: 2329c741f3e1c93571991a828999c115ffd4d052
4
+ data.tar.gz: 55c3766d563da3f902dde9b2a18557d3d99d26b7
5
5
  SHA512:
6
- metadata.gz: 4ee18d0d8a9607bac3885fa346f4f89022b219267a415432de47e2184add940d6e590559ae938acdaaf0834299c528a50e128db7a47239f02e1b603e7a00d9ac
7
- data.tar.gz: 63503240c63a1426cd628fe768fb623164803f24ed161b9bd1fe250cf831959ab56286500e401111a301c298b8a1310f7fe0b1c7168906f660899e6195c569a0
6
+ metadata.gz: bc5f12c17737323843881ce4bd8e53b730ee5a896feef7909a849fed5ab85b1bebda409b4e0cc5a683359da303cda75491cfa0a3773a0636e299643c76ee5abb
7
+ data.tar.gz: 3cb690279afa355a07034cf45519d3f7faa58f399b663fc6f197622f02fe60844d25bb3f3fe01aba4ae09dedff16a0a4e5fc4c14bc3667a61904bfa4fd832920
@@ -57,7 +57,8 @@ module Cellect
57
57
 
58
58
  def workflow_for(opts = { })
59
59
  workflow_klass = opts.fetch('grouped', false) ? GroupedWorkflow : Workflow
60
- workflow_klass[opts['name']] = opts
60
+ workflow_klass[opts['name']] = opts
61
+ workflow_klass[opts['name']].load_data
61
62
  workflow_klass[opts['name']]
62
63
  end
63
64
  end
@@ -21,7 +21,7 @@ module Cellect
21
21
  {
22
22
  memory: usage.call('%mem'),
23
23
  cpu: usage.call('%cpu'),
24
- instance: instance.id,
24
+ instance: instance.try(:id),
25
25
  status: Cellect::Server.adapter.status.merge({
26
26
  workflows_ready: Cellect::Server.ready?,
27
27
  workflows: Workflow.all.map(&:status)
@@ -42,7 +42,6 @@ module Cellect
42
42
  self.pairwise = !!pairwise
43
43
  self.prioritized = !!prioritized
44
44
  self.subjects = set_klass.new
45
- load_data
46
45
  end
47
46
 
48
47
  # Loads subjects from the adapter
@@ -1,3 +1,3 @@
1
1
  module Cellect
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cellect-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Parrish
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-11 00:00:00.000000000 Z
11
+ date: 2016-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler