Skip to content

Commit 9070d8e

Browse files
author
Mohammed Ehab
committed
Handle Interrupts to the Runtime API Http Requests Gracefully and Version Bump to 3.1.3.
1 parent c5cf4de commit 9070d8e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

RELEASE.CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### Jun 10, 2025
2+
`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))
4+
15
### Jun 6, 2025
26
`3.1.2`
37
- Don't Ignore Custom Formatters. ([#49](https://github.com/aws/aws-lambda-ruby-runtime-interface-client/pull/49))

lib/aws_lambda_ric/lambda_server.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ 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."
38+
exit 0
3639
rescue LambdaErrors::InvocationError => e
3740
raise e
3841
rescue StandardError => e

lib/aws_lambda_ric/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module AwsLambdaRIC
4-
VERSION = '3.1.2'
4+
VERSION = '3.1.3'
55
end

0 commit comments

Comments
 (0)