py-lambda-action icon indicating copy to clipboard operation
py-lambda-action copied to clipboard

Updating layer on lambda fails sometimes due to function update process not finished (?)

Open martinbaste opened this issue 2 years ago • 1 comments

Symptoms:

The workflow fails sometimes (not always) with this error:

Using the layer in the function...

An error occurred (ResourceConflictException) when calling the UpdateFunctionConfiguration operation: The operation cannot be performed at this time. An update is in progress for resource: [functionARN]

And this happens just after the function code is updated, so I imagine that it is caused by the process trying to update the layer while the function is still updating.

Maybe it would be possible to retry or wait a couple seconds?

martinbaste avatar Jun 23 '23 13:06 martinbaste

Was running into this, too. For anyone else that lands here, try this fork of the action: NicPWNs/py-lambda-action@main.

NicPWNs avatar Feb 11 '24 04:02 NicPWNs