Skip to content

Commit

Permalink
Fix the Lambda handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Pryz committed May 9, 2024
1 parent 0a48249 commit 5f64a34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dispatch/experimental/lambda_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def __init__(
"""

super().__init__(endpoint="not configured", api_key=api_key, api_url=api_url)
# We use a fake endpoint to initialize the base class. The actual endpoint (the Lambda ARN)
# is only known when the handler is invoked.
super().__init__(endpoint="http://lambda", api_key=api_key, api_url=api_url)

def handle(
self, event: str, context: LambdaContext, entrypoint: Optional[str] = None
Expand Down

0 comments on commit 5f64a34

Please sign in to comment.