Why is Rufus scheduling the job twice?
问题 Steps to replicate: Create a new Rails project. (rails 3.2.22.5) Add dependencies (warbler, rake, rufus-scheduler) (/Gemfile) JRuby 9.1.7.0 Create new files. (/config/warble.rb) (/web.xml.erb) (/config/intializers/scheduler_rufus.rb) Create an executable war file with jetty webserver. (warble war RAILS_ENV=development) Launch the executable. (java -jar mywar.war) The scheduler runs the job 2 times. /Gemfile: source 'https://rubygems.org' gem 'rails', '3.2.22.5' # Bundle edge Rails instead: #