Questions tagged [whenever]

a Ruby gem that makes it possible to define cron tasks in Ruby

whenever is a Ruby gem that makes it possible to write and maintain cron tasks in Ruby, using a simplified and expressive syntax.

Resources

Related Tags

500 questions
3
votes
0 answers

Cannot run rake task in cron

I'm using whenever gem and my cron job like this: schedule.rb set :path, "/home/user/www/my_app/current" ... every 60.minutes do rake "ts:rebuild", :output => "/home/user/Sphinx/log/search.log" end This task generate this cron…
Alexander Shlenchack
  • 3,779
  • 6
  • 32
  • 46
3
votes
2 answers

"[fail] Can't find file: config/schedule.rb" rails, whenever gem

I got this message -> "[fail] Can't find file: config/schedule.rb" I'm using "whenever" gem -> https://github.com/javan/whenever I did put it in my Gemfile gem 'whenever', :require => false then wheneverize . & I have file in…
whitesiroi
  • 2,725
  • 4
  • 30
  • 64
3
votes
2 answers

Whenever gem is not executing task

I set up a rails project to use the Whenever gem. Now I deploy my project with Capistrano and the tasks are nicely added to crontab list. But when I see only one line: /bin/bash: bundle: command not found So I read a couple of articles online so I…
Niels
  • 599
  • 5
  • 28
3
votes
2 answers

Whenever Gem Fails to Run "bundle exec" Correctly in Capistrano

I'm having problems deploying the Whenever gem to my production environment using Capistrano. The problem is stemming from a bundle exec whenever command that's triggering some 'missing gem' issues (yet running bundle install from the shell shows…
isthmuses
  • 1,316
  • 1
  • 17
  • 27
3
votes
1 answer

Rails whenever gem giving error when deploying via capistrano

I'm trying to create my first cron job via the whenever gem for a rails project. When running cap deploy, i get this error: ... * 2013-01-01 22:29:00 executing `whenever:update_crontab' * executing "cd…
Catfish
  • 18,876
  • 54
  • 209
  • 353
3
votes
1 answer

How to use 'Whenever' gem?

I'm currently trying to use the whenever gem to schedule my tasks but I do not know how it works. I've tried following the steps at https://github.com/javan/whenever but I got stuck at schedule.rb file. What am I supposed to write inside here? I…
user192249
  • 443
  • 2
  • 6
  • 16
3
votes
2 answers

Rails Whenever Gem How to Run Specific Method in Controller.rb File

I am looking to run a specific method inside my controller.rb file every minute. I am looking at using the whenever gem for rails but I am a bit confused on how to do this. Currently in schedule.rb I have: every 1.minutes do runner…
Rahul
  • 454
  • 1
  • 6
  • 18
3
votes
2 answers

cron with whenever gem not running

I am using thinking sphinx for search.It searches properlt but the problem was whenever i add new records i have to do rake thinking_sphinx:index manually.So to run it automatically i am using whenever gem with cron but still its not happening…
NJF
  • 435
  • 7
  • 26
2
votes
3 answers

Whenever Gem gives error on Ruby 1.9.3 - No Such File To Load

I've used whenever gem with ruby 1.9.2 without any problems, but I installed ruby 1.9.3p125 on my server and it stopped working. All I get below error on my cron_error.log file: /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in…
tackleberry
  • 1,003
  • 2
  • 12
  • 16
2
votes
2 answers

Make Background Job generated files available for Download

I have an action in my controller that generates reports of site usage based on date range selected (Start and End Date) with the condition that the start and end date has to be within the current quarter. I want to implement a background job that…
Mithun Sasidharan
  • 20,572
  • 10
  • 34
  • 52
2
votes
2 answers

Rails 3: Rake task on production server slows the site down to a crawl

I am using the whenever gem to call rake-based cron tasks, however... when the tasks are run, the whole site (Passenger on Nginx) stops responding for the duration of the task. Is there anyway to control the load of these rake tasks to take a lesser…
2
votes
1 answer

delayed_job vs. cron

I have a system where users come in to go through an application process that has multiple parts - sometimes users will save their progress and come back later. I want to send users an e-mail if they haven't come back in 48 hours - would it be best…
sscirrus
  • 55,407
  • 41
  • 135
  • 228
2
votes
1 answer

whenever gem crashes Rails console method autocompletion

Since I upgraded to Rails 7, when I type dot after variable name in my rails console, it often crashes with the error below. /usr/local/bundle/gems/whenever-1.0.0/lib/whenever/job_list.rb:41:in `respond_to?': undefined method `has_key?' for…
Ken Ratanachai S.
  • 3,307
  • 34
  • 43
2
votes
1 answer

How to make 'whenever' gem work on Windows?

I wan to run "simple" cron using whenever on Windows XP. So I installed whenever gem install whenever and then ran my cron.rb require 'rubygems' require 'whenever' every 1.days, :at => '5:30am' do command "puts now" end but it complained…
Radek
  • 13,813
  • 52
  • 161
  • 255
2
votes
0 answers

Cron using Whenever Rails and Docker - jobs not firing

Trying to setup whenever cron jobs on my app that runs on a docker setup with redis and sidekiq in separate containers, but haven't been able to set them to fire on a time schedule, manually it works fine. schedule.rb file env :PATH, ENV['PATH'] set…
queroga_vqz
  • 1,031
  • 3
  • 11
  • 25