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

RVM + rails 4 + whenever =?

as the title suggests I am running rails 4 Ruby 1.9.3-p0 rvm 1.6.9 whenever 0.8.3 the project's gemset I run whenever -w and get the appropriate setting in the crontab. If I copy & paste that command all works out well. Cron however has other…
Dan
  • 1,163
  • 14
  • 34
0
votes
1 answer

Whenever-capistrano deploy issue

Using whenever gem to manage cron jobs for my Rails 3.2.13 app. Deploying with Capistrano. Here is what I get in the outpout: /home/marcele/.rvm/gems/ruby-2.0.0-p247@models/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:18:in…
Almaron
  • 4,127
  • 6
  • 26
  • 48
0
votes
2 answers

whenever gem environment_variable is not being set

My config/schedule.rb file looks like this: LOG_FILE = File.expand_path("#{__FILE__}/../../log/Scripts.log") set :environment_variable, 'BACKEND_ENV' set :environment, :production_backend set :output, LOG_FILE every 1.day, :at => '1:00 am' do …
Isaac Betesh
  • 2,935
  • 28
  • 37
0
votes
2 answers

Whenever / cron jobs failing, but fine manually

Struggling with cron jobs. Ubuntu 11.10 on the server. Until recently had whenever cron jobs running successfully several times a day; then due to another problem I had to remove RVM from the server and go back to ruby 1.9.3 installed without RVM…
bobomoreno
  • 2,848
  • 5
  • 23
  • 42
0
votes
1 answer

Need working examples of whenever gem in action

I recently made a Ruby gem called dvi_scrape for a new Rails web site that I'm working on. The dvi_scrape gem downloads web pages, scrapes financial data from them, process the data, and outputs the results to a Postgres database. I'm able to get…
jhsu802701
  • 573
  • 1
  • 7
  • 23
0
votes
1 answer

How do you write a Rails cron job Whenever gem?

The whenever gem is installed. I see all kinds of cron and whenever tutorials about scheduling tasks with minutes, hours, days etc. I watched the railscast video on cron/whenever. But I've yet to find any examples about how to write a job itself,…
Arwen17
  • 133
  • 6
0
votes
1 answer

Delayed Job custom job types with Whenever gem

I have been using clockwork to run custom delayed jobs after every 6 minutes. I am planning on trying whenever gem instead of clockwork. Does any one have an idea how should I go about doing this with whenever gem: …
Smoke
  • 1,052
  • 1
  • 10
  • 24
0
votes
1 answer

How to automatically stop a cron-like service(whenever / clockwork) with Rails server shutdown?

I implemented "whenever" service in my Rails app to execute an operation periodically. The operation is expected to be executed only while the Rails app is running, and automatically stopped when the app is shutdown. I succeeded to automatically…
linzhixing
  • 146
  • 2
  • 12
0
votes
1 answer

Whenever gem support for ruby 2.0.0

Does anyone know if there are any issues with running the whenever gem on ruby 2.0.0? Since I updated ruby, terminal won't recognize the whenever or wheneverize commands.
Zachary Nicoll
  • 339
  • 1
  • 4
  • 14
0
votes
3 answers

How to make code run every 30 minutes?

I have this code in home controller def index urls = RssStream.select("rss_streams.url").all.map { |v| v[:url] } RssStream.update_all_feeds(urls) end And I want to make run this code every 30.minutes. How can I do it? I've tried through…
Anton
  • 87
  • 10
0
votes
2 answers

How to make news downloaded every 30 minutes?

I have two models Company and News How to make news downloaded every 30 minutes? I've tried through gem 'whenever', nothing happens class Company < ActiveRecord::Base after_save :load_news def load_news last_entry = self.news.last if…
Anton
  • 87
  • 10
0
votes
0 answers

How to update attributes

I have problem with update attributs. I try to update via cron. sheduler.rb every 3.minutes do runner "update_from_feed_continuously(feed_url)" end feed_entry.rb class FeedEntry < ActiveRecord::Base attr_accessible :guid, :name, :url,…
Anton
  • 87
  • 10
0
votes
1 answer

Ruby scheduler and pauser

I'm working on a scraper for a website which closes its site/its database every night from about eleven in the evening to five in the morning. Since the scraper I'm working on takes about 70hours to complete, and I am in a rush to get it done, I'd…
Seeb
  • 199
  • 4
  • 16
0
votes
1 answer

schedule cron job on aws beanstalk rails container

I am using the whenever gem to configure my crontab and schedule cron jobs. my config/schedule.rb file has the following content: set :environment, "test" set :output, {:error => "/var/log/cron_error.log", :standard =>…
0
votes
0 answers

Whenever CronJob Issue - Unable to execute

In my Refinery Project, I am using cron job to update my one of the textfield. Sample code : Code present in Model def update_time @time = Page.all @time.each do |time| time.present_time = Time.now time.save end end Code :…
Rubyist
  • 6,486
  • 10
  • 51
  • 86