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
2
votes
1 answer

WHENEVER SQLERROR never works

I don't know what can be a reason and I spent already hours on the Web trying to figure out what's wrong in my case. I've checked official documentation and some thought from Tom Kyte on this and surely topic on stackoverflow about it. I use…
Paul
  • 21
  • 4
2
votes
3 answers

whenever gem is not working for every 2 seconds

I have implemented whenever gem for my backend crons jobs which is working good when I try something like every 2.seconds do rake "my:rake:task" end I get this error `parse_time': Time must be in minutes or higher (ArgumentError) I really want…
Asnad Atta
  • 3,855
  • 1
  • 32
  • 49
2
votes
1 answer

Whenever gem for Cron job uses incorrect outdated version of bundler

I set up a cron job in my schedule.rb which just executes a custom rake file. Here is my schedule.rb: set :environment , :development every 2.minutes do rake "runpy" , :output => {:error =>…
Aditya Naidu
  • 697
  • 2
  • 7
  • 18
2
votes
0 answers

How to monitor cron job using whenever gem and monit tools

I am running a cron job that will pull data from facebook and stores in the database using whenever gem which is working properly. I have monit(a monitoring tools) installed in the server and now i would like to monitor that cron job. I searched…
monsur
  • 601
  • 6
  • 18
2
votes
3 answers

Cron job not being updated by whenever gem

Having a series of rake tasks that should be translated by the whenever gem into the cron file, I was wondering why the takes shows were pointing to an old release. It cannot be asserted that whenever is active somehow, even though it is listed in…
Jerome
  • 5,583
  • 3
  • 33
  • 76
2
votes
1 answer

Whenever gem in rails is not running

I have a cron job for emailing the users in the system and it doesn't want to run. I'm getting the following error message in the log: rake aborted! Don't know how to build task…
imalik8088
  • 1,501
  • 5
  • 21
  • 39
2
votes
1 answer

Resend Confirmation instructions to the user using devise

I want to resend confirmation instructions to the user if the user has not confirmed his account after sign up. I am using rails 4. I have this code but its not working. def resend_confirmation_instructions users = User.where('confirmed_at IS ?',…
Hemant Patil
  • 331
  • 2
  • 18
2
votes
2 answers

Cronjob in ruby on rails

Create a cronjob in ruby on rails by using whenever gem. set :environment, "development" set :output, {:error => "log/cron_error_log.log" , :standard => "log/cron_log.log" } every '* * * * * ' do command "puts 'you can use raw cron syntax…
user3963226
2
votes
2 answers

rake task has to run a controller method every 2 minutes

The rake task has to run a method (index) in downloads_controller every 2 minutes. so i installed whenever gem. and in "config/schedule.rb" file i added. every 2.minutes do rake "*****" end I don't know how to give my…
vjnan369
  • 833
  • 16
  • 42
2
votes
2 answers

Could not find rake using whenever rails

Hello I have a strange problem, I'm trying to get rake task working in whenever, but have this problem Could not find rake-10.4.2 in any of the sources (Bundler::GemNotFound). It's strange, because it searches this rake version in ruby 2.1.2 version…
Oleksandr Verhun
  • 814
  • 1
  • 8
  • 23
2
votes
2 answers

Gemfile not found when running Cron job with Capistrano 3 and whenever gem

My cron job works fine on my local machine after running whenever -w, after deploy to my VPS, I get this error, release 20150415044915 doesn't exist. any idea? I looked at my crontab -e, the path also looks fine where 20150502114703 is the correct…
user1883793
  • 4,011
  • 11
  • 36
  • 65
2
votes
0 answers

Whenever Gem's Reboot Task Not Being Run in Rails Application

This is my first time using the 'whenever' gem in rails, and I cannot get it to work. I followed the documentation and added this to my GEMFILE: gem 'whenever', :require => false Then I ran bundle install and typed wheneverize and edited …
The Wizard
  • 943
  • 7
  • 21
2
votes
1 answer

rails 4.2.0 with whenever gem in development env, not working

Hi everyone I have such problem: I'm using rails 4.2.0 with rvm gemsets (using right ruby version and correct gemset with installed gems). I'm trying to make some cron task using whenever gem, but I can't make it work. This is what I…
Alex
  • 49
  • 8
2
votes
1 answer

config file in schedule.rb with Rails Whenever gem?

I have a file called config.yml in my /config folder of my rails application. I also have an initializer: config/initializers/load_config.rb with the following code: APP_CONFIG = YAML.load_file("#{RAILS_ROOT}/config/config.yml") I am using the…
Yuval Karmi
  • 26,277
  • 39
  • 124
  • 175
2
votes
2 answers

How do I test the behavior executed by "whenever?"

I'm using whenever to schedule a task in Rails, and I would like to find a way to test the behavior being executed. Is there a way to trigger the event in a test (like RSpec) so I can make assertions about the results? The executed task is a class…
Hugo
  • 2,186
  • 8
  • 28
  • 44