/ Published in: Ruby
Add this code to /script/jobrunner in your rails app (be sure to make it executable with chmod 775) Then setup a normal cron job to run the script
Expand |
Embed | Plain Text
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/environment' worker = Delayed::Worker.new worker.max_run_time = 2.minutes worker.work_off(100)
You need to login to post a comment.
