fluere 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/lib/fluere.rb +13 -5
  3. data/lib/fluere/version.rb +1 -1
  4. metadata +16 -27
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 18625fba32778434e54b9452252b283d48c5ed42
4
+ data.tar.gz: 69ae1de87fd902187f4897f64ddb9d04c394f2f8
5
+ SHA512:
6
+ metadata.gz: bafbd8c87560fa84fc9775b4464ad3e2de8dbc8f671eebf01c744a0f33def7bf6049e0a74dfd49ac186e11c8c0dc2dcce8b6baaf85929a17d8251f31c4db85d3
7
+ data.tar.gz: 2216b913950da84990f2d49dcce2e532d12ef8e0afc2773f6b35443bab0e9269f9cd99862631e4c1ceff445496114588330b0bed8f44e12f8b74c26759691a11
@@ -41,30 +41,38 @@ module Fluere
41
41
 
42
42
  def self.default_workflow_options
43
43
  {
44
- default_execution_start_to_close_timeout: 60 * 2,
45
- default_task_start_to_close_timeout: 60 * 2,
44
+ default_execution_start_to_close_timeout: 60 * 60 * 2,
45
+ default_task_start_to_close_timeout: 60 * 60 * 2,
46
46
  default_child_policy: :terminate,
47
47
  }
48
48
  end
49
49
 
50
50
  def self.default_activity_options
51
51
  {
52
- default_task_schedule_to_close_timeout: 60 * 2,
53
- default_task_schedule_to_start_timeout: 60 * 2,
54
- default_task_start_to_close_timeout: 60 * 2,
52
+ default_task_schedule_to_close_timeout: 60 * 60 * 2,
53
+ default_task_schedule_to_start_timeout: 60 * 60 * 2,
54
+ default_task_start_to_close_timeout: 60 * 60 * 2,
55
55
  }
56
56
  end
57
57
 
58
58
  def self.start_execution(klass, *args)
59
59
  if stubbed?
60
60
  if perform_executions?
61
+ info("Performing a stubbed execution, calling #{klass} decider block with args: #{args.inspect}")
61
62
  klass.decider_class.new.send(Fluere::Workflow::EXECUTION_METHOD, *args)
63
+ else
64
+ info("Skipped workflow execution for #{klass}")
62
65
  end
63
66
  else
67
+ info("Requesting a workflow execution for #{klass}")
64
68
  klass.workflow_client.start_execution(*args)
65
69
  end
66
70
  end
67
71
 
72
+ def self.info(msg)
73
+ Fluere::Config.logger.info(msg)
74
+ end
75
+
68
76
  def self.flush!
69
77
  domain.workflow_executions.with_status(:open).map { |we| we.terminate }
70
78
  end
@@ -1,3 +1,3 @@
1
1
  module Fluere
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,78 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Paul Hinze
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-13 00:00:00.000000000 Z
11
+ date: 2014-03-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.3'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: minitest
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '5.0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '5.0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: aws-flow
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  description: A an elegant aws-flow adapter
@@ -82,7 +73,7 @@ executables: []
82
73
  extensions: []
83
74
  extra_rdoc_files: []
84
75
  files:
85
- - .gitignore
76
+ - ".gitignore"
86
77
  - Gemfile
87
78
  - LICENSE.txt
88
79
  - README.md
@@ -100,30 +91,28 @@ files:
100
91
  homepage: ''
101
92
  licenses:
102
93
  - MIT
94
+ metadata: {}
103
95
  post_install_message:
104
96
  rdoc_options: []
105
97
  require_paths:
106
98
  - lib
107
99
  required_ruby_version: !ruby/object:Gem::Requirement
108
- none: false
109
100
  requirements:
110
- - - ! '>='
101
+ - - ">="
111
102
  - !ruby/object:Gem::Version
112
103
  version: '0'
113
104
  required_rubygems_version: !ruby/object:Gem::Requirement
114
- none: false
115
105
  requirements:
116
- - - ! '>='
106
+ - - ">="
117
107
  - !ruby/object:Gem::Version
118
108
  version: '0'
119
109
  requirements: []
120
110
  rubyforge_project:
121
- rubygems_version: 1.8.23
111
+ rubygems_version: 2.2.0
122
112
  signing_key:
123
- specification_version: 3
113
+ specification_version: 4
124
114
  summary: A wrapper around aws-flow that makes it easier to work with
125
115
  test_files:
126
116
  - test/fluere/activity_test.rb
127
117
  - test/fluere/workflow_test.rb
128
118
  - test/test_helper.rb
129
- has_rdoc: