Skip to content

Commit 38840bf

Browse files
committed
chore: added comments and additional instructions for fetching emulator logs after the container is shut down in case of failures
1 parent 338ef3d commit 38840bf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

samcli/local/docker/durable_functions_emulator_container.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def start(self):
253253
"--store-type",
254254
self._get_emulator_store_type(),
255255
"--store-path",
256-
"/tmp/.durable-executions-local/durable-executions.db",
256+
"/tmp/.durable-executions-local/durable-executions.db", # this is the path within the container
257257
],
258258
name=self._container_name,
259259
ports={f"{self.port}/tcp": self.port},
@@ -412,5 +412,7 @@ def _wait_for_ready(self, timeout=30):
412412
f"Check https://${self._get_emulator_image().replace('public.ecr', 'gallery.ecr')}. "
413413
"and https://github.com/aws/aws-durable-execution-sdk-python-testing/releases "
414414
"for valid image tags. If the problems persist, you can try updating the SAM CLI version "
415-
" in case of incompatibility."
415+
" in case of incompatibility. "
416+
"You may check the emulator_data_dir for the durable-execution-emulator-{timestamp}.log file which "
417+
"contains the emulator logs. This may be useful for debugging."
416418
)

0 commit comments

Comments
 (0)