func (t *Task) GetExecutor() string {
	if len(t.Executor) == 0 {
		return "websysd"
	}
	return strings.Join(t.Executor, " ")
}
GetExecutor gets the task executor
package app
import (
	"os/exec"
	"strconv"
	"strings"
	"time"
)
type Task struct {
	ID          int
	Name        string
	Command     string
	Executor    []string
	Environment map[string]string
	Stdout      string
	Stderr      string
	Metadata    map[string]string
	Pwd         string
	ActiveTask *TaskRun
	TaskRuns   []*TaskRun
	Service bool
}