You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
restart_policy (dict): Restart the container when it exits.
Configured as a dictionary with keys:
- ``Name`` One of ``on-failure``, or ``always``.
- ``MaximumRetryCount`` Number of times to restart the
container on failure.
For example:
``{"Name": "on-failure", "MaximumRetryCount": 5}``
Lack of restart_policy setting in pyvespa. I.e. to make restart_policy=always (edited)
The text was updated successfully, but these errors were encountered:
We could expose this setting. Could you elaborate more on the use case for it?
You have VespaDocker().restart_services().
In which cases do you need restart_policy?
...python3.11/site-packages/vespa/deployment.py
self.container = client.containers.run(
self.container_image,
detach=True,
mem_limit=container_memory,
name=application_name,
hostname=application_name,
privileged=True,
ports=mapped_ports,
volumes=volumes,
)
Lack of restart_policy setting in pyvespa. I.e. to make restart_policy=always (edited)
The text was updated successfully, but these errors were encountered: