- turn ValueError into custom exception
- next_jobs wasn't being retained across threads making retries fail
- fix caching
- remove unnecessary logging
- fix bug in template