aws / aws-lambda-python-runtime-interface-client

Apache License 2.0
263 stars 75 forks source link

Restart RIC #54

Open CalvinRodo opened 3 years ago

CalvinRodo commented 3 years ago

Similar to this issue: https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/issues/9

I want to be able to restart my RIC in a container when python files change.

dltacube commented 2 years ago

Would love to know if this can be done with the official container images from public.ecr.aws/lambda

basarsoker commented 11 months ago

My solution to this problem is to use the handler function as a proxy in front of my actual code. I created an app with Django REST Framework, which listens to another port inside the container and configured the handler function to pass the requests to that port. Since Django does the hot-reloading, it immediately takes effect whenever I make a change.