Ok I have a docker to deploy to run python code, and this python code calls an API ran…
- User
Ok I have a docker to deploy to run python code, and this python code calls an API ran locally (in the same docker). How can I make the api run in the background and restart when crash, while running the main python code just after, in the same docker container?
Assistant
You can use the
supervisortool to run the API in the background and ensure that it restarts automatically if it crashes. To use , you will first need to install it in your Docker container. You can do this by adding the following line to your :
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.