Move logging to run_job from webapp