Registers the worker that runs jobs of type.
factory is called anew for every run, so it is the place to pull dependencies out of a container rather than to cache anything.