Expand description
Background update checking for ctoolbox.
This module handles automatic update checking at startup:
- Generates a random time-of-day on first run and stores it in
pc_settings - Spawns a detached task that waits until the scheduled time (or runs immediately if past) and checks for updates
- Stores update status in memory accessible by other parts of the process
Structs§
- Pending
Update - Record of a pending update that has been fully downloaded and is ready to install. This is written to disk so it persists across restarts.
- Update
Status - Status of available updates.
Enums§
- Startup
Update Result - Result of the startup update check.
Traits§
- GetUpdate
Status IpcClient Ext - Auto-generated IPC client extension for this method.
Functions§
- apply_
pending_ startup_ update - Checks if a previously downloaded update is ready on disk and starts the atomic upgrade if found.
- check_
startup_ network_ update - Runs the bounded network startup update check (without downloading).
- check_
startup_ update - Checks for a pending downloaded update at startup and applies it if ready.
- get_
or_ generate_ update_ check_ time - Gets the update check time from settings, generating one if not present.
- get_
update_ status - Gets the current update status as a JSON string.
- spawn_
update_ checker - Spawns the background update checker task.