lib/wayfarer/cli/job.rb in wayfarer-0.4.1 vs lib/wayfarer/cli/job.rb in wayfarer-0.4.2
- old
+ new
@@ -11,15 +11,13 @@
load_environment
mock_redis if options[:mock_redis]
url = Addressable::URI.parse(url)
job = job.classify.constantize.new
- task = Wayfarer::Task.new(url, "tmp")
+ task = Wayfarer::Task.new(url, options[:batch])
job.arguments.push(task)
job.perform(task)
GC.new(job).run
-
- free_agent_pool
end
desc "enqueue JOB URL",
"Enqueue JOB with URL"
option :batch, type: :string, default: SecureRandom.uuid