Skip to content

Commit

Permalink
Also don't count it if the task was killed later
Browse files Browse the repository at this point in the history
  • Loading branch information
elffjs committed Nov 6, 2024
1 parent 5434454 commit b02477d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/devices-api/find_old_style_tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ func (fost *findOldStyleTasks) Execute(_ context.Context, _ *flag.FlagSet, _ ...
break
}

key := string(m.Key)

if m.Value == nil {
delete(missing, key)
continue
}

Expand All @@ -85,8 +88,6 @@ func (fost *findOldStyleTasks) Execute(_ context.Context, _ *flag.FlagSet, _ ...
panic(err)
}

key := string(m.Key)

if out.Data.SyntheticDevice == nil {
missing[key] = out
} else {
Expand Down

0 comments on commit b02477d

Please sign in to comment.