Add a way to run jobs and log it into es