Skip to content

Describe task statuses in managerclient pkg #4739

@Michal-Leszczynski

Description

@Michal-Leszczynski

It would be useful to describe task statuses in managerclient similar to how we describe backup stages:

var backupStageName = map[string]string{
	BackupStageInit:         "initialising",
	BackupStageSnapshot:     "taking snapshot",
	BackupStageAwaitSchema:  "awaiting schema agreement",
	BackupStageIndex:        "indexing files",
	BackupStageManifest:     "uploading manifests",
	BackupStageSchema:       "uploading schema",
	BackupStageDeduplicate:  "deduplicating the snapshot",
	BackupStageUpload:       "uploading data",
	BackupStageMoveManifest: "moving manifests",
	BackupStageMigrate:      "migrating legacy metadata",
	BackupStagePurge:        "retention",
	BackupStageDone:         "",
}

This would give us some documentation, as right now task statuses are not well described anywhere. We could also use such descriptions when printing task details with sctool. There is also an initiative to add those descriptions to backoffice, so it's another place where it could be used.

cc: @aexvir

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions