Skip to content

Commit 80e9be3

Browse files
authored
Fix issue with long debugging sessions causing events to be retried (#2072)
1 parent 61c05b6 commit 80e9be3

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"Projects": [
3+
{
4+
"Name": "Amazon.Lambda.TestTool",
5+
"Type": "Patch",
6+
"ChangelogMessages": [
7+
"Fix issue with long debugging sessions causing events to be retried"
8+
]
9+
}
10+
]
11+
}

Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/Services/LambdaClient.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ private IAmazonLambda CreateClient(string endpoint)
3434
{
3535
var config = new AmazonLambdaConfig
3636
{
37-
ServiceURL = endpoint
37+
ServiceURL = endpoint,
38+
39+
// Turn of retries since the calls we are making are locally and we don't want retry happening while waiting for debugging.
40+
MaxErrorRetry = 0,
41+
42+
// Set to infinite to allow debugging without timeouts causing retrigger of events
43+
Timeout = Timeout.InfiniteTimeSpan
3844
};
3945
return new AmazonLambdaClient(
4046
new Amazon.Runtime.BasicAWSCredentials("accessKey", "secretKey"),

0 commit comments

Comments
 (0)