From 037b43ee106cd9f550296326b4fb8d05a29b46cb Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Mon, 26 Jul 2021 01:38:49 +0000 Subject: [PATCH] Maint: add completed status to loopstate --- internal/loopstate/apply.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/loopstate/apply.go b/internal/loopstate/apply.go index a3f59dc3..c0f10192 100644 --- a/internal/loopstate/apply.go +++ b/internal/loopstate/apply.go @@ -34,7 +34,9 @@ func (s *State) ApplyStatus(ctx context.Context, status models.LoopStatus) ( switch status { case constants.Running: - if existingStatus != constants.Stopped { + switch existingStatus { + case constants.Stopped, constants.Completed: + default: return "already " + existingStatus.String(), nil }