You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2018/12/17 12:48:21 UTC
[incubator-openwhisk-cli] 02/04: Change the pollSince time based on
last activation start
This is an automated email from the ASF dual-hosted git repository.
csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git
commit 2bf1dc7c6dbb0e5bada24eb99ef59516df537f8e
Author: Chetan Mehrotra <ch...@apache.org>
AuthorDate: Fri Dec 14 10:31:30 2018 +0530
Change the pollSince time based on last activation start
---
commands/activation.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/commands/activation.go b/commands/activation.go
index dcf1ffa..9c0fe20 100644
--- a/commands/activation.go
+++ b/commands/activation.go
@@ -387,6 +387,9 @@ var activationPollCmd = &cobra.Command{
printJSON(activation.Logs)
reported[activation.ActivationID] = true
}
+ if activation.Start > pollSince {
+ pollSince = activation.Start
+ }
}
time.Sleep(time.Second * 2)
}