Commit Graph

59 Commits

Author SHA1 Message Date
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
Dzmitry Plashchynski
c8a4189fd4 Call Job#load on every Scheduler#add_job call 2015-03-06 23:48:34 +02:00
Dzmitry Plashchynski
78b1d8d6e1 Add Job#load to load info from DB 2015-03-06 23:44:30 +02:00
Dzmitry Plashchynski
c54f52a71d Add Job#save to save job info to DB 2015-03-06 23:41:03 +02:00
Dzmitry Plashchynski
d0b35aaa6e Validate uniqueness of CronoJob job_id 2015-03-06 23:27:02 +02:00
Dzmitry Plashchynski
05113b57ee Add an ActiveRecord model CronoJob 2015-03-06 23:16:43 +02:00
Dzmitry Plashchynski
0f32f8a5a4 Refactoring 2015-03-05 15:29:31 +02:00
Dzmitry Plashchynski
59e71e89f3 Rename Schedule to Scheduler 2015-03-05 15:13:48 +02:00
Dzmitry Plashchynski
8ce3673368 Print schedule on load 2015-03-05 14:06:40 +02:00
Dzmitry Plashchynski
007989fa2c Add Job#description 2015-03-05 14:03:07 +02:00
Dzmitry Plashchynski
5b66e9049b Add Period#description 2015-03-05 14:02:44 +02:00
Dzmitry Plashchynski
78fa0f9dae Fix: Next performing time should be related to last performing time 2015-03-04 18:46:44 +02:00
Dzmitry Plashchynski
828488a6bc Add Job class 2015-03-04 18:31:59 +02:00
Dzmitry Plashchynski
e96d71552e Add option -e to set environment 2015-03-04 14:26:44 +02:00
Dzmitry Plashchynski
a750308f20 Add specs for pidfile option 2015-03-03 20:01:10 +02:00
Dzmitry Plashchynski
fea559c984 Add pidfile option 2015-03-03 19:56:01 +02:00
Dzmitry Plashchynski
cbc33324cc Refactor to remove global variables 2015-03-03 19:34:50 +02:00
Dzmitry Plashchynski
4c59804472 Add custom Logger 2015-03-03 19:13:40 +02:00
Dzmitry Plashchynski
0ead66f626 Add logfile option 2015-03-03 19:01:33 +02:00
Dzmitry Plashchynski
9675fc3517 Able to set place of cronotab.rb 2015-03-03 18:56:44 +02:00
Dzmitry Plashchynski
b301b95ae5 Add Crono.config 2015-03-03 18:40:33 +02:00
Dzmitry Plashchynski
cd925ea952 Add #queue and #next for Schedule 2015-03-03 15:38:54 +02:00
Dzmitry Plashchynski
518160d5d9 Add Schedule 2015-03-03 15:11:19 +02:00