Skip to content

Conversation

@pipex
Copy link
Contributor

@pipex pipex commented Sep 29, 2025

WIP

Built on top of #59

@pipex pipex marked this pull request as draft September 29, 2025 23:18
@pipex pipex force-pushed the services-local-state branch 4 times, most recently from 5501abc to 08499e7 Compare September 30, 2025 15:08
pipex added 7 commits October 1, 2025 11:09
This allows to store in a local volume data coming from the backend that
doesn't have a counterpart on the local state of the system. Some
examples of this are the device and apps name, as well as the service
image URI.

Change-type: patch
This now reads device name, app name and app id from state files in the
state dir (defined by XDG_STATE_DIR or defaulting to $HOME/.local/state).
This avoids the need to generate workflow tasks for these operations
each time the worker is loaded. This will also come handy in a future
improvement where the worker state will be loaded before each apply

This also makes sure to clean-up local state data for apps not in the
target state during the cleanup job.

Change-type: patch
This will be used for extracting release metadata from the container
name as that is the only place the metadata can live.

Change-type: patch
Local images may be referenced by URI or by Id. This reference is used
when reading service information from containers and mapping a container
to the backend image URI

Change-type: patch
This replaces `fetch_release_images` for a `fetch_apps_images` thus
batching all installs together. This ensures that at most 3 images will
be downloaded concurrently for the full target.

Change-type: patch
@pipex pipex force-pushed the services-local-state branch from 08499e7 to 57670a8 Compare October 1, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants