8000 Make sync/async Lambda event sources configurable by whummer · Pull Request #2521 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

Make sync/async Lambda event sources configurable #2521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jun 10, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor
  • Loading branch information
whummer committed Jun 6, 2020
commit 560f95e5c21640e59d81e880fdc686fc60929b92
4 changes: 2 additions & 2 deletions localstack/services/awslambda/lambda_executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def execute(self, func_arn, func_details, event, context=None, version=None,
def do_execute(*args):

@cloudwatched('lambda')
def _run(func_arn):
def _run(func_arn=None):
# set the invocation time in milliseconds
invocation_time = int(time.time() * 1000)
# start the execution
Expand All @@ -127,7 +127,7 @@ def _run(func_arn):
# return final result
return result

return _run(func_arn)
return _run(func_arn=func_arn)

# Inform users about asynchronous mode of the lambda execution.
if asynchronous:
Expand Down
4 changes: 1 addition & 3 deletions tests/integration/test_events.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# -*- coding: utf-8 -*-
import os
import json
import unittest
import uuid

import unittest
from localstack import config

from localstack.services.awslambda.lambda_api import LAMBDA_RUNTIME_PYTHON36
from localstack.services.events.events_listener import EVENTS_TMP_DIR
from localstack.services.generic_proxy import ProxyListener
Expand Down
0