summaryrefslogtreecommitdiff
path: root/watcher.go
blob: bbc7b9dc59b1277da31fb864bcf7e81b705de265 (plain)
1
2
3
4
5
6
7
8
package roadrunner

// Watcher watches for workers.
type Watcher interface {
	// Keep must return true and nil if worker is OK to continue working,
	// must return false and optional error to force worker destruction.
	Keep(p Pool, w *Worker) (keep bool, err error)
}