Skip to content

dcarbone/jobber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jobber

Little job queue thing for golang

A very basic example is provided in main

Overview

At a high level, you create a single Boss, add named Workers to the Boss, and add Jobs to the Workers.

Boss

The Boss is the central controller for any / all workers. You can have as many workers as you want under a single boss.

Worker

Worker is responsible for completing a specific type of work. The general idea is that workers have a unique name within a given Boss and they only do one type of job. You can, of course, do whatever you want.

The default Worker is called PitDroid and can be used out of the box or as a prototype for your own worker implementation.

Job

A Job can be any unit of work you wish to executed by a Worker. It's interface is designed to be minimal. The output of Process() is directly passed to the channel returned by RespondTo(), unless the Worker has been terminated in which case it is recommended an standard error of some sort be passed in.