Exemple #1
0
func (dataW *dataWorker) Add(job *goqless.Job) (err error) {
	job.Data = map[string]interface{}{"id": "Add"}
	time.Sleep(190 * time.Second)
	job.Data = map[string]interface{}{"id": "sleepEndAdd"}

	return
}
Exemple #2
0
func (dataW *dataWorker) Sub(job *goqless.Job) (err error) {
	job.Data = map[string]interface{}{"id": "Sub"}
	return
}