Commit Graph

81 Commits

Author SHA1 Message Date
Dzmitry Plashchynski
3d71df3d2f Merge pull request #36 from preisanalytics/jhuebl_add_data_to_scheduled_job_20160113
Add the possibility to schedule jobs with arguments
2016-01-16 01:18:22 +02:00
Dzmitry Plashchynski
4c223e1bf6 Merge pull request #34 from lhz/intervals
Added :within option to Period to run only within given time interval.
2016-01-16 01:17:54 +02:00
Jannis Hübl
5d9b420582 fix build and config_spec 2016-01-15 11:34:32 +01:00
Jannis Hübl
0affff21d1 add start|stop|restart|run to crono executable
this is done using daemonize gem, but it is not breaking the old
interface. But sets a deprected comment to the old one daemonize
process.
2016-01-15 11:03:38 +01:00
Jannis Hübl
89f3b9a8a1 change to args which will be passed to Job#perform 2016-01-14 09:33:14 +01:00
Jannis Hübl
dd4f92b569 add data to Cron.perform which will be passed to ExampleJob.new(data).perform 2016-01-13 17:44:27 +01:00
Lars Haugseth
a93b937d14 Added :within option to Period to run only within given time interval. 2015-10-03 15:08:43 +02:00
avi_alima
32bdba3244 Add ability to define minimal time between job executions to support multiple corno nodes, so two different nodes will not execute the same job 2015-08-19 18:08:48 +03:00
Dzmitry Plashchynski
c28a0bbc8a Able to specify minutes for hour-based schedule. Closing #26 2015-05-28 17:43:02 +03:00
Dzmitry Plashchynski
c2445d831b Fix specs 2015-04-13 16:45:38 +03:00
Dzmitry Plashchynski
6d41a19212 Handle a few jobs scheduled at the same time 2015-04-13 15:53:20 +03:00
Dzmitry Plashchynski
a28ec7b276 Add specs for bug with jobs scheduled at same time without at 2015-04-13 14:19:34 +03:00
Dzmitry Plashchynski
e8c7400caa Do not freeze time for period specs 2015-04-13 14:18:55 +03:00
Dzmitry Plashchynski
260cf14e95 Fix Cli specs 2015-04-13 14:18:32 +03:00
Dzmitry Plashchynski
1900a06582 Add Crono::Cronotab to process cronotab 2015-04-13 12:43:52 +03:00
Dzmitry Plashchynski
f6b393ad6b Period should only return future time 2015-04-12 16:48:57 +03:00
Dzmitry Plashchynski
55e3956618 Clean up 2015-04-12 16:34:28 +03:00
Dzmitry Plashchynski
aaa8bc40e5 Apply bundler gem template recommendations 2015-04-11 18:48:54 +03:00
Dzmitry Plashchynski
a11a8985c3 Merge branch 'master' of github.com:plashchynski/crono 2015-04-11 18:24:07 +03:00
Dzmitry Plashchynski
b4ad8fb953 Handle a few jobs scheduled at the same time 2015-04-08 20:08:58 +03:00
MichaelAChrisco
c74291a001 multiple view states 2015-04-03 15:26:59 -07:00
Thomas Drake-Brockman
4b28f3dd80 Updated CLI and Config to default to not writing a pidfile unless daemonized. 2015-04-02 03:14:08 +08:00
Dzmitry Plashchynski
2d72020ac4 Fix spec 2015-03-24 23:25:38 +02:00
Dzmitry Plashchynski
78ce578484 Access to Crono::Job from performer class 2015-03-22 23:53:46 +02:00
Dzmitry Plashchynski
0c77c490bd Move TestJob to spec_helper.rb 2015-03-22 23:37:01 +02:00
Dzmitry Plashchynski
fa97f573e0 Add rake task to check cronotab.rb syntax 2015-03-18 20:54:16 +02:00
Dzmitry Plashchynski
dc70212f9d Add crono rake tasks spec 2015-03-17 18:28:17 +02:00
Dzmitry Plashchynski
95a237aeb5 Check period duration to be at least 1 day when using 'at' 2015-03-15 09:56:39 +02:00
Dzmitry Plashchynski
6508197f26 Remove unused spec 2015-03-15 09:35:16 +02:00
Dzmitry Plashchynski
a0c612fb27 Use on in a period description 2015-03-15 09:34:27 +02:00
Dzmitry Plashchynski
9b85c8b8c3 Added 'on' option for Period 2015-03-15 09:29:02 +02:00
Dzmitry Plashchynski
1af691ef24 Lint web 2015-03-14 03:26:32 +02:00
Dzmitry Plashchynski
a9798acb35 Lint the whole project 2015-03-13 20:46:54 +02:00
Dzmitry Plashchynski
6d2e3fbb75 Add job#log_error, log error with ERROR severity 2015-03-10 23:59:39 +02:00
Dzmitry Plashchynski
6859d1f09a Add specs to test error marks 2015-03-10 23:37:15 +02:00
Dzmitry Plashchynski
a24389f6cc Add Job#healthy 2015-03-10 00:19:33 +02:00
Dzmitry Plashchynski
54a1b53af9 Add tests for Crono::Web 2015-03-09 23:43:17 +02:00
Dzmitry Plashchynski
c0b25b2a7c Replace the file DB with shared cached memory DB 2015-03-07 18:50:34 +02:00
Dzmitry Plashchynski
f43ae4b1b1 Save performing errors to DB 2015-03-07 18:05:47 +02:00
Dzmitry Plashchynski
00e51604ae Use sqlite3 file database 2015-03-07 18:03:50 +02:00
Dzmitry Plashchynski
b3920fa2ee Use Mutex to synchronize access to Job's log 2015-03-07 16:38:11 +02:00
Dzmitry Plashchynski
5652d19e62 Write Job#job_log 2015-03-07 16:24:20 +02:00
Dzmitry Plashchynski
dc1f55e13b Add byebug 2015-03-07 16:24:01 +02:00
Dzmitry Plashchynski
98f058767f Fix spec 2015-03-07 16:06:40 +02:00
Dzmitry Plashchynski
5db94543d1 Fix specs 2015-03-07 04:23:58 +02:00
Dzmitry Plashchynski
3e5363f560 Fix specs 2015-03-07 04:18:54 +02:00
Dzmitry Plashchynski
6d90cb3233 Period#next should return today time if it is first run and not too late 2015-03-07 04:13:59 +02:00
Dzmitry Plashchynski
368cdde296 Fix Ruby 2.0.0 time comparsion issue 2015-03-07 03:54:35 +02:00
Dzmitry Plashchynski
b649594084 Fix specs 2015-03-07 01:29:16 +02:00
Dzmitry Plashchynski
fe24b435b3 Save job on every perform 2015-03-06 23:57:55 +02:00