Skip to content

Commit

Permalink
Removed sleep and using force_flush mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolazurdo committed Jun 8, 2022
1 parent 25d8121 commit 85b97a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/sample-apps/function/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,8 @@ def lambda_handler(event, context):

print(bucket.name)

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

0 comments on commit 85b97a7

Please sign in to comment.