Skip to content

Commit ccbe358

Browse files
committed
Guard against early notifier.
1 parent 29967ff commit ccbe358

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.0.8] - 2021-06-28
2+
3+
- Guard against early notifier.
4+
15
## [0.0.7] - 2021-06-28
26

37
- Fix queue logger.

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
lambda_punch (0.0.7)
4+
lambda_punch (0.0.8)
55
concurrent-ruby
66
rake
77
rb-inotify

lib/lambda_punch/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module LambdaPunch
2-
VERSION = "0.0.7"
2+
VERSION = "0.0.8"
33
end

lib/lambda_punch/worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def initialize(event_payload)
6464
# also ensures any clean up is done. For example, closing file notifications.
6565
#
6666
def call
67-
Timeout.timeout(timeout) { @notifier.process }
67+
Timeout.timeout(timeout) { @notifier.process unless invoked? }
6868
rescue Timeout::Error
6969
logger.error "Worker#call => Function timeout reached."
7070
ensure

0 commit comments

Comments
 (0)