Skip to content

T-BDRY-platform-server-backup-schedule-flag

State: closed/done · Impact: medium · Complexity: small

Let the headless server run scheduled backups, so the backup e2e suite can test the schedule on the web build.

LocationRole today
solutions/determined/crates/determined-platform/src/backup_schedule.rsBackupScheduleService with pub async fn run(self: Arc<Self>, state: Arc<AppState>)
solutions/determined/crates/determined-platform/src/lib.rsAppState holds the service. The desktop shell spawns run
solutions/determined/crates/determined-platform/src/bin/platform-server.rsParses --port, --dist, --state-dir, --vault. Never spawns the schedule

platform-server --backup-schedule spawns BackupScheduleService::run on the server’s runtime after state is built. Without the flag, behaviour is unchanged.

  1. Parse the switch with the existing flag() helper.
  2. When set, spawn state.backup_schedule().clone().run(state.clone()) on tokio.
  3. Document the flag in the binary’s header comment.
AreaNote
solutions/determined/crates/determined-platform/src/bin/platform-server.rsThe flag
  • AC-1: With --backup-schedule and a 1-minute schedule configured, a snapshot appears within two minutes on a scratch vault.
  • AC-2: Without the flag, no scheduled backup runs.
  • Changing schedule semantics or the minimum interval.
  • none.
  • The backup checklist includes the schedule. The web build had no way to run it.

← Back to Tasks