[Runner] Cleanup updates directory at startup (#19875)

* cleanup updates and logs at startup

* perform cleanup in separate thread
This commit is contained in:
Davide Giacometti
2022-08-23 22:32:45 +02:00
committed by GitHub
parent c85305695e
commit 5c431b5ac5
3 changed files with 53 additions and 29 deletions

View File

@@ -9,10 +9,10 @@ struct UpdateState
{
enum State
{
upToDate = 0,
errorDownloading = 1,
readyToDownload = 2,
readyToInstall = 3
upToDate = 0,
errorDownloading = 1,
readyToDownload = 2,
readyToInstall = 3
} state = upToDate;
std::wstring releasePageUrl;
std::optional<std::time_t> githubUpdateLastCheckedDate;