Maint: add completed status to loopstate

This commit is contained in:
Quentin McGaw (desktop)
2021-07-26 01:38:49 +00:00
parent ab910403c6
commit 037b43ee10

View File

@@ -34,7 +34,9 @@ func (s *State) ApplyStatus(ctx context.Context, status models.LoopStatus) (
switch status { switch status {
case constants.Running: case constants.Running:
if existingStatus != constants.Stopped { switch existingStatus {
case constants.Stopped, constants.Completed:
default:
return "already " + existingStatus.String(), nil return "already " + existingStatus.String(), nil
} }