dynflow 0.8.14 → 0.8.15

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: 10c16849649c62a6f0754fdbde3a7fe85adf36fd
4
- data.tar.gz: 62bf44e0fce93610906a347d46f9573cdb5dee57
3
+ metadata.gz: c5888e45403439f7db59f31b1cd22b345cfc1670
4
+ data.tar.gz: 93c741456f30a692f1b9a2b9ba0e75d311b2eb66
5
5
  SHA512:
6
- metadata.gz: 3b2160f687df87809778801247a9fb3b58001f4c8fa7763f0403c5bd81d2a49d0a84afad33071d70dc799b7f5b4e517311402a4c1eb708c6944d566b8a0bb644
7
- data.tar.gz: b4fbc38656f85f2040015e0c9c5b3099071595badb7e15d59d16da7cfde9e930083688105ef4913c74151d125ce036c0e4e1e580da0c4d92ab3818a3c32e2534
6
+ metadata.gz: 2382def5079b7fb102b66e8fedc78ecec4a67ff727e3ecdb37e6c7452678ef002fb74defaed23c0bfd9a5e10b2b736f4775ac3ad532c26d9de832df3f4ff29c2
7
+ data.tar.gz: 2a1ceda8cc98ddfa53bce347a17e0b11a2199d402b53b956f117672d9d44e1b8ac66783d6566adaf5a5d3c15a37153a5254330370c50da8c9650e69e1704a09a
@@ -55,7 +55,7 @@ module Dynflow
55
55
  paginate(table(:execution_plan), options),
56
56
  options),
57
57
  options[:filters])
58
- data_set.map { |record| load_data(record) }
58
+ data_set.all.map { |record| load_data(record) }
59
59
  end
60
60
 
61
61
  def delete_execution_plans(filters, batch_size = 1000)
@@ -0,0 +1,24 @@
1
+ Sequel.migration do
2
+ affected_tables = [:dynflow_actions, :dynflow_coordinator_records, :dynflow_delayed_plans,
3
+ :dynflow_envelopes, :dynflow_execution_plans]
4
+ up do
5
+ affected_tables.each do |table|
6
+ alter_table(table) do
7
+ if @db.database_type == :mysql
8
+ set_column_type :data, :mediumtext
9
+ end
10
+ end
11
+ end
12
+ end
13
+
14
+ down do
15
+ affected_tables.each do |table|
16
+ alter_table(table) do
17
+ if @db.database_type == :mysql
18
+ set_column_type :data, :text
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+
@@ -1,3 +1,3 @@
1
1
  module Dynflow
2
- VERSION = '0.8.14'
2
+ VERSION = '0.8.15'
3
3
  end
data/lib/dynflow/world.rb CHANGED
@@ -291,7 +291,7 @@ module Dynflow
291
291
  end
292
292
  end
293
293
 
294
- plan.update_state(:paused) unless plan.state == :paused
294
+ plan.update_state(:paused) unless [:paused, :stopped].include?(plan.state)
295
295
  plan.save
296
296
  coordinator.release(execution_lock)
297
297
  unless plan.error?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.14
4
+ version: 0.8.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Necas
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-25 00:00:00.000000000 Z
12
+ date: 2016-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -436,6 +436,7 @@ files:
436
436
  - lib/dynflow/persistence_adapters/sequel_migrations/006_fix_data_length.rb
437
437
  - lib/dynflow/persistence_adapters/sequel_migrations/007_future_execution.rb
438
438
  - lib/dynflow/persistence_adapters/sequel_migrations/008_rename_scheduled_plans_to_delayed_plans.rb
439
+ - lib/dynflow/persistence_adapters/sequel_migrations/009_fix_mysql_data_length.rb
439
440
  - lib/dynflow/round_robin.rb
440
441
  - lib/dynflow/semaphores.rb
441
442
  - lib/dynflow/semaphores/abstract.rb