Open augustomen opened 6 years ago
@augustomen Are you overriding the environment variables AWS_ACCESS_KEY_ID
or AWS_SECRET_ACCESS_KEY
anywhere? I ran into this problem a while ago where I was overriding those env vars for access to other AWS services, and then was failing to create other lambda invocations due to not having the values set to the role used to create the invocation you are executing from.
@majackson I had this issue as well - in which case, an error was output. After removing those variables, this is what happened. No errors, but also no work being done.
Context
I have a Python 2.7 Flask app, in which I've set up a call to an async task, which I'd like to run in Lambda. I've made the default implementation with
@task
:However, the task does not run asynchronously at all. I've tried invoking it manually, and this is the result:
It does run synchronously, though:
(Never mind about the timeout.) The only different thing I've done is a VPC configuration so that Zappa can use Elasticache (Redis), but that works perfectly, as you can see.
Expected Behavior
I would expect the task to be ran asynchronously, but the results don't show up in Redis, nor the debug messages in
zappa tail
.Actual Behavior
It seems the task is not called at all; it is simply ignored.
Possible Fix
Could it be because the response is streamed and it's not actually pulled, thus not executing the function? Is this a default implementation?
Steps to Reproduce
The only things I've done:
@task
decorator)verify_addresses("arg1")
Your Environment
zappa_settings.py
: