How to invoke or schedule functions from non wsgi app
manycoding opened this issue · 3 comments
Context
I have some code for automation https://github.com/manycoding/page-followers. I'd like to invoke functions to test from different files. I noticed when I run zappa invoke dev "anything but lambda_handler" it actually invokes
lambda_handler`. Same with scheduling.
Expected Behavior
I'd like to be able to execute any function from any file deployed with zappa, not just lambda_handler
.
Actual Behavior
lambda_handler
is executed
The solution was to remove "lambda_handler" from zappa_settings.json
So if lambda_handler
is not the default, you cannot remotely execute any other function? Maybe this issue should be reopened, no?
I don't remember if lambda_handler
is default.
I could not execute any other function with lambda_handler
or app_function
in the zappa_settings.json.
See my config here https://github.com/manycoding/tomorrowswig_followers/blob/master/zappa_settings.json