Persist backup restore status after core restart (#136838)

* Persist backup restore status after core restart

* Don't blow up if restore result file can't be removed

* Update tests
This commit is contained in:
Erik Montnemery
2025-01-29 16:58:33 +01:00
committed by GitHub
parent 8ab6bec746
commit b2ec72d75f
13 changed files with 356 additions and 20 deletions

View File

@@ -60,8 +60,10 @@ async def handle_info(
"backups": [backup.as_frontend_json() for backup in backups.values()],
"last_attempted_automatic_backup": manager.config.data.last_attempted_automatic_backup,
"last_completed_automatic_backup": manager.config.data.last_completed_automatic_backup,
"last_non_idle_event": manager.last_non_idle_event,
"next_automatic_backup": manager.config.data.schedule.next_automatic_backup,
"next_automatic_backup_additional": manager.config.data.schedule.next_automatic_backup_additional,
"state": manager.state,
},
)