158 Commits

Author SHA1 Message Date
Dzmitry Plashchynski
6c7ff2f7b1 Bump 2.1.0 2024-12-18 14:58:42 +03:00
Janko Marohnić
ab4e1e808d Call clear_active_connections! on the connection handler
Active Record 7.2 removed the deprecated
`ActiveRecord::Base.clear_active_connections!` delegate method.
2024-08-19 14:49:59 +02:00
Janko Marohnić
7dffc5c77b Remove Sprockets hard dependency, allow Propshaft 2023-12-15 17:44:15 +01:00
Dzmitry Plashchynski
0702e20add Bump 2.0.1 2022-09-03 15:27:02 +03:00
Aleksandr Bobrov
43e411cf0f Fix args 2022-09-03 00:26:10 +04:00
Dzmitry Plashchynski
c5c58b559f Write PID in the daemon mode 2022-07-24 22:50:05 +03:00
Dzmitry Plashchynski
5c16c8c6dd Do not pass empty arguments to the worker. Closes #95 2022-06-16 11:08:22 +02:00
Dzmitry Plashchynski
80d8713cb2 Bump 2.0.0 2022-05-29 22:25:03 +03:00
Dzmitry Plashchynski
0a1ec366e0 do not pass empty arguments to Job#perform if arguments are not specified 2022-05-29 22:21:23 +03:00
Dzmitry Plashchynski
abbae2bb33 remove deprecated 2022-05-29 21:18:07 +03:00
Dzmitry Plashchynski
333f18d89b Merge branch 'master' into convert-to-engine-rspec 2022-05-29 20:32:06 +03:00
Dzmitry Plashchynski
be1ecf2995 Merge pull request #90 from cseelus/ruby-3-compatibility
Use Ruby 3 conversion kwargs
2022-05-29 20:28:39 +03:00
Dzmitry Plashchynski
3d7267d97e Merge pull request #74 from muZk/patch-1
fix: rails 4.0.x
2022-05-29 20:28:10 +03:00
Chris Seelus
ee79596509 Cleanup and get rspec to run again 2021-02-11 17:37:10 +01:00
Chris Seelus
6fee31fc81 Fix tests 2021-02-11 01:59:28 +01:00
Chris Seelus
551572fe56 Move CronoJob to models dir 2021-02-11 01:59:10 +01:00
Chris Seelus
d53520bbf0 Use Rails plugin generator and adapt 2021-02-10 22:10:43 +01:00
Chris Seelus
87b5726919 Use Ruby 3 conversion kwargs 2021-02-10 16:57:48 +01:00
Andris Briedis
6ca28ae01d Fixed race condition when starting jobs
Calling Time.zone.now in the if statement and while calculating sleep delay sometimes resulted in an exception with message "time interval must be positive".
This happened if job was about to start and we needed to sleep for a really short period of time + server was under high load.
First the application was checking if difference between current time and scheduled run time was positive.
If the expression returned true, sleep was called, but required delay was calculated once again and could result in a negative value being passed to the sleep function.
2019-07-10 11:43:04 +03:00
Nicolás Gómez
11350e83d9 fix: rails 4.0.x
Patch time_atts when `compact` is not defined in Hash class.
2018-04-11 10:50:45 -03:00
Andrej Antas
7c8246087c Add migration version for Rails 5 and above
Fixes #65
2017-10-16 00:09:59 +02:00
haoxilu
258052b852 rails timezone support 2017-02-24 09:05:43 +08:00
Dzmitry Plashchynski
a7488df85b Bump v1.1.2 2016-12-02 03:42:32 +02:00
Dzmitry Plashchynski
c777933044 Fix PG text limit. Closes #54 2016-12-02 03:41:38 +02:00
Dzmitry Plashchynski
0c2f52d9bc Bump 1.1.1 2016-11-30 01:06:29 +02:00
Dzmitry Plashchynski
c336b6d00b Fix empty job_options error 2016-11-30 00:52:54 +02:00
Dzmitry Plashchynski
1cf37ee30f Bump 1.1.0 2016-11-30 00:43:52 +02:00
Dzmitry Plashchynski
137dfe6d19 Fix MySQL default text size limit 2016-11-30 00:16:58 +02:00
Dzmitry Plashchynski
14c3e3162e Log truncating Close #41 2016-11-30 00:11:56 +02:00
Dzmitry Plashchynski
f5d65b6cc7 Job options 2016-11-29 15:41:39 +02:00
Adrian Colyer
3f9ea8350d schedule today if at: time not passed 2016-11-06 15:47:50 +00:00
Dzmitry Plashchynski
e7df4bb067 Fix crash when no jobs defined 2016-09-22 18:24:46 +03:00
Dzmitry Plashchynski
7155ce797c Bump 1.0.3 2016-07-01 04:36:45 +03:00
Dzmitry Plashchynski
4e3ca885a8 Fix table_name_suffix/prefix issue. Closes #33 2016-06-26 02:12:04 +03:00
Dzmitry Plashchynski
8c998794b4 Bump 1.0.1 2016-06-24 13:36:20 +03:00
Dzmitry Plashchynski
de070d5bfa Fix job saving 2016-06-24 13:33:57 +03:00
Dzmitry Plashchynski
fa69ed0fd9 Bump version to 1.0.0 2016-03-30 16:41:31 +03:00
Dzmitry Plashchynski
16ca450033 Fix option parser 2016-01-20 20:41:26 +02:00
Dzmitry Plashchynski
acbfea2308 Bump 1.0.0.pre2 2016-01-20 16:20:59 +02:00
Dzmitry Plashchynski
b1695964a1 Fix rails loading issue 2016-01-20 15:29:16 +02:00
Dzmitry Plashchynski
fba29d80e2 Bump 1.0.0.pre 2016-01-20 01:23:51 +02:00
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
4a0c2d78e2 add documentation and fix --help 2016-01-15 11:18:53 +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
4b7b03f8a1 Convert TimeOfDay values to UTC. 2015-10-03 16:34:27 +02:00
Lars Haugseth
a93b937d14 Added :within option to Period to run only within given time interval. 2015-10-03 15:08:43 +02:00