Permalink
Browse files

Set RESQUE_SCHEDULER_INTERVAL to 0.5s

  • Loading branch information...
1 parent f8ba1d0 commit ca6be1572ec5ff0dbf1c264935f90eeae24a8b0b @avokhmin avokhmin committed Feb 26, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/recipes/resque.rb
View
@@ -68,7 +68,7 @@ def remote_file_exists?(full_path)
def start_scheduler
pid = "#{fetch :current_path}/tmp/pids/scheduler.pid"
- run "cd #{fetch :current_path} && #{rails_env} PIDFILE=#{pid} BACKGROUND=yes VERBOSE=1 MUTE=1 bundle exec rake resque:scheduler"
+ run "cd #{fetch :current_path} && #{rails_env} PIDFILE=#{pid} BACKGROUND=yes VERBOSE=1 MUTE=1 RESQUE_SCHEDULER_INTERVAL=0.5 bundle exec rake resque:scheduler"
end
def stop_scheduler

0 comments on commit ca6be15

Please sign in to comment.