func (w *worker) stop() {
	logger.Debug("Worker stopping")
	w.quit <- true
	return
}
stop stops a worker
package job
import (
	"os"
	"github.com/pkg/errors"
	"github.com/krane/krane/internal/logger"
)
type worker struct {
	workerPool chan chan Job
	channel    chan Job
	quit       chan bool
}
func newWorker(workerPool chan chan Job, jobChannel chan Job) *worker {
	return &worker{workerPool, jobChannel, make(chan bool)}
}
func (w *worker) start() {
	logger.Debugf("Worker starting with pid: %d", os.Getpid())
	go w.loop()
}