Skip to content

Commit 85b97a7

Browse files
committed
Removed sleep and using force_flush mechanism
1 parent 25d8121 commit 85b97a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/sample-apps/function/lambda_function.py

+3
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,8 @@ def lambda_handler(event, context):
5151

5252
print(bucket.name)
5353

54+
print("forcing flush")
55+
provider.force_flush()
56+
print("forced flush")
5457
time.sleep(300)
5558
return {"statusCode": 200, "body": json.dumps(os.environ.get("_X_AMZN_TRACE_ID"))}

0 commit comments

Comments
 (0)