Make use of Executor class in worker.rb.