Batch: Fix "local variable 'containers' referenced before assignment". (#5953)
This commit is contained in:
parent
23d9430590
commit
d2c27753b7
@ -606,7 +606,12 @@ class Job(threading.Thread, BaseModel, DockerModel, ManagedState):
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
import docker
|
import docker
|
||||||
|
except ImportError as err:
|
||||||
|
logger.error(f"Failed to run AWS Batch container {self.name}. Error {err}")
|
||||||
|
self._mark_stopped(success=False)
|
||||||
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
containers: List[docker.models.containers.Container] = []
|
containers: List[docker.models.containers.Container] = []
|
||||||
|
|
||||||
self.advance()
|
self.advance()
|
||||||
|
Loading…
Reference in New Issue
Block a user