From d20dca4ec6ca4f350dbe12fb27e990e3cfac0bbf Mon Sep 17 00:00:00 2001 From: Chetan Mehrotra Date: Mon, 14 Oct 2019 10:52:28 +0530 Subject: [PATCH] Ensure that the pollSince is greater than Activation start time This ensures that poll command does not repeatedly keep on fetching the last activation --- commands/activation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/activation.go b/commands/activation.go index 32aec9868..00220163f 100644 --- a/commands/activation.go +++ b/commands/activation.go @@ -402,7 +402,7 @@ var activationPollCmd = &cobra.Command{ reported[activation.ActivationID] = true } if activation.Start > pollSince { - pollSince = activation.Start + pollSince = activation.Start + 1 } } time.Sleep(time.Second * 2)