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() } }