Simple middleware to save the current batch and restore it when the job executes.
Classes: Client, Worker