Skip to content

Commit 2a6f59c

Browse files
author
Mohammed Ehab
committed
Handle all signal exceptions
1 parent 9070d8e commit 2a6f59c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

RELEASE.CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Jun 10, 2025
22
`3.1.3`
3-
- Handle Interrupts to the Runtime API Http Requests Gracefully and Version Bump to 3.1.3. ([#50](https://github.com/aws/aws-lambda-ruby-runtime-interface-client/pull/50))
3+
- Handle Signal Exceptions during Runtime API Http Requests Gracefully and Version Bump to 3.1.3 ([#50](https://github.com/aws/aws-lambda-ruby-runtime-interface-client/pull/50))
44

55
### Jun 6, 2025
66
`3.1.2`

lib/aws_lambda_ric/lambda_server.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def next_invocation
3333
"Received #{resp.code} when waiting for next invocation."
3434
)
3535
end
36-
rescue Interrupt
37-
puts "Next invocation HTTP request from the runtime interface client was interrupted, gracefully shutting down."
36+
rescue SignalException => sig
37+
puts "Next invocation HTTP request from the runtime interface client was interrupted with a #{sig} SIGNAL, gracefully shutting down."
3838
exit 0
3939
rescue LambdaErrors::InvocationError => e
4040
raise e

0 commit comments

Comments
 (0)