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

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

}
Example #3
0
File: main.go Project: houndci/go
func main() {
	var (
		reviewer = reviewerFunc(lintReviewer)
		queue    = newResqueEnqueuer("high")
	)

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

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