-
Notifications
You must be signed in to change notification settings - Fork 227
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
Lambda deploy : call to update_configuration_function
is made before lambda update status is ready
#711
Comments
update_configuration_function
is made before lambda update status is ready
@nficano any chance to get the PR from rashadmoarref approved ? I have been using his fix as well it it is working fine ! Thanks. |
Sleep looks like hack and what if you are updating many functions in same time? deployment will be very long.
I think we need to go by way 1 so there will be no delays in deployments and guarantee that status changes after all changes are done. PR above can be used as temp fix and can work but not in 100% times and makes deployments much longer! |
Okay. As everything is async I've used client waiter to make configuration changes during update. PR #716 |
I can see this issue has been resolved in #714 but the latest version available on pip is 11.8.0 from over a year ago. https://pypi.org/project/python-lambda/ Is it possible to publush a new version please so we can have access to the latest code via pip? |
I'm running the latest version 11.8.0 on Python v3.11, and getting the same lambda deploy \
--config-file aws_lambda_config.yaml \
--requirements requirements.txt It still uploads the lambda and everything seems to works fine, so it's only a minor nuisance. Here is the full traceback:
|
Problem
It seems that the application of lambda states to all functions, including zip-file based lambdas, prevents from deploying as previously with
lambda deploy
. Several lambdas that I was able to deploy perfectly last week do not deploy now.Error
The error I'm getting is the following
Observations
It seems that right after calling the
client.update_function_code
method, theLastUpdateStatus
from the lambda's configuration stays atInProgress
, thus the subsequent call toclient.update_function_configuration
is refused by the API.I've tried adding a simple
time.sleep(120)
right after the call toclient.update_function_code
, and it seems to work : after waiting the value ofLastUpdateStatus
goes back toSuccessful
, and the deployment goes fine afterwards.The text was updated successfully, but these errors were encountered: