diff --git a/base/commands/migration/migration_stages.go b/base/commands/migration/migration_stages.go index 52bbc061..308d099a 100644 --- a/base/commands/migration/migration_stages.go +++ b/base/commands/migration/migration_stages.go @@ -81,9 +81,11 @@ func createMigrationStages(ctx context.Context, ec plug.ExecContext, ci *hazelca rt, cp, err := fetchOverallProgress(ctx, ci, migrationID) if err != nil { ec.Logger().Error(err) + status.SetText("Unable to calculate remaining duration and progress") + } else { + status.SetProgress(cp) + status.SetRemainingDuration(rt) } - status.SetProgress(cp) - status.SetRemainingDuration(rt) } q := fmt.Sprintf(`SELECT JSON_QUERY(this, '$.migrations[%d]') FROM %s WHERE __key= '%s'`, i, StatusMapName, migrationID) res, err := ci.Client().SQL().Execute(ctx, q)