Skip to content

Commit

Permalink
Merge pull request #185 from depot/feat/filter-waiting-progress
Browse files Browse the repository at this point in the history
feat(load): filter waiting from load progress
  • Loading branch information
goller authored Sep 14, 2023
2 parents 61a8c2b + 8a46dac commit 12d1753
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/load/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const (
Unknown Status = iota
PullingFrom
PullingFSLayer
Waiting
AlreadyExists
Downloading
Verifying
Expand All @@ -77,6 +78,8 @@ func NewStatus(s string) Status {
switch s {
case "Pulling fs layer":
return PullingFSLayer
case "Waiting":
return Waiting
case "Already exists":
return AlreadyExists
case "Downloading":
Expand Down Expand Up @@ -105,6 +108,8 @@ func (s Status) String() string {
return "pulling from"
case PullingFSLayer:
return "pulling fs layer"
case Waiting:
return "waiting"
case AlreadyExists:
return "already exists"
case Downloading:
Expand Down Expand Up @@ -168,8 +173,8 @@ func printPull(ctx context.Context, rc io.Reader, l progress.SubLogger) error {
}

status := NewStatus(jm.Status)
// The Pulling fs and pulling from don't seem to be too useful to display.
if status == PullingFSLayer || status == PullingFrom {
// The Pulling fs, pulling from, and waiting don't seem to be too useful to display.
if status == PullingFSLayer || status == PullingFrom || status == Waiting {
continue
}

Expand Down

0 comments on commit 12d1753

Please sign in to comment.