aws-flow 1.0.1 → 1.0.2
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.
- data/lib/aws/decider.rb +1 -0
- data/lib/aws/decider/decider.rb +2 -2
- data/lib/aws/decider/version.rb +22 -0
- data/lib/aws/decider/workflow_client.rb +0 -1
- data/lib/aws/decider/workflow_clock.rb +3 -3
- metadata +3 -3
- data/lib/aws-flow.rb +0 -1
data/lib/aws/decider.rb
CHANGED
data/lib/aws/decider/decider.rb
CHANGED
@@ -450,7 +450,7 @@ module AWS
|
|
450
450
|
#
|
451
451
|
# @!visibility private
|
452
452
|
def async_create_timer(delay_seconds, &block)
|
453
|
-
|
453
|
+
task { self.decision_context.workflow_clock.create_timer(delay_seconds, block) }
|
454
454
|
end
|
455
455
|
|
456
456
|
|
@@ -459,7 +459,7 @@ module AWS
|
|
459
459
|
# @param (see #create_timer)
|
460
460
|
#
|
461
461
|
def create_timer_async(delay_seconds, &block)
|
462
|
-
|
462
|
+
task { self.decision_context.workflow_clock.create_timer(delay_seconds, block) }
|
463
463
|
end
|
464
464
|
|
465
465
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License").
|
5
|
+
# You may not use this file except in compliance with the License.
|
6
|
+
# A copy of the License is located at
|
7
|
+
#
|
8
|
+
# http://aws.amazon.com/apache2.0
|
9
|
+
#
|
10
|
+
# or in the "license" file accompanying this file. This file is distributed
|
11
|
+
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
12
|
+
# express or implied. See the License for the specific language governing
|
13
|
+
# permissions and limitations under the License.
|
14
|
+
#++
|
15
|
+
|
16
|
+
module AWS
|
17
|
+
module Flow
|
18
|
+
def self.version
|
19
|
+
"1.0.2"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -75,15 +75,15 @@ module AWS
|
|
75
75
|
open_request = OpenRequestInfo.new
|
76
76
|
open_request.blocking_promise = Future.new
|
77
77
|
if block
|
78
|
-
open_request.result =
|
78
|
+
open_request.result = task do
|
79
79
|
open_request.blocking_promise.get
|
80
80
|
block.call
|
81
81
|
end
|
82
82
|
else
|
83
83
|
open_request.result = open_request.blocking_promise
|
84
84
|
end
|
85
|
-
|
86
|
-
t.
|
85
|
+
external_task do |t|
|
86
|
+
t.initiate_task do |handle|
|
87
87
|
open_request.completion_handle = handle
|
88
88
|
@decision_helper.scheduled_timers[timer_id.to_s] = open_request
|
89
89
|
@decision_helper[timer_id.to_s] = TimerDecisionStateMachine.new(timer_id, attributes)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -54,7 +54,6 @@ files:
|
|
54
54
|
- NOTICE.TXT
|
55
55
|
- Rakefile
|
56
56
|
- aws-flow.gemspec
|
57
|
-
- lib/aws-flow.rb
|
58
57
|
- lib/aws/decider.rb
|
59
58
|
- lib/aws/decider/activity.rb
|
60
59
|
- lib/aws/decider/activity_definition.rb
|
@@ -74,6 +73,7 @@ files:
|
|
74
73
|
- lib/aws/decider/task_handler.rb
|
75
74
|
- lib/aws/decider/task_poller.rb
|
76
75
|
- lib/aws/decider/utilities.rb
|
76
|
+
- lib/aws/decider/version.rb
|
77
77
|
- lib/aws/decider/worker.rb
|
78
78
|
- lib/aws/decider/workflow_client.rb
|
79
79
|
- lib/aws/decider/workflow_clock.rb
|
data/lib/aws-flow.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'aws/decider'
|