Skip to content

Commit

Permalink
adding some observability for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
voynow committed Aug 25, 2024
1 parent bd08302 commit 3f4497a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Super Duper</title>
<title>TrackFlow 🎯</title>
<style>
body {
font-family: 'Helvetica Neue', Arial, sans-serif;
Expand Down Expand Up @@ -71,7 +71,7 @@
</style>
</head>
<body>
<h1>Super Duper SaaS App</h1>
<h1>TrackFlow 🎯</h1>
<p>Blessed are the meek for they shall inherit the earth.</p>
<button id="getStartedBtn">Get Started</button>
<form id="signupForm">
Expand Down
9 changes: 4 additions & 5 deletions src/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ def core_executor(user: UserRow) -> None:

def lambda_handler(event, context):
"""Main entry point for production workload"""
if event:
print("event received:", event)
# else:
# print("No event received")
[core_executor(user) for user in list_users()]
if event and event.get("email") and event.get("preferences"):
print(f"Triggered lambda with {event=}")
else:
[core_executor(user) for user in list_users()]

0 comments on commit 3f4497a

Please sign in to comment.