Documentation ¶
Index ¶
- Variables
- func GetErrorFromBackend(taskUUID string) (taskError string, err error)
- func GetResultsFromBackend(taskUUID string) (taskResults string, err error)
- func GetStateFromBackend(taskUUID string) (state int, err error)
- func GetTaskInfos() (infos []models.Task)
- func TaskRunTimeout(taskUUID string, taskCreateOn int) bool
- func UpdateState()
- func UpdateStateToDB(dataTask models.Task) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SUCCESS = 0 PENDING = 1 RECEIVED = 2 STARTED = 3 RETRY = 4 FAILURE = 5 )
View Source
var BackendServer iface.Backend
View Source
var SenderServer *machinery.Server
Functions ¶
func GetErrorFromBackend ¶
GetErrorFromBackend when task is FAILURE, get state of task from backend
func GetResultsFromBackend ¶
GetResultsFromBackend when task is SUCCESS, get results of task from backend
func GetStateFromBackend ¶
GetStateFromBackend get state of task from backend
func TaskRunTimeout ¶
TaskRunTimeout if task is send success, duration TASK_TIMEOUT, task is not FAILURE or SUCCESS.
func UpdateStateToDB ¶
UpdateStateToDB update info of task in DB
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.