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

Rails: Testing Cron Jobs in development environment

I have a custom environment called 'reports' that is setup to hit a slave database. I am trying to configure some cron jobs using the Whenever gem and want to test them in development before I deploy. Is there any way to test cron jobs in…
BC00
  • 1,589
  • 3
  • 29
  • 47
5
votes
1 answer

Unable to run cronjob using whenever in rails 3

i follow all the steps for whenever with reference to https://github.com/javan/whenever in schedule.rb require 'yaml' set :environment, 'production' set :output, { :error => "/log/error.log", :standard => "/log/cron.log" } every…
5
votes
3 answers

Capistrano and Whenever Stage Variables

On our staging server we run our Rails application in the production environment so as to be as similar as possible to our production server. We're using whenever to create our crontab. However, we need to run a slightly different rake task for our…
Jason
  • 63
  • 1
  • 5
5
votes
2 answers

Whenever Cron With Multiple Projects On Server

I use whenever in my rails apps and deploy it with capistrano. The trouble is that since I use it only for one project there's no problem, but when I use whenever for more projects on the same server, everytime I deploy my project I destroy and…
5
votes
2 answers

custom clock process on heroku

I've just inherited a Rails project and before it was on a typical 'nix server. The decision was made to move it to heroku for the client and it up to me to get the background process working. Currently it uses Whenever to schedule daily…
TheIrishGuy
  • 2,531
  • 19
  • 23
4
votes
1 answer

Whenever cron job is not working in rails 3

This is the code in my schedule file. I am using 1 min just to test whether its working or not. every 1.minutes do runner "User.update_all('daily_sms_count' = 0 )" end from terminal i setup whenever --set environment=development --update-crontab…
Mohit Jain
  • 43,139
  • 57
  • 169
  • 274
4
votes
2 answers

Javan Whenever Gem is sending me the output as local mail

Javan's Whenever gem for Ruby on Rails is fantastic, however, I'm having one issue with it, namely that it sends whatever output I've logged to /var/mail/user, which I don't want to receive. Does anyone know how to turn this off? Thanks, Harris
lightyrs
  • 2,809
  • 2
  • 29
  • 32
4
votes
1 answer

Whenever gem: cron update in multiple server environment

Versions: Ruby 2.3.1 Rails 4.2.4 Whenever 0.9.7 Our configuration: I am able to deploy my application on NFS successfully. Both EC2 instances are mounted on NFS, so both server points to same code. All working fine. The problem is, as i am…
Hasmukh Rathod
  • 1,108
  • 1
  • 14
  • 20
4
votes
1 answer

Multi timezone task scheduling in Rails (using whenever)

We're currently using 'whenever' to schedule jobs in a Rails project. The system is expanding to support users in multiple timezones (timezone is stored in User model) and we would like to send users an email at a specific time of THEIR day. Any…
4
votes
2 answers

What is the best way to schedule `whenever` task in rails in midnight usa?

We have a Rails 4 application . What is the best way to schedule whenever task in rails in midnight usa with daylight saving ? We need to send email at 11.58pm in night of a day's report . We are using tzinfo…
Debadatt
  • 5,935
  • 4
  • 27
  • 40
4
votes
1 answer

Ruby: How to demonize MailMan (incoming mail processing microframework)

I'm using mailman gem for fetching email from pop3 server and send it to Rails application. What should I do to make mailman be as daemon? Please, tell me easiest way to do it. May be whenever gem can help? Something like: every :reboot do …
petRUShka
  • 9,812
  • 12
  • 61
  • 95
4
votes
1 answer

AWS Elastic Beanstalk and Whenever Gem

I have a Rails 4.2.1 app, using Ruby 2.2. I'm trying to use the Whenever Gem to update cron tasks on my Elastic Beanstalk from my code base. I've followed a few resources from AWS where you can add files to the .ebextensions folder and use EB's post…
4
votes
1 answer

Whenever cron job in Rails fails with 'production' database is not configured error

In my Rails app I use whenever gem to run a Sideqik task. When I run that command manually in the rails console it works. But the Whenever cron fails with the following error : It keeps repeating in the log. How can I fix this? What is the…
THpubs
  • 7,804
  • 16
  • 68
  • 143
4
votes
0 answers

Get notified with exception_notification of exceptions raised during a cron job

We have several cron jobs scheduled with the help of the whenever gem using the following syntax in schedule.rb: runner "Task.do_something_great". Please note that they are not run through the rake command but using runner. We also use the…
4
votes
1 answer

Whenever does not trigger Sidekiq job

I am trying to setup a Sidekiq scheduler to run recurring jobs. I can get the Sidekiq job to run fine in Rails console, or Rails app. I can get Whenever to trigger command. However, I CANNOT get Whenever to trigger Sidekiq job. I replicated my work…
Khanetor
  • 11,595
  • 8
  • 40
  • 76