From 81cb8f568f7a66cf9640d892bf4fc16e598678b0 Mon Sep 17 00:00:00 2001 From: Sam Boysel Date: Tue, 31 May 2022 18:06:43 -0700 Subject: [PATCH] execute onEvent command in Go routine --- pkg/internal/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/runner.go b/pkg/internal/runner.go index ea9fe17..46a802c 100644 --- a/pkg/internal/runner.go +++ b/pkg/internal/runner.go @@ -80,7 +80,7 @@ func (t *TaskRunner) SetState(state State) { t.state = state // execute onEvent command if variable is set if t.onEvent != nil { - t.runOnEvent() + go t.runOnEvent() } }