Skip to content

Commit 47fc269

Browse files
Save timelapse in home directory
1 parent cdfa997 commit 47fc269

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎seasonal-timelapse/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ JSON represents tuples as arrays and datetimes as RFC 3339 strings.
8989

9090
## Outputs
9191

92-
The workflow writes its result to `outputs/<job-specific-directory>/timelapse.webp` in the runner's working directory and uploads it to workflow storage as `<job-specific-directory>/timelapse.webp`. The final structured log message includes its `storage_path`, which the Console quickstart uses to display the animation. Intermediate PNG frames are stored in the local `frames/` directory beside it.
92+
The workflow writes its result to `~/tilebox_outputs/<job-specific-directory>/timelapse.webp` in the runner user's home directory and uploads it to workflow storage as `<job-specific-directory>/timelapse.webp`. The final structured log messages include the local path in `~/...` form and the uploaded `storage_path`, which the Console quickstart uses to display the animation. Intermediate PNG frames remain under `outputs/<job-specific-directory>/frames/` in the runner's working directory.
9393

9494
Output directories include the dates, coordinates, and square width, so separate runs do not overwrite each other. Intermediate outputs are local to the runners. The frame and assembly tasks therefore need runners that share the same working directory and filesystem.
9595

‎seasonal-timelapse/seasonal_rgb_timelapse/tasks.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,14 @@ def execute(self, context: ExecutionContext) -> None:
151151
context.current_task.display = f"Assemble WebP ({len(frame_paths)} frames)"
152152

153153
relative_destination = Path(self.output_name) / "timelapse.webp"
154-
destination = _output_root() / relative_destination
154+
destination = Path.home() / "tilebox_outputs" / relative_destination
155+
display_path = Path("~") / "tilebox_outputs" / relative_destination
155156
context.logger.info("Encoding animated WebP", frames=len(frame_paths))
156157
with context.tracer.span("encode-webp"):
157158
encode_animated(frame_paths, destination)
158159
context.logger.info(
159160
"Timelapse saved to runner output directory",
160-
local_path=destination,
161+
local_path=str(display_path),
161162
frames=len(frame_paths),
162163
size_bytes=destination.stat().st_size,
163164
)

0 commit comments

Comments
 (0)