CARVIEW |
Every repository with this icon (

Every repository with this icon (

Run the following if you haven't already:
gem sources -a https://gems.github.com
Install the gem(s):
sudo gem install javan-whenever
Description: | Provides clean ruby syntax for defining messy cron jobs and running them Whenever. edit |
Loading…
-
This article suggests we need to explicitly flush logs. Perhaps the snippet of code in the article could be generated by whenever?
https://earthcode.com/blog/2009/05/rails_script_runner_logging_cron.html
Comments
-
Every block should execute commands as one big command by default
3 comments Created 26 days ago by daeltarReason behind this naturally assuming that task defined in one every block will run in specified order and not all at once.
For parallel execution should be used just multiple every blocks.
Comments
I'd gladly accept a patch for this! But seeing as Whenever has been around for a while and currently does not run jobs sequentially, I don't think that should become the default behavior. How about a syntax like:
every 1.day, :at => '3pm' do
sequential do command "one" command "two" end command "three" command "four"
end
Where "one" and "two" will run sequentially and "three" and "four" will run in parallel.
I propose following DSL:
every 1.day, :at => '3pm', : sequential => true do
...
end
-
Smart-grouping code dying on mixed hourly/daily tasks
2 comments Created 12 days ago by tithoniumI've got an every :hour and an every :day task in my schedule, and I get this error: /Library/Ruby/Gems/1.8/gems/javan-whenever-0.3.6/lib/job_list.rb:119:in `+': can't convert nil into Array (TypeError)
It happens whenever I have a mix of hourly and non-hourly tasks, and is happening when job_list.rb#combine is processing the @hourly entry, where entries[i] is ['@hourly', '...whatever...'], and f == 2
Doesn't happen in 0.3.1, happens in 0.3.6.
Example schedule that triggers it:
every :hour do command "ls" end every 1.day, :at => "5:00am" do command "ls" end
Comments
-
[feature request] start point for every X.minutes/hours
0 comments Created 10 days 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
I had no idea about this. Thanks for pointing it out. I'll get it in there.