You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2025/10/05 15:03:42 UTC

(skywalking-infra-e2e) branch main updated: stop the trigger when reach to the maximum retry count (#132)

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git


The following commit(s) were added to refs/heads/main by this push:
     new 4e51bfb  stop the trigger when reach to the maximum retry count (#132)
4e51bfb is described below

commit 4e51bfbdcc3622cedcad90294c2f8c909f96943f
Author: youjie23 <yo...@gmail.com>
AuthorDate: Sun Oct 5 23:03:37 2025 +0800

    stop the trigger when reach to the maximum retry count (#132)
---
 internal/components/trigger/http.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/internal/components/trigger/http.go b/internal/components/trigger/http.go
index aa95bf2..354e4cb 100644
--- a/internal/components/trigger/http.go
+++ b/internal/components/trigger/http.go
@@ -86,6 +86,10 @@ func (h *httpAction) Do() chan error {
 					result <- err
 					sent = true
 				}
+				if h.times == h.executedCount {
+					t.Stop()
+					return
+				}
 			case <-h.stopCh:
 				t.Stop()
 				result <- nil