Skip to content
Browse files

removed ONLY_ON guard from mail tasks

  • Loading branch information...
1 parent df85d81 commit 61648a52d9deeb51727e1ef87c4472e75359223d @andyl committed Jun 13, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −1 config/schedule.rb
  2. +0 −4 lib/tasks/mail.rake
View
2 config/schedule.rb
@@ -36,7 +36,7 @@
# ----- Retrieve incoming email from Google -----
every 30.minutes do
- nq "rake ops:email:import ONLY_ON=bamru.net"
+ nq "rake ops:email:import"
end
# ----- Reset Page Cache -----
View
4 lib/tasks/mail.rake
@@ -8,10 +8,6 @@ include RakeUtil
def check_host_and_run_frequency
file = "tmp/mail_sync_time.txt"
- if ENV['ONLY_ON'] && ENV['ONLY_ON'] != ENV['SYSNAME']
- puts "Exiting: command runs only on #{ENV["ONLY_ON"]}"
- exit
- end
if File.exists?(file)
if last_update_less_than_two_minutes_ago(file)
puts "Exiting: last mail sync was less than two minutes ago."

0 comments on commit 61648a5

Please sign in to comment.
Something went wrong with that request. Please try again.