Use locking in refresh job
Refactor results controller, refresh until results available