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
2 answers

Cron + whenever not working with RVM

I am using RVM environment. RUby version : 2.1.2 rails : 4.1.1 schedule.rb : every 1.minute do runner "note.send_mail" end I used whenever --update-crontab to update the cron tab. when I check the jobs using crontab -l it shows up…
user2569524
  • 1,651
  • 7
  • 32
  • 57
2
votes
0 answers

Whenever crontab -- undefined method

I'm using whenever to set up a mailer but I'm getting the following error in my cron log: /.rvm/gems/ruby-2.1.0/gems/railties-4.0.0/lib/rails/commands/runner.rb:53:in `eval': undefined method `unreadmailer' for #
Madeline
  • 59
  • 5
2
votes
2 answers

Whenever Plugin Help

I am trying to use the Whenever plugin for rails to perform a model process at certain times. My schedule.rb is as follows: every 1.day, :at => '5:30 am' do runner "User.mail_out" end My model is as follows: class User < ActiveRecord::Base …
Trevor Nederlof
  • 2,546
  • 5
  • 22
  • 40
2
votes
0 answers

Capistrano: Run whenever tasks after migration

I am using whenever/capistrano in my deploy.rb to update crontab on deploy All I needed to do in my deploy script was to add these lines set :whenever_command, "bundle exec whenever" set :whenever_environment, defer {rails_env} require…
usha
  • 28,973
  • 5
  • 72
  • 93
2
votes
3 answers

Whenever cron doesn't trigger backup

I'm trying to integrate automatic backup mechanism to Rails app and decided to use backup gem. Backup file is valid and runs successfully manually, but when i deployed it on VPS it didn't run by cron at all. Even log files were empty.…
Anton Jyha
  • 100
  • 5
2
votes
0 answers

Amazon EC2 Cron job stops after some hours

I am using whenever gem to schedule cron job every 15 minutes in my rails 3.2 application and capistrano gem to deploy it on amazon EC2 instance. The issue is: Whenever I deploy with cap deploy, the cron job works fine(every 15minutes). But it stops…
shweta
  • 8,019
  • 1
  • 40
  • 43
2
votes
2 answers

Ruby on Rails 4 Whenever cron job not working

I would like to use Whenever gem to run scheduled jobs in my RoR application. I run the bundle install and this is my schedule.rb: every 1.minute do runner "Event.executeEvents" end My Event.executeEvents method is a simple log entry: class…
Rober
  • 5,868
  • 17
  • 58
  • 110
2
votes
1 answer

using whenever gem for scheduling a job every hour on Sunday

We are using whenever gem on our rails project and there is one task that need to be run every hour but only on the day of the sunday. I understand that i can schedule tasks on hourly basis , by something like this: every 1.hour do # do…
Sahil Dhankhar
  • 3,596
  • 2
  • 31
  • 44
2
votes
1 answer

Scheduling rake tasks with Sinatra

I'm trying to use either whenever/rufus-scheduler gems to schedule rake tasks to run in Sinatra. I can't seem it get the tasks to run. Here is what I've been trying: class App < Sinatra::Base ... configure :development do every 1.minute…
christo16
  • 4,843
  • 5
  • 42
  • 53
2
votes
0 answers

Dropbox with whenever gem

I'm trying to use whenever with dropbox. I created Core Api App on Dropbox site. After running whenever I got this error: Couldn't get access token. Server returned 401: Unauthorized. Visit the following URL to authorize your Dropbox App with…
Alexander Shlenchack
  • 3,779
  • 6
  • 32
  • 46
2
votes
2 answers

Multiple schedule.rb files with whenever gem

Is it possible to have multiple schedule.rb files when using the whenever gem in rails to setup cron jobs? I am looking to have a regular schedule.rb file and also a reports_schedule.rb file that is going to be deployed to a different server and it…
BC00
  • 1,589
  • 3
  • 29
  • 47
2
votes
0 answers

Ruby/Rails - Whenever task causes error

I'm very new to Ruby on Rails and build a small DemoApp with it. This App collects some network data and stores it in a database. This task is done by whenever every minute. I developed and tested this on Ubuntu and it worked perfectly fine. Now, i…
StateOfTheArt89
  • 138
  • 1
  • 10
2
votes
2 answers

when using rufus, Resque or whenever scheduler and what are the weaknesses and strengths of them?

I'm a new member of ruby on rails, and i'm researching for job schedulers in rails, but i am quite confused because having many schedulers such as rufus, whenever, resque.... Could you show me some information, documents or advice ? thank you so…
nguyenngoc101
  • 1,211
  • 4
  • 16
  • 28
2
votes
1 answer

whenever/capistrano `method_missing_with_variables': undefined method `role_names_for_host'

I'm using whenever/capistrano to update my cron_tab when deploying with capistrano, it was working great until recently my deploys started to fail when updating the…
Martinffx
  • 2,426
  • 4
  • 33
  • 60
2
votes
1 answer

rake task scheduling with whenever

Hello I was trying to run a rake task every 5 minutes with this schedule code using the whenever gem set :output, "#{path}/log/cron.log" every 10.minutes do rake "delete:old_offers" end But the code never execute. If I try to run my task…
Jean
  • 5,201
  • 11
  • 51
  • 87