danilop / multimodal-chat

A multimodal chat interface with many tools.
MIT License
96 stars 11 forks source link

Add a final WAIT for the lambda function to be updated #6

Open cfregly opened 2 months ago

cfregly commented 2 months ago

final status of the function is "InProgress" when the script completes.

i'd prefer to have the script wait until the function been successfully updated before the script completes.

danilop commented 2 months ago

Good point. I think I tried that but couldn't find a correct wait state. It usually takes seconds so the worst it can happen is that a few invocations end up to the old image (if any). It should fail because there is a check on the state of the function.