예제 #1
0
 def reload(self):
     # refresh no matter what
     try:
         with podman.ApiConnection(podman_url) as podman_api:
             self.inspection = podman.containers.inspect(podman_api, self.name)
     except podman.errors.InternalServerError:
         logger.error(f"error 500 with {self.name}")
예제 #2
0
 async def co_run(self, idle, lingering):
     try:
         await self._co_run(idle, lingering)
     except Exception as exc:
         logger.error(
             f"unexpected error {type(exc)} "
             f"when dealing with {self.name} - ignored\n...exception={exc}")
예제 #3
0
 def reload(self):
     # refresh no matter what
     try:
         with podman.PodmanClient(base_url=PODMAN_URL) as podman_api:
             self.inspection = podman_api.containers.get(self.name).attrs
     except podman.errors.InternalServerError:
         logger.error(f"error 500 with {self.name}")
         self.inspection = None