Skip to content

Commit 3ccf3a1

Browse files
committed
reset -> recreate
1 parent 03c97f7 commit 3ccf3a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/forge/actors/coder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ def __init__(
6262
async def setup(self):
6363
logging.debug("Setting up sandboxed actor")
6464
await self._maybe_create_image()
65-
self._reset()
65+
self.recreate()
6666

6767
@endpoint
6868
async def reset(self):
6969
"""Resets the container instance from the base image."""
70-
self._reset()
70+
self.recreate()
7171

7272
async def _maybe_create_image(self):
7373
"""Ensure the enroot image exists, import it if necessary."""
@@ -89,7 +89,7 @@ async def _maybe_create_image(self):
8989
else:
9090
logging.info(f"Using existing image: {self.sqsh_image_path}")
9191

92-
def _reset(self):
92+
def recreate(self):
9393
"""(Re)create a clean container instance from the base image."""
9494
# Remove any old container
9595
logging.debug(f"Removing container {self.container_name}")

0 commit comments

Comments
 (0)