Slow execution of aws lambda update-function-code #6585
Labels
guidance
Question that needs advice or information.
lambda
service-api
This issue is due to a problem in a service API, not the SDK implementation.
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
Calls to aws lambda update-function-code althought immediately execute take unusual time for the LastUpdateStatus
SDK version number
Platform/OS/Hardware/Device
Debian GNU/Linux 10 (buster)
To Reproduce (observed behavior)
Executing
aws lambda update-function-code --function-name "${FUNCTION_NAME}" --zip-file "fileb://build/${FUNCTION_NAME}.zip"
twice at a short interval.
(instead of executing twice the same command, it happened also executing another lambda command, e.g.:
aws lambda publish-version --function-name "${FUNCTION_NAME}"
)The second
aws lambda
call fails, with message for instanceAn error occurred (ResourceConflictException) when calling the PublishVersion operation: The operation cannot be performed at this time. An update is in progress for resource: arn:aws:lambda:...
Expected behavior
no failure
Logs/output
An error occurred (ResourceConflictException) when calling the PublishVersion operation: The operation cannot be performed at this time. An update is in progress for resource: arn:aws:lambda:...
Additional context
The script worked for years with no particular issue, since one week it started generating this error.
We made a workaround, but maybe the behavior is a sign of an issue in the backend
The text was updated successfully, but these errors were encountered: