Every repository with this icon (
Every repository with this icon (
| Description: | Provides clean ruby syntax for defining messy cron jobs and running them Whenever. edit |
-
This article suggests we need to explicitly flush logs. Perhaps the snippet of code in the article could be generated by whenever?
http://earthcode.com/blog/2009/05/rails_script_runner_logging_cron.html
Comments
-
[feature request] start point for every X.minutes/hours
1 comment Created 4 months ago by traxanoswhen i use every 2.hours i get 0,2,4,6,8...
but i need 2 crons with differen tart time.cron 1 0,2,4,6,8...
cron 2 1,3,5,7,9...a range option were nice:
every 2.hours, :range => 1..23
Comments
-
Should be able to set 'nice' priority for jobs
0 comments Created 3 months ago by adamsalterHaven't got time to fork and fix this myself atm, but nice priority for jobs a definite 'nice-to-have' ;)
Comments
-
I've unpacked the gem to run on Dreamhost.
This code fails, because "whenever" and "wheneverize" are not found. I can't use sudo to install the gem remotely.
Comments
What happens when you try to run ./vendor/gems/javan-whenever-0.3.7/bin/whenever from the command line?
I had a client on dreamhost a while ago, gems caused all sorts of bother, the support however are fantastic, send them a quick mail perhaps?
Ultimately, I need to find a good solution for people who want to vendor this gem.
he same problem.
./vendor/gems/whenever-0.4.0/bin/whenever
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- whenever (LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /mnt/app/current/vendor/gems/whenever-0.4.0/bin/whenever:7 -
when calling whenever, i get this error:
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/whenever-0.4.0/lib/whenever/outputs/cron.rb:63:in `>': comparison of Time with 0 failed (ArgumentError)
from /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/whenever-0.4.0/lib/whenever/outputs/cron.rb:63:in `parse_symbol' from /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/whenever-0.4.0/lib/whenever/outputs/cron.rb:39:in `time_in_cron_syntax' from /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/whenever-0.4.0/lib/whenever/outputs/cron.rb:34:in `output' from /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/whenever-0.4.0/lib/whenever/outputs/cron.rb:28:in `output' from /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/whenever-0.4.0/lib/whenever/outputs/cron.rb:27:in `each' from /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/whenever-0.4.0/lib/whenever/outputs/cron.rb:27:in `output' from /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/whenever-0.4.0/lib/whenever/outputs/cron.rb:26:in `each' from /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/whenever-0.4.0/lib/whenever/outputs/cron.rb:26:in `output' ... 8 levels... from /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/whenever-0.4.0/lib/whenever/command_line.rb:5:in `execute' from /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/whenever-0.4.0/bin/whenever:30 from /home/frexuz/.gem/ruby/1.8/bin/whenever:19:in `load' from /home/frexuz/.gem/ruby/1.8/bin/whenever:19using ubuntu 8.04 with REE and passenger
Comments
Can you paste your schedule.rb file or provide a test showing the failure? Thanks.
I got this error because I did
every :day, :at => ...
Apparently this is not a supported syntax. "every 1.days ..." works. Still not obvious to me why.
Thanks, I confirmed this, and it's definitely a bug. However, using :day with an :at was never supposed to work, but it was supposed to present a better error message.
:day gets translated to the cron shortcut @daily so using a time with that won't work. Note that you can use "every 1.day" instead of 1.days, if that makes you feel any better. :)
Had this problem as well. Is this something that should blow up with a better error or something you (javan) think should be supported?
Might take a look at the solution if you have a preference.
-
My schedule.rb:
every 10.minutes do
runner "EmailList.send_mails" endWhen i deploy I get:
[err :: blah.aptanacloud.com] PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/ucb:/etc:. [err :: blah.aptanacloud.com] crontab: error on previous line; unexpected character found in line. [err :: blah.aptanacloud.com] [err :: blah.aptanacloud.com] crontab: errors detected in input, no crontab file generated. ** [out :: blah.aptanacloud.com] [write] crontab file updatedSorry, I'm just a newbie... but what is going on? I've never used Crontab before.
Comments
Please run 'whenever' with no options and past the output. It won't touch your crontab file.
PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/ucb:/etc:.
0,10,20,30,40,50 /home/aptana/domains/blah.aptanacloud.com/web/releases/20091120181631/script/runner -e production "EmailList.send_mails"












I had no idea about this. Thanks for pointing it out. I'll get it in there.