마지막 배포 상태 항상 유지 + timestamp

This commit is contained in:
2023-10-26 13:53:36 +09:00
parent 282ef95ab0
commit 22148f8ae7
3 changed files with 55 additions and 23 deletions

View File

@ -371,18 +371,27 @@ func NewClient(standalone bool) (HoustonClient, error) {
prog := gatherDeployedPrograms(hc.config.StorageRoot, dr.Name)
hc.deploys[dr.Name] = prog
op.Refresh(ctx, hc.makeOperationQueryRequest())
op.ReportDeployingProgress(ctx, &protos.DeployingProgress{
Hostname: hn,
Name: dr.Name,
Version: dr.Version,
State: "success",
Progress: 0,
Total: 0,
})
} else {
logger.Println(err)
}
op.ReportDeployingProgress(ctx, &protos.DeployingProgress{
Hostname: hn,
Name: dr.Name,
Version: dr.Version,
State: "done",
Progress: 0,
Total: 0,
})
op.ReportDeployingProgress(ctx, &protos.DeployingProgress{
Hostname: hn,
Name: dr.Name,
Version: dr.Version,
State: "fail:" + err.Error(),
Progress: 0,
Total: 0,
})
}
}
case shared.Withdraw: