Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cdk-patterns/serverless
/ add_message
Function
add_message
the-efs-lambda/java/lambda_fns/message_wall.py:18–22 ·
view source on GitHub ↗
(new_message)
Source
from the content-addressed store, hash-verified
16
17
18
def
add_message(new_message):
19
with
open(MSG_FILE_PATH,
'a'
)
as
msg_file:
20
fcntl.flock(msg_file, fcntl.LOCK_EX)
21
msg_file.write(new_message +
"\n"
)
22
fcntl.flock(msg_file, fcntl.LOCK_UN)
23
24
25
def
delete_messages():
Callers
1
lambda_handler
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected