Fix missing container id, drop custom exception
parent
861826dd7b
commit
bf5fcfe896
|
@ -51,10 +51,6 @@ class DockerNotStarted(Exception):
|
||||||
'Prolly you dint start da daemon bruh'
|
'Prolly you dint start da daemon bruh'
|
||||||
|
|
||||||
|
|
||||||
class ContainerError(RuntimeError):
|
|
||||||
'Error reported via app-container logging level'
|
|
||||||
|
|
||||||
|
|
||||||
@acm
|
@acm
|
||||||
async def open_docker(
|
async def open_docker(
|
||||||
url: Optional[str] = None,
|
url: Optional[str] = None,
|
||||||
|
@ -189,7 +185,7 @@ class Container:
|
||||||
def hard_kill(self, start: float) -> None:
|
def hard_kill(self, start: float) -> None:
|
||||||
delay = time.time() - start
|
delay = time.time() - start
|
||||||
log.error(
|
log.error(
|
||||||
f'Failed to kill container {cid} after {delay}s\n'
|
f'Failed to kill container {self.cntr.id} after {delay}s\n'
|
||||||
'sending SIGKILL..'
|
'sending SIGKILL..'
|
||||||
)
|
)
|
||||||
# get out the big guns, bc apparently marketstore
|
# get out the big guns, bc apparently marketstore
|
||||||
|
|
Loading…
Reference in New Issue