Sha256: ec83ea584186e311913537d6b2e5db7b85f36c3f7ee2e39a3b9e3afe3581f062

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

# Use this file to easily define all of your cron jobs.
#
# It's helpful, but not entirely necessary to understand cron before proceeding.
# http://en.wikipedia.org/wiki/Cron

# Example:
#
# set :output, "/path/to/my/cron_log.log"
#
# every 2.hours do
#   command "/usr/bin/some_great_command"
#   runner "MyModel.some_method"
#   rake "some:great:rake:task"
# end
#
# every 4.days do
#   runner "AnotherModel.prune_old_records"
# end

# Learn more: http://github.com/javan/whenever

set :path, '/path/to/enju_leaf'
set :environment, :development
set :output, "#{path}/log/cron_log.log"

every 5.minute do
  rake "enju:message:send"
end

every 1.day, :at => '0:00 am' do
  rake "enju:circulation:expire"
  runner "User.lock_expired_users"
end

every 1.day, :at => '1:00 am' do
  rake "enju:circulation:stat"
#  rake "enju:bookmark:stat"
end

every 1.hour do
  rake "enju:import:start"
  rake "enju:import:expire"
end

every 1.day, :at => '3:00 am' do
  rake "sunspot:reindex"
#  rake "sitemap:refresh:no_ping"
end

every 1.day, :at => '5:00 am' do
  rake "enju:circulation:send_notification"
  rake "enju:import:destroy"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_leaf-1.1.0.beta3 lib/generators/enju_leaf/setup/templates/config/schedule.rb
enju_leaf-1.1.0.pre3 lib/generators/enju_leaf/setup/templates/config/schedule.rb