func DoesTaskTypeExist(taskType string) bool {
	_, ok := taskTypes[taskType]
	return ok
}
DoesTaskTypeExist check if task type exists
package task
import (
	"errors"
	"reflect"
)
var (
	DoneTaskState  TaskState = "done"
	ErrorTaskState TaskState = "error"
	TaskTypeDoesNotExistErr    = errors.New("task type does not exist")
	TaskHandlerDoesNotExistErr = errors.New("task handler does not exist")
	taskTypes = make(map[string]*TaskType)
)
func RegisterTaskType(taskType string) *TaskType {
	taskTypes[taskType] = &TaskType{
		handlers: make(TaskReflectMap),
	}
	return taskTypes[taskType]
}