Beispiel #1
0
func Worker() {
	goworker.Register("CreateStack", w.CreateStack())
	goworker.Register("DeleteStack", w.DeleteStack())
	if err := goworker.Work(); err != nil {
		fmt.Println("Error:", err)
	}
}
Beispiel #2
0
func main() {
	goworker.Register("SampleAddJobClass", addWorker)

	if err := goworker.Work(); err != nil {
		fmt.Println("Error:", err)
	}

}
Beispiel #3
0
func main() {
	var (
		reviewer = reviewerFunc(lintReviewer)
		queue    = newResqueEnqueuer("high")
	)

	goworker.Register("GoReviewJob", newGoReviewJob(reviewer, queue))

	if err := goworker.Work(); err != nil {
		log.Error(err)
	}
}
Beispiel #4
0
func main() {
	if err := goworker.Work(); err != nil {
		fmt.Println("Error:", err)
	}
}